francoisp Posted April 20, 2003 Share Posted April 20, 2003 Consider the following code <?php include \'db.php\'; $result = mysql_query( "SELECT company_name FROM product_details" ) or die("SELECT Error: ".mysql_error()); $num_rows = mysql_num_rows($result); echo "These are the companies<P>"; echo "<table border=1 align=\'center\'\'>n"; while ($get_info = mysql_fetch_row($result)){ echo "<tr>n"; foreach ($get_info as $field) echo "t<td><font face=verdana size=3/>$field</font></td>n"; echo "</tr>n"; } echo "</table>n"; ?> Now i want the company names to appear with header rows as well as each company name must then be a url (popup) clicking on that the company details must be displayed ie Company Name, Address Tel no etc. How do I do this ? Any help will be appreciated :?: Any ideas Thanks Francois Quote Link to comment https://forums.phpfreaks.com/topic/371-embedding-url-from-records-from-database-and-popup/ Share on other sites More sharing options...
effigy Posted April 20, 2003 Share Posted April 20, 2003 the company names are listed horizontally? is there a limit of how many columns? for the link, create a javascript function and echo the company info into the anchor. Quote Link to comment https://forums.phpfreaks.com/topic/371-embedding-url-from-records-from-database-and-popup/#findComment-1255 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.