Arrays in PHP

On June 20, 2008, in PHP, by Rob

Some day I'll get around do writing some stuff on arrays in PHP.  In the meantime, here are some links to another site with some outdated but still quite useful information on arrays in PHP.

 

Sometimes you just want to pull a single value from the database without a whole lot of work.  Here's how to do it in a single line;

// mysql_result() function is used to pull a single value from the database
$value = mysql_result(mysql_query("SELECT value FROM table WHERE condition = 'met'"), 0);
 

To tell when the operating was installed on your Windows XP/2003 system, go to a command prompt (Start – Run – "cmd" – OK), then enter the following command;


systeminfo | find /i "install date"