Questions tagged as 'mysql'

1
answer

Error: Undefined variable 'x' in 'local' [closed]

I'm learning PHP , on the page this appears:    "Notice: Undefined variable: Tasks in C: \ xampp \ htdocs \ index.php on line 42." Código PHP: <?php $bdServidor = '127.0.0.1'; $bdUsuario = 'felipe'; $bdSenha = 'testeteste123' ; $bdban...
asked by 02.07.2018 / 23:55
2
answers

Where is the error? [closed]

while($row = mysql_fetch_assoc($result)) { if($row['level'] = '0') { echo("Fundador '); //pode fazer tudo } if($row['level'] = '1') { echo('Admin'); // nao pode adicionar nem remover e/ou edit users } if($row['level'] = '2'...
asked by 13.01.2015 / 19:35
1
answer

Laravel 5 - How to use primary key in pivot table?

I have a question that has arisen now. You searched the forums, and I did not find anything like it. I have this schematic in my DB: users: id name ... products: id name ... product_user: id product_id user_id ... In my User.php, I h...
asked by 15.03.2015 / 01:08
0
answers

Problem creating foreign key in mysql

Well I have to relate 3 tables and I am trying to create the foreign key I can only create that in php I have a INSERT for one of the tables that does not insert and accuse the following what I am doing wrong in Foreign key...
asked by 15.03.2015 / 02:01