Whiteyoh,
Which is line 59?
Airshow
Airshow
WiFi Lounge Lizard
2,683 posts since Apr 2009
Reputation Points: 321
Solved Threads: 372
Probably after line: $myrow = mysql_fetch_array($result);
If the query fails, $myrow will be false instead of an array.
pritaeas
Posting Expert
5,480 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
Whiteyoh,
I agree with Pritaeas.
You can test the theory by inserting after $myrow = mysql_fetch_array($result);
if(!$myrow){
$myrow = array(
'Title' => 'testTitle',
'Subtitle' => 'testSubtitle',
'Content' => 'testContent',
'Author' => 'testAuthor',
'Date' => 'testDate'
)
}
Airshow
Airshow
WiFi Lounge Lizard
2,683 posts since Apr 2009
Reputation Points: 321
Solved Threads: 372