a3t is the 10th feild in my table
That table row is populated only to the the 9th field.
I want my script to check if a feild contains data
If it does the do this.
If not move to the next feild to check that one.
$result = mysql_query("SELECT * FROM table",$db);
while ($myrow = mysql_fetch_array($result))
{
if (isset($myrow["a3t"])){
printf ("<tr><td>\n");
echo "string is set";
//printf ($myrow["question"]);
printf ("</td></tr>\n");
}
else{
printf ("<tr><td>\n");
echo "string is NOT set";
printf ("</td></tr>\n");
}
}
if I change where is says
if (isset($myrow["a3t"])){
to
if (isset($myrow["a1t"])){
I should get string is set sent back to me since it does contain data.
Where might I be going wrong???
G