User Control Panel HELP (+1rep)
#1

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)


Код:
<?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
}
?>
Reply


Messages In This Thread
User Control Panel HELP (+1rep) - by Zeus666 - 11.07.2016, 18:02
Re: User Control Panel HELP (+1rep) - by Flake. - 11.07.2016, 20:19
Re: User Control Panel HELP (+1rep) - by Zeus666 - 11.07.2016, 20:38

Forum Jump:


Users browsing this thread: 1 Guest(s)