display data on columns using php

Supposing that you’re building yourself a web directory or a website that is based on multiple category listings you will reach this chapter when you will need to display categories based on more columns and not the usual method which either displays data on a single column (the simple methods) or it does but the … Continue reading

Fatal error: Cannot use string offset as an array in

Fatal error: Cannot use string offset as an array in PHP5 Error message that is caused by attempting to assign a value to an array element of a variable that is declared as a string. Example that generates error: $foo=’bar’; $foo[0]=’bar’; Get error message Fatal error: Cannot use string offset as an array in … … Continue reading