Skip to content

Tag: mysql

How i take a value that is like field in my database?

I try to get values that contains words in my sql database. I try with “contains” but I get an error. I work with SQL This is my code: I have this error: UnhandledPromiseRejectionWarning: Error: ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL s…

PDO union select results nothing

I need to select name, surname from users where username = column following inside network_follow table the query: “SELECT * FROM network_follow WHERE following = :f UNION SELECT name, surname FROM …