That doesn't work as the new string already is like "select * FROM `table`
where id='2' order by name" assuming $value was 2...
"Hatem Ben" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
Greetings all,

I got a headache doing this, i need to get vars inside an sql query. For
example :

$query = "select * FROM `table` where id='$value' order by name";
preg_match_all("/^('\$(.*)')/si", $query,$matches);

any help plz ?

Thanks,
Hatem





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to