Skip to content

Tag: php

Filling boostrap cards with data from a mySQL database

I am trying to fill bootstrap cards with data from a database. I am very close. I have the mainphp file called project.php A file with a function called component to fill them, called component.php. And a connectDB.php file, that connect the DB and extracts the information from a table. I am aware this is alo…

Verify all brackets are properly open/closed

I am trying to write a function that will return true if brackets are closed, for example {[()]} and false if brackets are open, for example ) ( . I have problem with writing logic behind it. I have some idea like modulo, but it won’t work and I dont know what direction to look in. Answer Starting by de…

xdebug installed successfully on linux but not working

I have installed and configured Xdebug on my Linux system, however, I can’t see “Xdebug” in my PHPinfo file despite enabling and when i put the phpinfo source code page in the xdebug wizard , shows me that: Xdebug installed: no Have you any ideas on how to solve this issue? Also, I added the…

PHP Parsing Getting the latest value from a string using a delimiter

I have a question which relates to PHP. Is there any way to just grab the last string using a delimiter? For example, to put you in perspective, I want to grab the lastest content from the / from every string. How could I using PHP cut the whole string and get only the latest value. The output would be

Draw multiple Google pie charts in for loop

Here is what I’m trying to do. I’m trying to place multiple Google Pie Charts, I already put the code in, however, I’m getting the following error message: Uncaught TypeError: Cannot read property ‘arrayToDataTable’ of undefined and I’m getting another error message: Error:…