Here goes a tiny snippet that should get you started by using Oracle as your database instead of the classic MySql RDBMS. <?php // At first, get connected to the instance of your RDBMS $conn = oci_connect("user", "password",...
Debug the Hard Way
posted by xav
Sometimes you just need plain debug on an environment where you do not control the PHP settings. To be able to see what is going wrong in your PHP page just add the following code in the head of your page. <?php error_reporting(E_ALL); ini_set('display_errors',...
Basic PHP/MySQL Snip...
posted by xav
<?php //I connect to what database server $con = mysql_connect("localhost","user","password"); //Am I connected ? if (!$con) { die('Could not connect: ' . mysql_error()); } // I select the database from within the database...
session Variables in...
posted by xav
A PHP session variable is used to store information about, or change settings for a user session. Session variables hold information about one single user, and are available to all pages in one application. PHP Session Variables When you are working with an application, you open it, do some...
Date in PHP
posted by xav
This is as simple as this <?php echo date("d/m/Y"); ?> For the available date formats, please consult the php reference here.


Abduzeedo