FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Looking For a Simple Example of Linking php to mysql





Possum
Hi

I would like to view an example of a web page linking to a mysql database. If anyone know of a simple tutorial out there I would live to look at it..


Cheers Possum..
sonam
Quote:
I would like to view an example of a web page linking to a mysql database.


What do you mean with word linking? Lot of sites using mysql, all search engines, bookshops, etc.

Here is simple tutorial:
http://www.tizag.com/mysqlTutorial/index.php
AOP Web Development
hi, i hope i do understand what you mean maybe you want a connection into mysql. Here i would like to share a simple connection into mysql using php language


Code:

<?php
// we connect to example.com and port 3307
$link = mysql_connect('example.com:3307', 'mysql_user', 'mysql_password');
if (!$link) {
   die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);

// we connect to localhost at port 3307
$link = mysql_connect('127.0.0.1:3307', 'mysql_user', 'mysql_password');
if (!$link) {
   die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?>



If you want to know more you can visit php.net and download the php manual in there Wink
Related topics
PHP, MySQL...
The Basics (php, mysql etc)
PHP/Mysql - beginner!
A very good PHP MySQL Tutorial
PHP/MYSQL... teach me, what i have to do...
Project to join - php,mysql??
Link PHP/Mysql with Outlook Express
ASP +PHP+MySQL Tutorials
what is your php mysql apache installer package
Need some php/mysql dlls
What is useful way in this php+mysql problem?
Setup php,mysql and others...
php, mysql and iis5
 EASY 40 frih$ IF YOU KNOW PHP+MySQL 
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.