Bennovations Knowledgebase
Search:     Advanced search
Browse by category:
Contact Us

Showing: 1-9 of 9  
Articles
 
document Assigning a variable to a variable within a loop using PHP
If you have an occasion where you need to assign variables where the full variable is the same except for (as with this case) only part of the...
28 Jan, 2009
document Nested Variable assignments within PHP - Calling a variable with a variable inside a FOR loop
Say in the following example you wish to echo all of the following columns without listing them individually. (i.e. "echo $COLUMN1, $COLUMN2...
02 Mar, 2009
document View Day of the week based on date
To display the day of the week based on a date. $date = '2009/01/26'; $weekday = date('l', strtotime($date)); // note: first arg to date() is...
28 Jan, 2009
document Multi-dimensional PHP Arrays
Two-dimensional Arrays Imagine that you are an owner of a flower shop. One-dimensional array is enough to keep titles and prices. But if you need...
02 Mar, 2009
document How to Return more than one value from a PHP array
Easy Example how to return more than one value from a PHP array without using a  loop to extract the...
09 Apr, 2009
document Populating an array inside of a for loop using PHP
Populating an array from inside a loop is very easy: file:...
03 Jun, 2009
document Function to make all http prefixed URLs in text output hyperlinks
EXAMPLE: ===================================================== $NOTES="this is at test to make http://bennovations.com" a...
09 Apr, 2009
document Select MAX Value from MySQL Database using PHP
$query="SELECT MAX(torder+0) as maxnum FROM triage_order  ;"; $result = mysql_query($query) or die ("couldn't execute query...
12 Aug, 2009
document PHP Function to display the current day and date based on timezone
SAMPLE PHP Function to display the current full alphanumeric day, and the date based on 3 timezones (AMER/APAC/EMEA) Where: AMER=US Time EMEA =...
25 Aug, 2009



RSS