Search Data With PHP and Mysql tutorial source code

Search Data With PHP and Mysql tutorial source code




   Demo                Download



Search Data With PHP and Mysql tutorial source code

First create a table 

CREATE TABLE search
(
id INT PRIMARY KEY AUTO_INCREMENT,
title VARCHAR(30) UNIQUE,
description VARCHAR(30)
);



Edit the search.php for database connection



<?php
$mysql_hostname = "hostname";
$mysql_user = "username";
$mysql_password = "password";
$mysql_database = "database";
$bd = mysql_connect($mysql_hostname, $mysql_user, $mysql_password) 
or die("cant able to connect");
mysql_select_db($mysql_database, $bd) or die("sorry cant able to connect");
?>




Author : Solomon David

 
 Facebook , Google+     

Comments

Post a Comment

Popular posts from this blog

Best Social Networking Software CMS 2013 - Free

Like And Dislike Rating System With PHP ,MySQL and Jquery