Skip to content

Tag: php

write in database (php/mySQL)

The problem is very simple (and everything, php and html is on one file(.php)) html part: the result is die(‘formulaire incomplet’);,and nothing is written in the database, i don’t see why. Any clue is welcome! thanks by advance Answer First, use the bound parameters method for all your data…

Script not running and I can’t find out why

I’m new to PHP and HTML, and I’m building a small CMS with those 2 languages. Not sure what I’m missing here, I’m sure it’s beginner level, but for no reason, the script below stopped working, meaning the site won’t load. Here’s the code: The connections.php file is j…

Guzzle query string prameters

I’m having problems writing my request. I need to provide query string parameters to GET method using request(). Since I’m writing tests I can’t edit the method. Right now I have it written like this: Method that gets paginator_data: And thats how query looks if I check the request testing i…

STR_REPLACE to add prefix to mysql query in php

This is my query This is the function to add prefix to tables (This function is taken from MySqliDB class) When I echo rawAddPrefix($q,”demo_”) I get only prefix added to tbl_accounts table only. I need to add prefix to all tables. What’s wrong here ? Answer That function above does only poi…