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. 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! 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? 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. 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 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? Link to comment https://forums.phpfreaks.com/topic/244967-hyperlink-mysql/#findComment-1258374 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.