Skip to content

How to get data after @ in SQL

I have a table in the database that looks like this id email 1 user@domain.com 2 user@domain2.com 3 user@domain3.com I have a form that looks like this In the backend I’m trying to match the input email domain with the ones in the database, after “@”. What I’ve tried (if user enters: t…

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…