Jump to content

how do i show individual data


stuart7398

Recommended Posts

hi. i am learning php / mysql.

my data is 10 small image links, linking to individual profiles.

 

When I link to the profile I get the correct php?id=52 / php?id=55

example: www.web.com/profile.php?id=52

 

however I get the same data and 'id' all the time showing in the profile page.

Below is the profile.php page

How do I click the link to show the relevant data in the profile page.

I'm guessing it has something to do with this  $info = mysql_fetch_array( $data );

 

 

connect

or die(mysql_error());

Print "<table style='table-layout:fixed; width:100%;' class='detail'>";

$info = mysql_fetch_array( $data );

{

Print "<tr class='small5'>";

Print "<td width='50%'>".$info['boats'] ." Boats - ".$info['col_2'] . " </td>";

Print "<td width='25%'></td>";

Print "</tr>";

 

Print "<tr>";

Print "<td class='model'>".$info['model'] ." - Model<br/></td>";

Print "<td></td>";

Print "</tr>";

 

 

If I haven't made things clear let me know and I'll try to explain clearer.

 

thanks.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.