06.06.2012, 01:54
(
Последний раз редактировалось iGetty; 06.06.2012 в 22:48.
)
Edit:
I have a new problem.
Well; two.
1) How do I get multiple results from a sql database and then store them into a string?
I have this:
And
IT should show up to 4 characters, not just one.
Also;
That doesn't store the result of $user into the MasterAccount section on the Table. It just leaves it blank.
Thanks!
I have a new problem.
Well; two.
1) How do I get multiple results from a sql database and then store them into a string?
I have this:
PHP код:
$masql = mysql_query("SELECT * FROM Accounts WHERE MasterAccount='$user'");
$marow = mysql_fetch_row($masql);
PHP код:
<div align="center"><h5>Current Characters</h5>
<p><b><?php echo $marow[1]; ?></b></p></div>
Also;
PHP код:
$sql = mysql_query("INSERT INTO Accounts (Username,Password,IP,MasterAccount) VALUES('$charname','$password', '$ip', '$user')") or die (mysql_error());
Thanks!