Hiya Im still new to PHP so please pardon me for my lack of knowledge. Can someone tell me how to output multiple rows of data from the code below. At the moment I can only output a single row of data from the table. If I repeat the echo statements as below, I simply receive a repeat of the same row of data. I believe I may need an array of some type, however, I don’t know 1) How to use one here. 2) Whether or not it will be the most efficient way to output multiple rows from my query. Thanx in advance.
<?php
$mysql_access = mysql_connect("localhost","root","");
mysql_select_db("test", $mysql_access);
$gender = $REQUEST['gender'];
$country = $REQUEST['country'];
$query_Recordset1 = "SELECT * FROM USERDETAILS where gender = '$gender' AND country = '$country'";
$Recordset1 = mysql_query($query_Recordset1, $mysql_access) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$picture_path = $row_Recordset1['PICTURE_PATH'];
?>
<?php echo "<img src=$picture_path>";?>
<br>Firstname: <?php echo $row_Recordset1['FIRSTNAME']; ?>
<br>Lastname: <?php echo $row_Recordset1['LASTNAME']; ?>
<br>Country:<?php echo $row_Recordset1['COUNTRY']; ?>
<br>gender:<?php echo $row_Recordset1['GENDER']; ?>
<?php echo $row_Recordset1['ID']; ?>
?>
<?php echo "<img src=$picture_path>";?>
<br>Firstname: <?php echo $row_Recordset1['FIRSTNAME']; ?>
<br>Lastname: <?php echo $row_Recordset1['LASTNAME']; ?>
<br>Country:<?php echo $row_Recordset1['COUNTRY']; ?>
<br>gender:<?php echo $row_Recordset1['GENDER']; ?>
<?php echo $row_Recordset1['ID']; ?>