stuart7398 Posted March 16, 2008 Share Posted March 16, 2008 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. Quote Link to comment 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.