If searching on a field that is an Int then no quotes are required.
select *
from mytable
where myintvalue = $myint
However, you can also use quotes in this query and it will work just as well
select *
from mytable
where myintvalue = '$myint'
If it is a string field type then quotes must be used
select *
from mytable
where mystringvalue = '$mystring'
A select Statement using "AND"
Moderator: General Moderators
- Love_Daddy
- Forum Commoner
- Posts: 61
- Joined: Wed Jul 10, 2002 6:55 am
- Location: South Africa
- Contact: