Forum Moderators: coopster
<?php
mysql_connect ("localhost", "name", "pw");
mysql_select_db (accomplishments);
$sql = "SELECT * FROM `users`";
$query = mysql_query($sql);
while ($row = mysql_fetch_array($query)) {
echo "<p>",$row['first_name']," ",$row['last_name']," ", $row['acc1'];
}
?>
If I put <img src="1.gif"> in the database for acc1 the image will display. I want to be able to just put 1 or 1.gif in the database and still have it show. I've seen some examples of people putting the html code within the php, but I can't get it to work.
Any help would be greatly appreciated!