RSS

Tag Archive | "mysql"

How To Connect To a MySQL Database

Saturday, November 1, 2008

0 Comments

Connecting to a MySQL database in PHP is very simple. People seem to be under the impression its very complicated. To connect to a database firstly we need to connect to MySQL using this function: mysql_connect ( ) Here is the syntax for this: mysql_connect('localhost', 'mysql_user', 'mysql_password') A slightly more advanced way of doing this is using this. It [...]

Continue reading...

Simple PHP and MySQL Search Engine

Wednesday, August 27, 2008

2 Comments

This tutorial will show you how to make a simple PHP and MySQL search engine. The first thing you will need to do is make a database in MySQL, CREATE TABLE `searchengine` ( `id` INT NOT NULL AUTO_INCREMENT , `pageurl` VARCHAR( 255 ) NOT NULL , PRIMARY KEY ( `id` ) ) ENGINE = MYISAM Run this as a SQL query and [...]

Continue reading...