Im Need Tutorial

07/15/2013 14:28 fandy1#1
How to entering this code please in phpmyadmin :handsdown:

Quote:
<html><head><title></title></head><body>
Please Follow Me <a href="http://www.facebook.com/residenthuman" target="_blank">FACEBOOK</a>.<BR/>
<form action="socialwar.php" method="post">
ID FB:<br/>
<input name="fbid" /><br/>
FLASH VERSION:<br/>
<input name="flashVersion" value="1.4.43"/><br/>
cash:<br/>
<input name="cash" value="0"/><br/>
xp:<br/>
<input name="xp" value="0"/><br/>
gold:<br/>
<input name="gold" value="0"/><br/>
wood:<br/>
<input name="wood" value="0"/><br/>
oil:<br/>
<input name="oil" value="0"/><br/>
steel:<br/>
<input name="steel" value="0"/><br/>
<input type="submit" value="Send" />
</form></body></html>
07/15/2013 15:31 Acin™#2
Do you mean in a .php File?
07/16/2013 11:34 telcy#3
if you are sending values to a php file you can get them by using:

PHP Code:
$xp $_POST['xp'];
$gold $_POST['gold']; 
Then you have to put it into the database.

First build a database connection:

PHP Code:
$connection mysql_connect ("servername""user""password") or die ("No connection. Wrong user or password.");
mysql_select_db("databasename") or die ("Database does not exist."); 
Then we have to fill the table with our data:

PHP Code:
$insert "INSERT INTO tablename (xp, gold) VALUES ('$xp', '$gold')";
$do_insert mysql_query($insert); 
I hope you understand it.

Regards,
telcy