PHP Classes

File: db_connect

Recommend this page to a friend!
  Classes of kostas gougakis   Shopping basket with MySQL connection   db_connect   Download  
File: db_connect
Role: Auxiliary script
Content type: text/plain
Description: db_connect for product list
Class: Shopping basket with MySQL connection
Shopping basket stored in a MySQL database
Author: By
Last change:
Date: 19 years ago
Size: 468 bytes


Class file image Download
= 'localhost';
$mysql_username = 'phpdevelopment';
$mysql_password = '';
$mysql_database = 'phpdevelopment_db_uk';
$database = mysql_connect($mysql_hostname, $mysql_username, $mysql_password);
mysql_select_db($mysql_database, $database);

//$dbh=mysql_connect ("localhost", "travel4_kostas", "elmalia1") or die ('I cannot connect to the database because: ' . //mysql_error());
//mysql_select_db ("travel4_coranto");