while hes registered his details are in mysql . you need only to make a profile.php
Here you go :
<?php
$name = $_GET["name"]
$details = array();
$query = mysql_query("SELECT * FROM users WHERE username='".$_GET["name"]."'");
$query2 = mysql_query("SELECT * FROM users");
$rowshow =...
class.MySQLprogram.php :
<?php
/*------------------------------------------*\
| Complete MySQL program programmed by Mac |
\*------------------------------------------*/
class MySQLPROGRAM {
public $mysqlI = array(); # Private informations , you don't need to put anything in the array...
I love this , just one "fix" :
when you do if $_POST["submit"] set your input value $_POST["text name"] , so for example in the input says facebook and then when they generate in the input will be their text that they put before
I hope you understand me !
Actually you don't understand it! It works with FORM ! UNDERSTOOD ? We don't need to check if get is numeric if the input in the form should be numeric ! :@
and yeah , ill make the code :
<?php
/* A simple PHP game programmed by Mac */
$game = array();
$game["number"] = $_GET["number"]...
ehmm! What am i saying ? OBV it can , but users are not going to set the number that way! It will be with a form , in the form they can't enter a text ! Look at the code before saying "newbie" no offence .
and yeah , who is going to use firebug and other things for this thing ? LOL!
X1M! i haven't done the thing to check if $_GET is numeric because the in the input you cannot put text ! So the $_GET is obv numeric . That's why !
And yeah thanks!
2 styles of rooms in one room , so peoples would do : :changeRoomStyle and they will set their room in other style . I don't know if you get me . so 2 rooms in one room! So for example if they want to do a FF they set room , and then they do :changeRoomStyle and then they set room for CC .
<?php
/* A simple PHP game programmed by Mac */
$game = array();
$game["number"] = $_GET["number"];
$game["add"] = $_GET["add"]; # You can change this number !
$game["result"] = $game["add"] / 2;
if($_GET["submit"]):
if($game["number"] and $game["add"])...
Well , i helped powahcoder with a motto change system , and i wanted to make it OOP so i made it! Anyways i don't have MySQL in my webhost so when i am testing it, it's giving me mysql errors (that's clear!) but i want you to check my code if everything is good , and if there are any other...
<?php
/* A simple motto change programmed by Mac for powahcoder */
$actual_motto = mysql_query("SELECT motto FROM users WHERE username='".$_SESSION["username"]."'"); # If your query is not so , then change it!
$new_motto = $_POST["motto"];
if($_POST["submit button name"]): # Change submit...