Forum Moderators: coopster
echo "Query :" .$q_prod_prop;
echo "<br>";
echo "<br>";
echo "Total No. of Records :".mysql_num_rows($rs_q_prop_prod);
echo "<BR>";
while($rows_rs_q_prop_prod = mysql_fetch_row($rs_q_prop_prod))
{
echo $rows_rs_q_prop_prod["prop_id"];
echo $rows_rs_q_prop_prod["prop_value"];
}
?>
//************************************************** *
But output of above php code is
//**************************************************
Query :select * from prop_prod
Total No. of Records :100
Notice: Undefined index: prop_id in c:\inetpub\wwwroot\sdsdynamic\testing.php on line 13
Notice: Undefined index: prop_value in c:\inetpub\wwwroot\sdsdynamic\testing.php on line 14
Notice: Undefined index: prop_id in c:\inetpub\wwwroot\sdsdynamic\testing.php on line 13
Notice: Undefined index: prop_value in c:\inetpub\wwwroot\sdsdynamic\testing.php on line 14
Notice: Undefined index: prop_id in c:\inetpub\wwwroot\sdsdynamic\testing.php on line 13
Notice: Undefined index: prop_value in c:\inetpub\wwwroot\sdsdynamic\testing.php on line 14
so on....
//************************************************** ****
why gives me Notice: Undefined index: prop_value in...
Plz help me thanx.... in adv..
You should use Windows server to host your web applications, only in case the application required some of the MS technologies. Otherwise, use Linux based server.
Timotheos is correct, you are trying to use an associative index when it is not there by nature of the mysql_fetch_row() [php.net] function. That function only has enumerated indexes. Each result column is stored in an array offset, starting at offset 0.
Take his advice and try one of the other two functions :-)