On 18-Mar-01 phpman wrote:
> hello all,
> 
<snip>

> 
> and i want to find out if  $tmp[1] is a string or an integer (that's really
> all I need to determine 

gettype($foo) ?

>                          so i can put
> together an SQL statement that puts single quotes around strings and none
> around integers). 

<snip>

depending on your SQL engine, you can usually quote integers.

Regards,
-- 
Don Read                                         [EMAIL PROTECTED]
-- If you are going to sin, sin against God, not the bureaucracy. 
                  God will forgive you but the bureaucrats won't. 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to