PHP Tutorials : Rename a mysql table

If you want to rename a mysql table via php you just need an extremely simple query like the following one:

<?php
//include db credentials

mysql_query(“rename table TheOldName to TheNewName”);
?>

Read PHP Tutorials : Rename a mysql table »

PHP Tutorial : Mysql Dump

Did you see this expression and doubt what it means? Mysql Dumps are files in different extensions/formats like .sql, .txt etc. which are used to store databases informations, table structures, mysql tables creations, table datas/entries and more. The mysql dumps are usually used to make a backup, transfer a website database when switching hosts for…………….

Read PHP Tutorial : Mysql Dump »

PHP Tutorial : Extracting rows from mysql

Helllooooooo,
In latest two posts I have shown you how to connect to a mysql database via PHP, and in another one I teach you how to select rows from a mysql database table. In this one I will show you how to extract that rows from mysql and print them out into a page. Let’s…………….

Read PHP Tutorial : Extracting rows from mysql »

PHP Tutorial : Building a MySQL query

In a recent tutorial I was showing you how to build a connection to MySQL database via PHP. In this one I will show you how to create a query to interogate a table of the database. Look below :

<?php
$query = mysql_query(“select * from table_Name”);
?>

* – sign means all, so by using this query, you…………….

Read PHP Tutorial : Building a MySQL query »

PHP Tutorial : Connecting to MySQL database via PHP

In this tutorial I will speak first time about php programming language and MySQL database engine togheter. I will show and explain how simple is to connect to a mysql server via php using a simple functio called mysql_connect().

mysql_connect(‘localhost’, ‘mysql_database_user’, ‘mysql_db_password’) or die(“not connected to db”);

Read PHP Tutorial : Connecting to MySQL database via PHP »