select * From ????
| From: | Bruce Levick | Date: | Sun, 15 Dec 2002 22:44:57 +0000 |
| Subject: | select * From ???? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-128348@lists.php.net to get a copy of this message | ||
Hi,
Am just a newbie at this and was going great until I have hit this smell
snag.
I am connecting to mysql and all works well there. I query a table
"Illustrations" ($query = "SELECT * FROM Illustrations";), and want to
print the values of two columns ("titletext" & "img")within each row as
the request loops.
Print "<td><tr>$row[titletext]<br></td></tr>";
Print "<td><tr>$row[img]<br></td></tr>";
The code inplace seems all ok, but for some reason I am only being
returned the value of "titletext" and not also the value of "img". Am I
to be setting a new value for returning the info within "img"?? (eg
$row2).
I am sorry if this is hard to understand and also a silly Q, I am two
days into learning this stuff. All I want to do is to return these two
values from within the table. "titletext" and "img". They are both text
fields.
Cheers