Hi,
I am trying to get a Recordset that when it says main_image it will go get that picture file from image_inventory/small I have tried several different ideas but non seem to work any ideas are greatly appreciated. Here is the Code that I have
<?php
if (!function_exists(“GetSQLValueString”)) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = “”, $theNotDefinedValue = “”)
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists(“mysql_real_escape_string”) ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case “text”:
$theValue = ($theValue != “”) ? “‘” . $theValue . “‘” : “NULL”;
break;
case “long”:
case “int”:
$theValue = ($theValue != “”) ? intval($theValue) : “NULL”;
break;
case “double”:
$theValue = ($theValue != “”) ? doubleval($theValue) : “NULL”;
break;
case “date”:
$theValue = ($theValue != “”) ? “‘” . $theValue . “‘” : “NULL”;
break;
case “defined”:
$theValue = ($theValue != “”) ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
mysql_select_db($database_….., $……..);
$query_Recordset1 = “SELECT * FROM sheet4”;
$Recordset1 = mysql_query($query_Recordset1, $…..) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “
<html xmlns=”
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<title>Untitled Document</title>
</head>
<body>
<table width=”250″ border=”1″>
<tr>
<td colspan=”3″><?php echo $row_Recordset1[‘headline’]; ?></td>
</tr>
<tr>
<td width=”178″><?php echo $row_Recordset1[‘[B][COLOR=”Teal”]main_image
////// This is where I want the image to pull through from image_inventory/small///////////////
<td width=”56″ colspan=”2″><?php echo $row_Recordset1[‘packing_slip_desc’]; ?></td>
</tr>
<tr>
<td colspan=”3″><?php echo $row_Recordset1[‘price’]; ?></td>
</tr>
</table>
</body>
</html>
<?php
mysql_free_result($Recordset1);
?>