| mysql_fetch_array -
06-04-2007, 07:58 AM
HI
<?php
include('conn.php');
mysql_query("insert into reg values ('".$_POST['fname']."','".
$_POST['lname']."')");
$result1=mysql_query("select * from reg");
while($row1=mysql_fetch_array($result1)) {
echo $row1['firstname'];
echo $row1['lastname'];
}
?>
<?php // 2 statement...............
$result=mysql_query("SELECT * FROM reg order by id desc limit 0,1");
while($row=mysql_fetch_array($result)) {
?>
<a href="three.php?view=<? echo $row['id']; ?>">View</a>
<? } ?>
in this above code previously values are inserted after adding 2nd
statement the values are not inserted what is problem in my code plz
respond............... |