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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query String not working?

Status
Not open for further replies.

JamesManke

Programmer
Joined
Jul 1, 2004
Messages
54
Location
CA
I have just updated to easyphp 1.7 from 1.6 and query strings dont seem to work at all. Is there a setting in the php.ini file that I should be changing?
Thanks for your help:)
 
Define not working? Error messages? Output?

___________________________________
[morse]--... ...--[/morse], Eric.
 
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in...

This was working fine before I updated to 1.7 It seems as if it doesn't reconize a query string.
 
I might add that the querystring is being carried over through the link, BUT the values are empty, causing the page to have errors. I also might add that I do have the globals turned On.
 
it more than probably that this is your error source... identify where your variables come from (POST, GET, SESSION, GLOBALS) and use these arrays to get the values. for example if your variable comes from a post and is named myvar, instead of using $myvar use $_POST['myvar'].

i would suggest you do this to the entire site and then switch back the global variables to off.
 
Warning: mysql_fetch_assoc(): supplied

I'd say that your mysql connection (e.g. $link=mysql_connect(blah,blah);)

isn't global, therefore you cant call it, so the mysql_fetch_assoc() is failing, or your query is failing returning an error.


______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
Add error checking to your mysql command by appending an OR die(mysql_error()) to the statements. Give MySQL a chance to talk to you before it conks out.
 
Can you insert print_r($_GET) please early on in the code please
 
Fixed... Error reporting was set to error_reporting(0) when it should have been set to error_reporting = none. Would change all the variables in the site for globals but, site is very large and dont have a week to change them all! Easier to to have globals turned on in this case. Thanks for all the insite guys, muchly appreciated:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top