Code: Select all
<?php
$a = "Hello";
${$a."Hi"} = "Goodbye";
echo ${$a."Hi"};
?>Moderator: General Moderators
Code: Select all
<?php
$a = "Hello";
${$a."Hi"} = "Goodbye";
echo ${$a."Hi"};
?>Code: Select all
$num = ${p.$a."pos"};
$len = ${p.$a."len"};
$named = ${p.$a};
$test = mysql_query("select friendrequests from notes_notes where email = '$usr' and Password = '$pwd'") or die(mysql_error());
$test3 = mysql_fetch_object($test);
$test4 = $test3 -> friendrequests;
$namen = $named.",";
$test2 = str_replace("",$namen,$test4);
echo $test2;
mysql_query("UPDATE notes_notes SET friendrequests = '$test2' WHERE email = '$usr' and Password = '$pwd'") or die(mysql_error());
$tes = mysql_query("select friendrequests from notes_notes where email = '${$named}'") or die(mysql_error());
$tes3 = mysql_fetch_object($tes);
$tes4 = $tes3 -> friendrequests;
$tes2 = str_replace($namen,"",$tes4);
mysql_query("UPDATE notes_notes SET friendrequests = '$tes2' WHERE email = '${$named}'") or die(mysql_error());