I have a mysql database set up and have uploaded image paths and various text fields to it. The images are being sent and stored in a folder. What I need help with is how to code my php page correctly to display the images and working links.
'log_filename' is the image field
'bands_website' is the link field
My code:
Thanks in advance for any help. EMTCode:<?php // Make a MySQL Connection mysql_connect("") or die(mysql_error()); mysql_select_db("") or die(mysql_error()); // Insert a row of information into the table "_uploads_log" $result = mysql_query("SELECT * FROM _uploads_log WHERE genre LIKE 'Country' ") or die(mysql_error()); // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $result )) { // Print out the contents of each row // Print out the contents of each row into a table echo " Video: ".$row['log_filename'];echo "<br />"; echo " Member Name: ".$row['login'];echo "<br />"; echo " Band Name: ".$row['band_name'];echo "<br />"; echo " Title: ".$row['title'];echo "<br />"; echo " Description: ".$row['description'];echo "<br />"; echo " Prior Artist: ".$row['prior_artist'];echo "<br />"; echo " Home Town: ".$row['home_town'];echo "<br />"; echo " Web Site: ".$row['bands_website'];echo "<br />"; echo " State: ".$row['state'];echo "<br />"; echo " Genre: ".$row['genre'];echo "<br />"; echo " Posted: ".$row['date'];echo "<br />";echo "<br />"; } ?>



Reply With Quote

Bookmarks