09-13-2007, 02:47 PM
|
#8 (permalink)
|
|
La Vida es Sueño
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
|
Are you sure about that Village Idiot? I'm fairly sure if the (int) typecasting is unable to wither the string down to an integer, it will leave you with zero (0). In addition to Jordie's comment, which is spot on, you may also use sprintf as well. Like so:
PHP Code:
$szSQL = sprintf("update ... where id=%d", $id);
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
|
|
|