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
Zoram
Forum Contributor
Posts: 166 Joined: Sun Aug 18, 2002 3:28 pm
Location: Utah
Contact:
Post
by Zoram » Tue Oct 22, 2002 10:41 am
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 » Tue Oct 22, 2002 10:47 am
did u check your mysql table? it might have something wrong with it, happens to me all the time.
Zoram
Forum Contributor
Posts: 166 Joined: Sun Aug 18, 2002 3:28 pm
Location: Utah
Contact:
Post
by Zoram » Tue Oct 22, 2002 10:50 am
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 » Tue Oct 22, 2002 11:02 am
could be corrupted...
Zoram
Forum Contributor
Posts: 166 Joined: Sun Aug 18, 2002 3:28 pm
Location: Utah
Contact:
Post
by Zoram » Tue Oct 22, 2002 11:12 am
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 » Tue Oct 22, 2002 11:16 am
hmm..i should really read all of the post before posting
show us the code then
Zoram
Forum Contributor
Posts: 166 Joined: Sun Aug 18, 2002 3:28 pm
Location: Utah
Contact:
Post
by Zoram » Tue Oct 22, 2002 6:23 pm
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!