hi, i need to call the RegExp grouping from a preg_match, i've tried so many things, yet...none work...
here's a few examples of what i've tried
if (preg_match("/\[quote=(\d+)\]/",$SwitchElements)) {
$quoteget = mysql_fetch_array(mysql_query("SELECT * FROM `posts` WHERE `id`='".$matches[1]."'"));
if (preg_match("/\[quote=(\d+)\]/",$SwitchElements)) {
$quoteget = mysql_fetch_array(mysql_query("SELECT * FROM `posts` WHERE `id`='\\1'"));
if (preg_match("/\[quote=(\d+)\]/",$SwitchElements)) {
$quoteget = mysql_fetch_array(mysql_query("SELECT * FROM `posts` WHERE `id`='".$1."'"));
can you help?