I have the following code in order to retrieve the latest data inserted from mysql table. Does anybody know where is the problem?
When a client submits the placeorder.php page, does anybody know how I can retrieve this date from mysql and present it in the viewmyorder.php page ?
Thank you in advance for your effort.
<?PHP
include 'connectDB.php' ;
$result = mysql(asbestos, "select categoryname from categories where categoryid=last _insert_id()" );
$num = mysql_numrows($ result);
$i = 0;
while($i < $num) {
echo mysql_result($r esult);
$i++;}
?>
When a client submits the placeorder.php page, does anybody know how I can retrieve this date from mysql and present it in the viewmyorder.php page ?
Thank you in advance for your effort.
<?PHP
include 'connectDB.php' ;
$result = mysql(asbestos, "select categoryname from categories where categoryid=last _insert_id()" );
$num = mysql_numrows($ result);
$i = 0;
while($i < $num) {
echo mysql_result($r esult);
$i++;}
?>
Comment