Skip to content

Several group totals of an array

I want to display an array (which is already has been sorted) and want to show all rows of the array including some group totals (in this case the totals of one order and the totals per month. Here is …

PHP mysqli_query() expects parameter 1 to be mysqli, null given in

I have 2 classes, controller and connector. They are used by delete.php. I got error saying Does anyone know here did I make mistake? For me it looks like the link to the connection is badly passed to the controller class somewhere. Or the return doesnt work as I wanted. It all did work before I had to make i…

PHP – format html b tags into header tags

I want to format multiple paragraphs to a better html structure There is a database with a column called bodytext $bodytext = $row[“bodytext”]; If i echo this you get multiple paragraphs This is one paragraph: — START paragraph 1 — END paragraph 1 The final result for one example paragraph: — STAR…