Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
-1 votes
2 answers
180 views

pdo variable is undefined in mysql function

I have an index.php which is like: require_once("../resources/config.php"); require_once(LIBRARY_PATH . "/mysql.php"); ... if(checkIfMailExists($email)) { $error = true; $errormsg = "This e-...
ikebastuz's user avatar
  • 389
-2 votes
1 answer
175 views

PHP profile columns visibility + MySQL

I'm seeking for the best method to implement the column visibility in users profile. Imagine the following scenario: Name : stackoverflow | [checkbox] visible = 1 Address: New York | [...
user3065191's user avatar
4 votes
3 answers
4k views

mysql - How to pass main query value into a join in subquery

I have the following query (well... the part that bugs me of it): SELECT DISTINCT `serv`.`id`, `serv`.`name`, `prj`.`id` AS `idProject`, `prj`.`name` AS `projectName`, `units`.`id` AS `idUnit`, `...
zozo's user avatar
  • 8,514