FW: Warning: 1 is not a MySQL link index in ...Can't select the d atabase.
| From: | CJ Romberger | Date: | Wed, 14 Jun 2000 23:07:27 +0000 |
| Subject: | FW: Warning: 1 is not a MySQL link index in ...Can't select the d atabase. | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-419@lists.php.net to get a copy of this message | ||
> I have a php3 script that is uploading a file, copying it to my area, and
> opening it up. Then I try to connect to a mysql database, select the
> database, and then go through the file and do inserts.
>
> If I just do the file part, putting it in my area, opening it, printing
> everything out to the screen, life is good. It works.
>
> If I just do the database part, connect, select, run a query or an insert,
> life is good. It works.
>
> When I try to combine them, anywhere together in the same script, I get
> the error showing in the subject line here:
> Warning: 1 is not a MySQL link index in
> /home/eboing/eboing-www/fileupload/upbroke.php3 on line 27
> Can't select the database
>
> Any ideas? I'm happy to send the code if someone thinks they can figure
> it out. I've been trying for two days now, every combination I can think
> of. I REALLY need to solve this! I am closing the file and the database
> connection properly, too.
>
> CJ Romberger
> www.sagedev.com
> "No other personal quality contributes to success more than relentless
> persistence in the pursuit of one's goals."
>