I don't think dropping the quotes is the best solution.
One might consider dropping the warning level in php.ini, if it is a
problem, or use numbered array like mysql_fetch_row() returns.
-Joe
""Henning Kilset Pedersen"" <[EMAIL PROTECTED]> wrote in message
000f01c0d251$59b79000$a26547c1@pedershk">news:000f01c0d251$59b79000$a26547c1@pedershk...
> Hi!
>
> Drop the quotes around your array keys. It should be $row[imageurl] for
> example.
>
>
>
> ----------
> Henning Kilset Pedersen
> Anarchy Online Server Operations
> Oracle, PHP, e-Commerce etc.
> Funcom Oslo AS
> -----Original Message-----
> From: Petra [mailto:[EMAIL PROTECTED]]
> Sent: 1. mai 2001 03:29
> To: [EMAIL PROTECTED]
> Subject: [PHP-DB] undefined index
>
>
>
> hi to all
>
> I try to get data listed out of my database with the statement
>
> ...
> while ($row = mysql_fetch_array($sql)) {
>
> $image = $row["imageurl"];
> $id = $row["productID"];
> $name = $row["cdescription"];
> ...
>
> If i havent got anything in that field in my database I get the error
> message in my browser
>
> Undefined index: imageurl in ...
>
> How can I overcome that problem? Is there a way to define a index if that
> occurs and make it to not produce that error message?
>
> Hope I have explained it understandable enough. If you need to know more
> details let me know, I would appreciate any help I could get. Thanx
>
> P.
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]