11.07.2016, 18:02
(
Последний раз редактировалось Zeus666; 11.07.2016 в 18:45.
)
I've downloaded Sensation Roleplay's UCP. ( https://github.com/AidanRO/Sensation...y-UCP/releases )
I've searched many tutorials about connecting a UCP to your database but I did not find anything good.
Can you help me how to do it? And UCp is loading so damn hard.
http://vestigedayz.com/ucp/index/
Thank you (Even if it's not PHP help zone, it's related to SA:MP scripting)
I've searched many tutorials about connecting a UCP to your database but I did not find anything good.
Can you help me how to do it? And UCp is loading so damn hard.
http://vestigedayz.com/ucp/index/
Thank you (Even if it's not PHP help zone, it's related to SA:MP scripting)
Код:
<?php session_start();// Starting Session include ("variables.php"); $connection = mysql_connect($dbservername, $dbusername, $dbpassword); mysql_select_db($dbname, $connection); // Storing Session $user_check=$_SESSION['login_user']; // SQL Query To Fetch Complete Information Of User $ses_sql=mysql_query("select Username from Accounts where Username='$user_check'", $connection); $row = mysql_fetch_array($ses_sql); $login_session =$row['Username']; if(!isset($login_session)){ mysql_close($connection); // Closing Connection } ?>