05.04.2012, 09:34
Lol you need host and domain
Allright i have a Basic y_ini saving system. I dont have any knowledge about Mysql. I dont know what is needed for what?
Can i make a user control panel using this for my server? Do i need to convert my script to MYSQL or SqLite or BlazingUserDB ? Is that so? |
You don't have to but that would be better than leaving ini based saving accounts and other!
If you still don't want to convert to MySQL than you should see how Grex made it in Grex's Control Panel! |
Which points, really don't understand what you/he talk about :S
|
echo "<br><br>Name: ".$name."<br> Money: ".$money."<br> Score: ".$score."<br> Kills: ".$kills."<br> Deaths: ".$deaths;
<?php include("config.php"); //including our config.php session_start(); //starting session error_reporting(0); if(isset($_SESSION['username'])) //if session is set, so if user is logged in... { $username = $_SESSION['username']; //setting variable username as one from session $query = mysql_query("SELECT * FROM users WHERE username = '$username'"); //selecting all from table users where username is name that your is loged in echo "Welcome ".$_SESSION['username']; //saying welcome to user! while($row = mysql_fetch_assoc($query)) //looping thousgt table to get informations { $name = $row['Name']; //selecting user name, change 'username' to your field name $money = $row['Money']; //selecting user money, change 'money' to your field name $score = $row['PlayerLevel']; //selecting user score, change 'score' to your field name $kills = $row['AdminLevel']; //selecting user kills, change 'kills' to your field name $deaths = $row['Bank']; //selecting user deaths, change 'deaths' to your field name } echo "<br><br>Name: ".$name."<br> Money: ".$money."<br> Score: ".$score."<br> Kills: ".$kills."<br> Deaths: ".$deaths; } else header('location: index.php'); //if user isn't loged in it will redirect him on login.php ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Basic UCP</title> </head> </html>