Was working... now is not :(

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Zoram
Forum Contributor
Posts: 166
Joined: Sun Aug 18, 2002 3:28 pm
Location: Utah
Contact:

Was working... now is not :(

Post by Zoram »

This runs on the main page of the site, but on one page it stopped working and gave me :

Warning: mysql_query(): 1 is not a valid MySQL-Link resource ...

It was working fine last night... is it a glitch or did i script something wrong?
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

did u check your mysql table? it might have something wrong with it, happens to me all the time.
User avatar
Zoram
Forum Contributor
Posts: 166
Joined: Sun Aug 18, 2002 3:28 pm
Location: Utah
Contact:

Post by Zoram »

What would be wrong with the table?
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

could be corrupted...
User avatar
Zoram
Forum Contributor
Posts: 166
Joined: Sun Aug 18, 2002 3:28 pm
Location: Utah
Contact:

Post by Zoram »

Then why would it work on all the pages but one?
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

hmm..i should really read all of the post before posting :roll:

show us the code then :)
User avatar
Zoram
Forum Contributor
Posts: 166
Joined: Sun Aug 18, 2002 3:28 pm
Location: Utah
Contact:

Fixed it

Post by Zoram »

Sorry to take up your time. I fixed it. I had changed the way that i did the database connection and had an extra close function in the script. Thanks!
Post Reply