PHP Help
#1

i'm making a User Control panel and in the pages of the web comes me eror
pawn Код:
Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in C:\xampp\htdocs\ucp\login.php on line 24

Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in C:\xampp\htdocs\ucp\login.php on line 25
The password or username you have entered is incorrect.
here is line of 24 and 25 of the page login.php

PHP код:
        $username mysql_escape_string($_POST["user"]); //Line 24
        
$password mysql_escape_string($_POST["password"]); //Line 25 
i don't know where to put this post of web .. sorryyyy
Reply
#2

What you think about this ?

Код:
$username = mysql_real_escape_string($_POST["user"]); //Line 24 
$password = mysql_real_escape_string($_POST["password"]); //Line 25
Reply
#3

okey it's okey
now
how to set for the server run on the ucp
__________________________________
on ongamemodeinit what to put ?(i think this )
PHP код:
mysql_connect(mysql_hostmysql_usermysql_databasemysql_password); 
and here is my web http://dreamworld-game.orgfree.com/ucp/ it's without design i'm just learning.

i'm learning from this https://sampforum.blast.hk/showthread.php?tid=159785

or to connect to the web this is needing ?

pawn Код:
#define mysql_host "127.0.0.1" //Has to be a string
#define mysql_user "root" //Has to be a string
#define mysql_password "" //There is none for wamp unless you set one.
#define mysql_database "sa-mp" //Has to be a string
Reply
#4

Make the both, website script and the gamemode connect to your mysql host, and by the way (You cannot connect your webpages with localhost)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)