Re: Error in MySQL

From: Date: Thu, 10 Aug 2000 06:37:56 +0000
Subject: Re: Error in MySQL
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-11076@lists.php.net to get a copy of this message
On 10 Aug, Jay wrote: > Hello, > > I am using PHP to call data from a database by html.php3?id=#. It works > great, but if the user would go to html.php3 it pops out this error: > > Warning: 0 is not a MySQL result index in (absolute path)/index.php3 on line > 17 > > I was wondering if there was a way to redirect to user to another page, so > that they do not see the error? > > Thanks, > > Jay Stauffer > > You could test in html.php3 if $id is set - if not then you could do a redirect instead of running the database query. Cheers -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA

« previous php.general (#11076) next »