HTML, JavaScript And CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingHTML, JavaScript And CSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old December 31st, 2003, 07:25 PM
crossbones crossbones is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: cali
Posts: 4 crossbones User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to crossbones Send a message via Yahoo to crossbones
Smile Php Help

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.

Reply With Quote
  #2  
Old January 1st, 2004, 08:21 AM
Skip's Avatar
Skip Skip is offline
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Nov 2003
Location: UK
Posts: 816 Skip User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 21 m 47 sec
Reputation Power: 5
is it in MySQL db ? can you post all the field names ?

Reply With Quote
  #3  
Old January 1st, 2004, 02:17 PM
Skip's Avatar
Skip Skip is offline
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Nov 2003
Location: UK
Posts: 816 Skip User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 21 m 47 sec
Reputation Power: 5
<?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 ...
}

?>

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingHTML, JavaScript And CSS Help > Php Help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway