Jump to content

SELECT query not including xx


CanMan2004

Recommended Posts

Hi all

I have a simple query

[code]$q = "SELECT * FROM logins WHERE name='$name'";[/code]

Is it possible to make the query ignore a particular row id number?

So the code would look something like

[code]$q = "SELECT * FROM logins WHERE name='$name' WHERE id != '342'";[/code]

That would select everything apart from id number 342

Any help would be great

Thanks in advance

Ed
Link to comment
https://forums.phpfreaks.com/topic/26567-select-query-not-including-xx/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.