|
May 17
2012
|
PHP Sort FunctionPosted by bohemia in Untagged |
PHP Sort Function
The PHP sort() function is a simple way to sort an array.The sort() function removes old keys and makes new ones. Although the results can be|
May 17
2012
|
PHP Array DiffPosted by bohemia in Untagged |
PHP Array Diff
With the array_diff() function, you can compare 2 arrays and get the difference between the two of them. The code below takes ids from one table and|
Apr 24
2012
|
PHP Double While LoopsPosted by bohemia in Untagged |
PHP Double While Loops
Using while loops, you can extract rows of data for which you and create variables with the results. Afterwards, you can use the variables to sort|
Apr 20
2012
|
Null Column With PHPMYADMINPosted by bohemia in Untagged |
PHPMYADMIN Null Column Default Value
When an entry is added to a database, you could insert 'NULL' by default if wish to do so. One such example could be that you have a|
Apr 20
2012
|
PHP Finding Text in a String With Preg_Match() or strpos()Posted by bohemia in Untagged |
PHP Finding Text in a String
With PHP, you may want to see if text exists in a string. For example, you may have database output from an api and you want to search the|
Apr 20
2012
|
PHP Parse error: syntax error, unexpectedPosted by bohemia in Untagged |
PHP Parse error: syntax error, unexpected '}', expecting ']'
PHP is quite good at helping you fix errors. At times, you may make the od mistake by closing a bracket with a|
Apr 20
2012
|
PHP Parse error: syntax error, unexpected T_STRINGPosted by bohemia in Untagged |
PHP Parse error: syntax error, unexpected T_STRING
PHP programmers will see error codes during development. One such error is 'unexpected T_STRING'. This error usually|
Apr 20
2012
|
Changing CSS With JQuery On ChangePosted by bohemia in Untagged |
Changing CSS With JQuery
JQuery makes it very simple to alter css properties for an element, id, or class. The code below shows how an input value can become orange in|
Apr 16
2012
|
PHP Loops and OptionsPosted by bohemia in Untagged |
PHP Loops and Resources
First of all, not all loops are created equal. When coding in PHP or any other language for that matter, it never hurts to write code that is|
Apr 16
2012
|
Opening HTML Or PHP At Specific SpotPosted by bohemia in Untagged |