Technology, Web & Business Forum

You are here: Technology, Web & Business Forum : Web Development : Programming : How to connect MYSQL Data base on a webserver with a PHP Script or page?


Welcome to the Technology, Web & Business Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.


Programming Discuss programming languages such as .NET, PHP, PERL, ASP, ColdFusion, C++


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-19-2010
Junior Member
 
Join Date: Feb 2010
Posts: 2
Default How to connect MYSQL Data base on a webserver with a PHP Script or page?

HI,
I have a website and i want to connect a database in order to get form data saved into it.
Want to do it using PHP.
Now i am looking or the basic connection process. Not the SQL syntax for queries but only to establish the connection.
Reply With Quote
  #2 (permalink)  
Old 04-06-2010
Junior Member
 
Join Date: Apr 2010
Posts: 1
Default hai

Use this function in PHP:

mysql_connect()

syntax:
mysql_connect(servername,username,pass…

example:
<?php
$con = mysql_connect("localhost","peter","abc12…
if (!$con)
{
die('Could not connect: ' . mysql_error());
}

// some code
?>
__________________
ac compressor
Reply With Quote
  #3 (permalink)  
Old 07-24-2010
Senior Member
 
Join Date: Mar 2010
Posts: 186
Default Backgammon

Hi,
Backgammon is one of the oldest board games of skill Backgammon is a 2-player game of skill where each player initially has 15 checkers on a board consisting of 24 spaces or points. The checkers are moved according to the rolls of the two dice. Each player has to to bring his own checkers in the home area and bear them off before his opponent, hitting and blocking the opponent's checkers along the way.
'How to Play Better Backgammon is extremely useful for those who play backgammon online.
And I can recommend you a good Backgammon Site to help you recording Top Score in this game. If you play Backgammon for fun, here's your opportunity to 'spice-up' the game and use your skill to try and win some money!
Thanks
____________________
Reply With Quote
Reply

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


All times are GMT -5. The time now is 07:38 PM.