RE: Notice: Undefined index:

2003-01-15 Thread Maureen Roihl
3 9:49 AM > To: 'Maureen Roihl'; 'C. Reeve'; MySQL List > Subject: RE: Notice: Undefined index: > > > It that does not work. You could try the following snippet: > > if ($result = mysql_query ($query);) >

RE: Notice: Undefined index:

2003-01-15 Thread Victor Pendleton
); } else { ... } -Original Message- From: Maureen Roihl [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 7:49 AM To: 'C. Reeve'; MySQL List Subject: RE: Notice: Undefined index: That looks like a PHP problem to me. Have

Re: Notice: Undefined index:

2003-01-15 Thread dunk fordyce
dont forget mysql_fetch_object() then you will have $line->lastname; Maureen Roihl wrote: That looks like a PHP problem to me. Have you tried mysql_fetch_assoc()? I believe mysql_fetch_row() gets you an array with a numeric index (in which case lastname would be in $line[0]). Notice: Undefine

RE: Notice: Undefined index:

2003-01-15 Thread Maureen Roihl
That looks like a PHP problem to me. Have you tried mysql_fetch_assoc()? I believe mysql_fetch_row() gets you an array with a numeric index (in which case lastname would be in $line[0]). > Notice: Undefined index: lastname in E:\IIS Webs\index.php on line 29 > > > PRINT ""; > PRINT ""; > PRIN