hello all 😃
once again i come with a problem under my belt.
but this is no ordinary problem....
this is a problem that will darken and freeze the warmiest and fuzziest of hearts.
this problem was banned in 1983 for its mass terrorising properties....
this problem is....
?? A VARIABLE THAT DOES NOT SHOW ???
😃 😛
so my code is below. everything looks right. the variables are stored in the sql. the variables are shown in a table at:
HERE 😃
as you might be able to see. the text variables show but the variable that is used in the image source does not show.
anyone know why?
help is greatly appreciated 😃 😃
<?
require ("../../cgi-bin/connect2test.php");
# setup SQL statement
$SQL = " SELECT * FROM sqlxml ";
# execute SQL statement
$retid = mysql_db_query($db, $SQL, $cid);
# check for errors
if (!$retid) { echo( mysql_error()); }
else {
# display results
echo ("All Data Records<br><table border=1 width='100%' cellpadding=2 cellspacing=2>
<table border=1 width='100%' cellspacing=0 cellpadding=0>
<tr><td width='3%'>ID</td><td width='22%'>Name</td><td width='31%'>Description</td><td width='17%'>Image</td><td width='27%'>Extra Info</td></tr>
<tr><td colspan=5><table width='100%' cellspacing=0 cellpadding=0>");
while ($row = mysql_fetch_array($retid)) {
$name = $row["name"];
$id = $row["id"];
$description = $row["description"];
$image = $row["image"];
echo ("<tr><td width='3%'>".$id."</td><td width='22%'>".$name."</td><td width='31%'>".$description."</td><td width='17%'><img src='".$image."'></td><td width='27%'>".$xinfo."</td></tr>");
}
echo ("</table></td></tr></table>");
}
?>