Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

All of a sudden, I can't address my passed variables

Status
Not open for further replies.

judi

Programmer
Jan 13, 2001
35
US
I was working on a script yesterday, when all of a sudden I had problems with a script I hadn't changed in days. I begin displaying categories and that works fine. Then when I go to display the details, I get the following message: Warning: mysql_result(): supplied argument is not a valid MySQL result resource in c:\phpdev\ on line 129. That wasn't the script I was working on. Here is what I did:

1 - I downloaded the production versions of the scripts in question and it still doesn't work even though the same scrips work in production.
2 - The same problem occurs whether I hit the production database of the test database.
3 - I deleted, then reinstalled my apache, PHP and MySQL

The previous script is passing the variables just fine. Here is the URl for the script it bombed in:

But I cant address either catname or catid. BTW, there are two possible programs the display categories can go to and the error occurs in both.

I also ran a chkdsk last night and it didn't help.

Oh and it reacted the same whether I had my register_globals on or off. I did try $id = $_GET['id']; as well as just addressing the variable as $catid.

Any other ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top