Re: Question on DB

From: Date: Tue, 09 Oct 2001 18:57:54 +0000
Subject: Re: Question on DB
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-13152@lists.php.net to get a copy of this message
I can not find a sql file anywhere on the server. the statment calls it as: $db = mysql_connect("localhost", "make", "testit"); mysql_select_db("jobs", $db); $return = mysql_query("select * from config"); $copy = mysql_fetch_array($return); mysql_close(); I can not find jobs.sql anywhere. ??? "Rick Emery" <remery@excel.com> wrote in message news:EAA093B474ABD311A71E00508B5FE08305C2CA3A@adntex03.us.excel.com... > The .SQL files will not be located where the .phtml files are. They will be > located elsewhere as specified by the web-hosting company. > > To answer questions about the errors, we must see the code that precedes > these errors. > > -----Original Message----- > From: Viper1 [mailto:viper1@mediaone.net] > Sent: Tuesday, October 09, 2001 11:06 AM > To: php-db@lists.php.net > Subject: [PHP-DB] Question on DB > > > > > I have a question about a problem I am having on a > mysql db. I have inherited a website from someone that > I can no longer get in touch with. The website is a > smaller version of Monster.com it allows user to > submit a resume and search jobs online. I am having > errors on it but I am not sure I have it all. Should > it have a *.sql file? It has only phtml,inc files also > a admin area and all the images. > > I am getting an error on index.phtml of: Warning: > Supplied argument is not a valid MySQL result resource > in C:sitessitesindex.phtml on line 7 > > and : Warning: Supplied argument is not a valid MySQL > result resource in C:sitesdocsma.inc on line 7 > > > line 7 of index is: $copy = > mysql_fetch_array($return); > > line 7 of ma.inc: $meta_row = > mysql_fetch_array($meta_return); > > Please help . Thanks.. > > > > > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.db (#13152) next »