Raised This Month: $ Target: $400
 0% 

PHP problem (MySQL query with GET Variable)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ProIcons
Senior Member
Join Date: Jan 2009
Location: Greece - Salonica
Old 04-29-2011 , 10:04   Re: PHP problem (MySQL query with GET Variable)
Reply With Quote #2

Obviously here is Amxmodx Pawn Helping Forum, but anyway

PHP Code:
    if(!$_GET['site'])
    {
        
$query="SELECT * FROM `furienmoney` ORDER BY `furienmoney`.`ac_total` DESC LIMIT 1, 50;";
    }
    else
    {
        
$site $_GET['site'];
        
$query="SELECT * FROM `furienmoney` ORDER BY `furienmoney`.`ac_total` DESC LIMIT ".$site.", 50;";
    } 

Edit: But i would suggest you to take a look of this: http://www.learnphponline.com/securi...tion-mysql-php , In the topic: "SQL Injection Prevention: The Solution In Preventing SQL Attacks"
__________________
function rb return $regsubex($$1-,/(.)/g,$+($chr(2) $+ $chr(3),$r(2,15),$chr(2),\1))

Last edited by ProIcons; 04-29-2011 at 10:12.
ProIcons is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode