Can any one tell me why this code doesn't work?
$bodytag = str_replace("id=\"", "id=1\"",
"$p = $_GET['p'];
echo '<link rel=\"stylesheet\" type=\"text/css\" href=\"styles.php?id=$p\">';
");
Thanks in advance!
Can any one tell me why this code doesn't work?
$bodytag = str_replace("id=\"", "id=1\"",
"$p = $_GET['p'];
echo '<link rel=\"stylesheet\" type=\"text/css\" href=\"styles.php?id=$p\">';
");
Thanks in advance!
Is this what you are meaning to do?
$p = (int)$_GET['p'];
echo '<link rel="stylesheet" type="text/css" href="styles.php?id='.$p.'">';