Re: Functions and arguments

From: Date: Thu, 30 Jan 2003 02:03:28 +0000
Subject: Re: Functions and arguments
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-133581@lists.php.net to get a copy of this message
> > What happens when you run this? I made some tweaks to the way I was running sessions, and now it works. I'm still getting an error unfortunately, but it's less conspicuous and spammy this time: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/virtual/site125/fst/var/www/html/atracker/assignments/index.php on line 33 The line(and dependent lines) in question is as follows: :::::::::::::::::::::::::::::CODE::::::::::::::::::::::::::::: $classes = mysql_query("SELECT period1, period2, period3, period4, period5, period6, periodpaws, period0 FROM students WHERE id = $id"); $classes_array = mysql_fetch_array($classes); $class_info = mysql_query("SELECT * FROM classes WHERE $id = ".$classes_array[period0]); $class_info_array = mysql_fetch_array($class_info); :::::::::::::::::::::::::::::CODE::::::::::::::::::::::::::::: Thanks for the help, Blaine von Roeder

« previous php.general (#133581) next »