Category Archives: PHP

Save MySQL from Oracle

Urgently need help save MySQL from Oracle’s clutches. Without your immediate help Oracle might get to own MySQL any day now.

Use PHP5 by default by editing your .htaccess file

To make PHP5 as the default version of php for your account please insert the following line of code in the .htaccess file under the public_html directory of your account.

Warning: mail(): SMTP server response: 451

If you ever receive the error 451:
Warning: mail(): SMTP server response: 451 See http://pobox.com/~djb/docs/smtplf.html. in…
This is a server error and the command has been aborted due to a server error. It’s not your fault. Your form or shopping cart is sending mail with “bare LFs” which Qmail doesn’t support.

How to display the results from your database in order

Ascending”SELECT * from name_of_table order BY date ASC”
Descending”SELECT * from name_of_table order BY date DESC”

Retrieve Data From a MySQL Database

Using PHP you can run a MySQL SELECT query to fetch the data out of the database.
Here is an example of one of the easiest ways to fetch data, this example uses a table called contact which has four columns, name, subject, address and message
<?php include ‘config.php’;?>
<?php
$query = “SELECT name, subject, address, message FROM [...]