Quote:
Originally Posted by vsforums
Somehow i cannot use that code
$supertest = "works";
It must be:
$supertest = 'works';
|
I went through the same thing on my forum when making my own mod that were hooked to global start. The reason is, the double quotations clash with code that is in global.php. For example, if your mysql query is..
$sql='SELECT * from user WHERE userid='50''
what will happen is, the php script will only register:
$sql='SELECT * from user WHERE userid='
as the start and end of the SQL query. the 50'' part will cut off.
So to work around, you need to do something like;
$sql="SELECT * from user WHERE userid='50'"
same thing with plugins hooked to global_start (not sure if it affects over hooks)
instead of
echo "Hello!";
you need
echo 'Hello!';
sounds like i'm teaching you basic stuff lol but for some reason this is what I have noticed.