Search Data With PHP and Mysql tutorial source code
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)
);
(
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");
cant able to connect
ReplyDelete@subaharan Do u set the right server, username and password? Usually the Server Name is 'localhost' the username is 'root' and password isn't set
Deleteur right
Deleteit's okey
Deletegood one!
ReplyDeletethanx
Deletenice work........it's very simple
ReplyDeletethanks bro
Delete