News problem in PhoenixPHP!

dalle

Member
Oct 2, 2011
70
1
Hey guys i need some help with my PhoenixPHP news in HK
Cuz when i try go to news i get this -

Parse error: syntax error, unexpected T_VARIABLE in C:\xampp\htdocs\housekeeping\news.php on line 1

How can i fix it?

Here's my first line

<?php$news1_3 = mysql_query("SELECT * FROM cms_news ORDER BY published DESC LIMIT 3");
?>
 

Detox

Member
Jul 24, 2010
365
24
Well has soon i saw that Images with that Code i mean Yeah that is what is causing the problem.
Sick of fixing all sql injections in PhoenixPHP? Here's a little tip to fix (almost) all holes!
step 1: open global.php
step 2 add under "$users = new Users();"

PHP:
foreach($_GET as $key => $value){
$_GET[$key]=$core->EscapeString($value);
}
foreach($_POST as $key => $value){
$_POST[$key]=$core->EscapeString($value);
}
foreach($_REQUEST as $key => $value){
$_REQUEST[$key]=$core->EscapeString($value);
}

LEARN TO READ

 

Users who are viewing this thread

Top