PHP Classes

File: connection.php

Recommend this page to a friend!
  Classes of Arturs Sosins   Auto form   connection.php   Download  
File: connection.php
Role: Auxiliary script
Content type: text/plain
Description: Database connection for examples
Class: Auto form
Generate HTML forms to manipulate MySQL records
Author: By
Last change: Use mysqli instead of mysql
Date: 7 years ago
Size: 244 bytes


Class file image Download
= "db_name";
$user = "username";
$pass = "pass";
$serverlink = mysqli_connect("localhost", $user, $pass, $db) or die (mysqli_error($serverlink));
mysqli_query($serverlink, 'SET NAMES UTF8') or die (mysqli_error($serverlink));