Search Buster Directory Forums  

Go Back   Search Buster Directory Forums > Design and Development > DataBases


Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-10-2009, 04:26 PM
jack2012 jack2012 is offline
Junior Member
 
Join Date: May 2009
Posts: 12
Rep Power: 11
jack2012 is on a distinguished road
Default Php accessing a mysql database

$ip = "#####"; //Must be changed to the IP of your server
$port= "43594"; //This must be changed to the port of your server. Default: 43594

if (! $sock = @fsockopen($ip, $port, $num, $error, 5)) //If the server is offline..
{
echo "Players online - ####"; //Then this is echoed
}
else //If the server is online
{
echo "Server offline"; //Then this will be echoed
}
?>

I want the code to access a mysql database and change the "Players online - ####" to the amount of players online. Just make the code, i'll edit it to my database.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Free Database? tcm9669 DataBases 4 03-12-2009 01:49 AM
where is a dreamweaver php/mysql tutorial so a anjbananj PHP 1 04-26-2007 06:39 PM
create a database-web application using Active Server jpeom ASP 2 04-09-2007 08:45 PM
Which database is best with ASP .net ? karrar ASP 0 02-22-2007 08:22 AM


All times are GMT +9. The time now is 03:50 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0