New Hosting

ads auto

Sunday, June 20, 2010

Limitation of header clause in PHP

Example:
...
if(a=b)
{
...
}
else
{
...
header("Location: admin_home.php");
}
?>

header need located at last clause of php code:
must not have space and other command

Saturday, June 19, 2010

php where Clause

Pattern:
SELECT column_name(s)
FROM table_name
WHERE column_name operator value

PHP code Example:
$myquery= mysql_query("SELECT * FROM Persons
WHERE FirstName='John' ");

$result=mysql_query($myquery);
if(!$result)
{
$error = "Query fail!";
return($error);
}

Where Clause with variable
$myquery ="select * from userdb where user = '".$myuser."' and usepw= '".$mepw."' ";

this clause specific 2 variables those are:

$myuser => ' " .$myuser. " '

$mepw => ' " .$mepw. " '

Please Note: ' " .$myuser. " ' => must no space => should be '".$myuser."'

PHP Correct Web Date time

PHP code fix problem regarding time not correct
$metime = date("Y-m-d H:i:s", strtotime("+5 hours"));

PHP Check Server Time Zone
echo date_default_timezone_get();;

Wednesday, January 2, 2008

Cheap Web Host

Almost cheap host would provide us for Linux server, which those web host would give user free service for PHP and MySQL database.
Mention to those solution would give user got cheapest web hosting, so we need to learn more regarding PHP programing , MySQL scrip.
PHP is free scrip, which we able to build by editor program instance to Edit plus or Notepad.
Also for visual PHP programing instance Delphi PHP or Dreamweaver.
Delphi PHP most flexible for PHP coding.
Mention to Delphi PHP programing tip please follow link at right side.

Friday, December 28, 2007

International Spped test

I have found good international speed test http://www.speedtest.net/

Sunday, September 23, 2007

First Time test Delphi php

I have downloaded Delphiphp, which able to explain in 2 parts
1. Easy for php web create and send value between control or component
2. But not work for web, which create for use communicate with mysql error show not found testmysql.php (name of php project, I have created)

Saturday, September 22, 2007

International Internet Speed Test for your host

I found very good international Internet Speed Test Web picture show as below

Domain