|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I need a PhP Script for a school project, they had all these different choice and i chose to make a game, Well i need a PhP script that will go get and display all the player's info from the database, like there money, there thugs, weapons, etc.
CAN SOMEONE HELP ME PLEASE ? Last edited by crossbones : December 31st, 2003 at 07:28 PM. |
|
#2
|
||||
|
||||
|
is it in MySQL db ? can you post all the field names ?
|
|
#3
|
||||
|
||||
|
<?php
//connect using your hostname , username and password. $connection = mysql_connect("localhost" , "UserName" , "Password"); //select the database $db = mysql_select_db("DBNAME" , $connection); $query = "SELECT *FROM TableName WHERE PlayeName = $PlayerName"; //execute the query $result = mysql_query($query); //loop through rows in the database while($rows = mysql_fetch_row($result)) { echo $rows[1] // etc etc ... } ?> |
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > Php Help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|