Jump to content

[SOLVED] Using WHERE


Maverickb7

Recommended Posts

Hello,

I was wondering if someone could help me out. I've been using the below code.

SELECT * FROM game_details WHERE gpub = \"$cid\" & gpid=\"9\" ORDER BY gname

Basically I'm trying to specific to things after WHERE. It seemed to be working the way I thought it would until I tried using different numbers with gpid. If the value is set to 1 it will display all results with 1. But if I set it to 9 it does not display the results and is blank even though there are suppose to be results for 9. Anyone know what I'm doing wrong?

Link to comment
Share on other sites

ok, if the string uses double quotes,  dont escape others in the string, use single

 

insead of & use and

 

see what happens.....

 

also, check your using the right table, sounds stupic, but mak sure there isnt a spelling mistake or something.....

 

 

gdlk

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.