help me to solve this problem
i have a table in mysql DB.
table is
name age phone
-----------------------------
sam 24 18191
joseph 30 62781
mary 19 54271
jancy 24 78236
michel 29 78152
this is the table. iam using dream wear 8.
i connected the db with php page,
<?php require_once('Connections/db2.php'); ?>
<?php
mysql_select_db($database_DB2, DB2);
$query_Recordset1 = "SELECT * FROM test";
$Recordset1 = mysql_query($query_Recordset1, $DB2) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
and then i have
created the recordset. (name of the recordset is recordset1)
here i want to display all rows in the "name" colum one by one in my output page like
sam
joseph
mary
jancy
michel
iam using the command
<p><?php echo $row_Recordset1['name']; ?></p>
but here i can get only the first record (row) of the "name" colum;
how can i get all other rows in the "name" colum in single page.
please post the code to access all the rows or tell me how to do this please help me.