• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[PHP] how to..

Tibiamakers

yourolist.com
Joined
May 24, 2010
Messages
1,377
Reaction score
97
Location
España
PHP:
<?php
$conexion=mysql_connect("localhost","root","*******");
mysql_select_db("****",$conexion);
$total=mysql_query("select count(*) referral from accounts where referral=_____",$conexion);
while ($reg=mysql_fetch_array($total))
{
 $main_content .= '<center><b><H2>bla</b></H2>
 This is the quantity of accounts '.$reg['referral'].' <br><br>'; {    
  } 
}
mysql_close($conexion);
?>

______I want to put a variable that have to be the id of the account logged

I don't know if is well explained, tell me if not

thanks:)
 
Last edited:
it would be profitable (and productive) to use a database interface class like PDO instead of the traditional mysql_* functions
 
Back
Top