sirwhite
09-11-2009, 04:08 PM
Hello all,
i have created a script to fetch data from database, and display few on the page and the rest on a popup like facebox. but the popup will only display information from the first rows. please i need help with how to display the rest of the content with a popup. thanks, be very greatful.
here is the code anyway...
<--
// while there are rows to be fetched...
while ($list = mysql_fetch_assoc($result)) {
// echo data
echo "<table width=441 border=0 cellspacing=5 >";
echo " <tr>";
echo "<td width=150><div align='right'><strong>Company Name:</strong></div></td>";
echo "<td width=272><a href=#001 rel=facebox>" .$list['tbl2_u_c_name']. "</a></td>";
echo " </tr>";
echo " <tr>";
echo "<td width=150><div align='right'><strong>General Descripton: </strong></div></td>";
echo "<td width=272>" .$list["tbl2_u_c_description"]. "</td>";
echo " </tr>";
echo "</table>";
echo "<div id=001 style='display:none;'>";
echo "<strong>Company Name: </strong> " .$list['tbl2_u_c_name']."<br>";
echo "<strong>General Description: </strong> " .$list["tbl2_u_c_description"]."<br>";
echo "<strong>Product Type:</strong> " .$list['tbl1_Type']."<br>";
echo "<strong>Description:</strong> " .$list['tbl1_Description1']."<br>";
echo "<strong>Quantity: </strong> " .$list['tbl3_quantity']."<br>";
echo "<strong>Prices: </strong> " .$list['tbl3_price']."<br>";
echo "<strong>Telephone: </strong> ".$list['tbl2_u_c_phone']."<br>";
echo "<strong>Email: </strong> " .$list['tbl2_u_c_email']."<br>";
echo "<strong>Website: </strong> " .$list['tbl2_u_c_website']."<br>";
// echo "Department: ".$row['department_name']."<br>";
// echo "Directorate: ".$row['directorate_name']."<br>";
echo "<br>";
echo "---------------------------------------------------------"."<br>";
echo "</div>";
i have created a script to fetch data from database, and display few on the page and the rest on a popup like facebox. but the popup will only display information from the first rows. please i need help with how to display the rest of the content with a popup. thanks, be very greatful.
here is the code anyway...
<--
// while there are rows to be fetched...
while ($list = mysql_fetch_assoc($result)) {
// echo data
echo "<table width=441 border=0 cellspacing=5 >";
echo " <tr>";
echo "<td width=150><div align='right'><strong>Company Name:</strong></div></td>";
echo "<td width=272><a href=#001 rel=facebox>" .$list['tbl2_u_c_name']. "</a></td>";
echo " </tr>";
echo " <tr>";
echo "<td width=150><div align='right'><strong>General Descripton: </strong></div></td>";
echo "<td width=272>" .$list["tbl2_u_c_description"]. "</td>";
echo " </tr>";
echo "</table>";
echo "<div id=001 style='display:none;'>";
echo "<strong>Company Name: </strong> " .$list['tbl2_u_c_name']."<br>";
echo "<strong>General Description: </strong> " .$list["tbl2_u_c_description"]."<br>";
echo "<strong>Product Type:</strong> " .$list['tbl1_Type']."<br>";
echo "<strong>Description:</strong> " .$list['tbl1_Description1']."<br>";
echo "<strong>Quantity: </strong> " .$list['tbl3_quantity']."<br>";
echo "<strong>Prices: </strong> " .$list['tbl3_price']."<br>";
echo "<strong>Telephone: </strong> ".$list['tbl2_u_c_phone']."<br>";
echo "<strong>Email: </strong> " .$list['tbl2_u_c_email']."<br>";
echo "<strong>Website: </strong> " .$list['tbl2_u_c_website']."<br>";
// echo "Department: ".$row['department_name']."<br>";
// echo "Directorate: ".$row['directorate_name']."<br>";
echo "<br>";
echo "---------------------------------------------------------"."<br>";
echo "</div>";