S
S
serafino-family2018-06-07 15:10:55
PHP
serafino-family, 2018-06-07 15:10:55

Where is the error in Red Bean PHP?

What is wrong here?
R::exec( " DELETE FROM user WHERE id = '$data['idp']' " );
Here is what it says in the error5b192172ef200273749778.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
NiaR, 2018-06-07
@serafino-family

Quotes
R::exec( " DELETE FROM user WHERE id = '".$data['idp']."' " );

T
Toopie, 2018-06-09
@Toopie

1) The error was not in RB, but in the PHP syntax
2) In general, there are beans in Red Bean ..

R::exec('DELETE FROM `user` WHERE `id`=?', $data['idp']);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question