07.06.2012, 02:01
Quote:
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: PHP код:
PHP код:
|
If that's the case, try this:
PHP код:
$masql = mysql_query("SELECT * FROM Accounts WHERE MasterAccount='$user'");
if($masql)
{
while($marow = mysql_fetch_array($masql, MYSQL_NUM))
{
$field1 = $marow[0];
$field2 = $marow[1];
// and so on.. to whatever values you need in the table 'Accounts'
}}
PHP код:
<div align="center"><h5>Current Characters</h5>
<p><b><?php echo "$field1 <br /> $field2 </br> And so on.."; ?></b></p></div>
Quote:
Also;
PHP код:
Thanks! |