stuart7398 Posted March 15, 2008 Share Posted March 15, 2008 hi. i am learning php / mysql. i can retreive data. my data is 10 small image links. how do i click each individual link to go to each individual profile page? while($info = mysql_fetch_array( $data )) { Print "<p><a href=''>".$info['col_2'] ." <img src='/imgs/bg/boats.jpg' width='73px' />".$info['submission_id'] . "</a></p>"; thanks. Quote Link to comment Share on other sites More sharing options...
JD* Posted March 16, 2008 Share Posted March 16, 2008 You would put in a link to your profile page along with a url variable with the submission id and then, on your profile page, it would use that ID to get and display your info from the database while($info = mysql_fetch_array( $data )) { Print "<p><a href='profile.php?id=".$info['submission_id']."'>".$info['col_2'] ." <img src='/imgs/bg/boats.jpg' width='73px' />".$info['submission_id'] . "</p>"; Quote Link to comment Share on other sites More sharing options...
stuart7398 Posted March 16, 2008 Author Share Posted March 16, 2008 Thanks, very helpful. 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.