dawiz Posted August 17, 2011 Share Posted August 17, 2011 Is it possible to hyperlink values from an SQL query search to different images. For example I have a database with some cars, after the relevant query is submitted and the results returned could I let's say link each VIN to an image? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/244967-hyperlink-mysql/ Share on other sites More sharing options...
Clarkeez Posted August 17, 2011 Share Posted August 17, 2011 yes, of course! Quote Link to comment https://forums.phpfreaks.com/topic/244967-hyperlink-mysql/#findComment-1258352 Share on other sites More sharing options...
dawiz Posted August 17, 2011 Author Share Posted August 17, 2011 while($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) { echo '<tr> <td align="left">' . $row['vin'] . '</td> <td align="left">' . $row['make'] . '</td> <td align="left">' . $row['model'] . '</td> </tr>'; }//end while() Where would I insert this hyperlink? Quote Link to comment https://forums.phpfreaks.com/topic/244967-hyperlink-mysql/#findComment-1258354 Share on other sites More sharing options...
Clarkeez Posted August 17, 2011 Share Posted August 17, 2011 I literally have no idea what you are trying to achieve. Quote Link to comment https://forums.phpfreaks.com/topic/244967-hyperlink-mysql/#findComment-1258357 Share on other sites More sharing options...
dawiz Posted August 17, 2011 Author Share Posted August 17, 2011 I'm a rookie PHP/MYQL programmer so see with me...the column with the VIN i would love to hyperlink that so that each VIN will be link to the corresponding car image Quote Link to comment https://forums.phpfreaks.com/topic/244967-hyperlink-mysql/#findComment-1258360 Share on other sites More sharing options...
xyph Posted August 17, 2011 Share Posted August 17, 2011 How are your images stored? Quote Link to comment https://forums.phpfreaks.com/topic/244967-hyperlink-mysql/#findComment-1258374 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.