Results 1 to 1 of 1

Thread: automating content name

  1. #1
    Join Date
    Sep 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation automating content name

    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> &nbsp; &nbsp; " .$list['tbl2_u_c_name']."<br>";
    echo "<strong>General Description: </strong> &nbsp; &nbsp; " .$list["tbl2_u_c_description"]."<br>";
    echo "<strong>Product Type:</strong> &nbsp; &nbsp; " .$list['tbl1_Type']."<br>";
    echo "<strong>Description:</strong> &nbsp; &nbsp; " .$list['tbl1_Description1']."<br>";
    echo "<strong>Quantity: </strong> &nbsp; &nbsp; " .$list['tbl3_quantity']."<br>";
    echo "<strong>Prices: </strong> &nbsp; &nbsp; " .$list['tbl3_price']."<br>";
    echo "<strong>Telephone: </strong> &nbsp; &nbsp; ".$list['tbl2_u_c_phone']."<br>";
    echo "<strong>Email: </strong> &nbsp; &nbsp; " .$list['tbl2_u_c_email']."<br>";
    echo "<strong>Website: </strong> &nbsp; &nbsp; " .$list['tbl2_u_c_website']."<br>";


    // echo "Department: ".$row['department_name']."<br>";
    // echo "Directorate: ".$row['directorate_name']."<br>";
    echo "<br>";
    echo "---------------------------------------------------------"."<br>";

    echo "</div>";
    Last edited by sirwhite; 09-15-2009 at 10:03 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •