Hi Guys
I need some help with mysql/php if anyone has the time..
This is my code, it gets the records from the database and loops untill they are all printed down the page.
$data = mysql_query("SELECT * FROM buyers_bookmarks WHERE clientsid = '$userID1'")
or die(mysql_error());
$info = mysql_fetch_array( $data );
$bookmarkP = $info[propertyid];
$query="select * from listed_properties WHERE propertyID = 'devon'"; // query string stored in a variable
$rt=mysql_query($query); // query executed
echo mysql_error(); // if any error is there that will be printed to the screen
while($nt=mysql_fetch_array($rt)){
echo "<a href='property_page.php?pid=$nt[propertyID]'><h3>$nt[titleOfListing]</h3>";
echo "<table>";
echo "<tr><td>";
echo "<img src='images/$nt[eventPicture].jpg' height='100px'><br>";
echo "</td><td valign='top'>";
I need to get $bookmarkP into the while statement here while($nt=mysql_fetch_array($rt)){
a link to a decent document would be amazing 🙂