Jump to content


This topic is now archived and is closed to further replies.


Embedding URL from records from Database and popup

Recommended Posts

Consider the following code



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 :idea:





Share this post

Link to post
Share on other sites

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.

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.