I am having problems with this code.
<table>
<tr>
<td colspan="2"></td>
</tr>
<?php
$chandle = mysql_connect("servername", 'username', 'pswd');
$boolval = mysql_select_db('dbname', $chandle);
$cuid_txt = $_GET['CUID'];
$query = "SELECT * FROM photos where CUID ='$cuid_txt'";
$result = mysql_query($query)
or die("Query failed");
?>
<tr>
<td>
<img src="images/CARS/<?php print( $row[2] ); ?>">
</td>
<td><?php print( $row[3] ); ?></td>
</tr>
</table>
Ok here is the problem. I have 3 rows in this database (CUID, PHOTO_FILE, DESCRIPTION). I am trying to load the pictures in the script. The only thing it will do though is show a red x where the picture should be. If you have any info let me know. thanks.