+ 1

How can I select with variable that I have set in sql php ?

like select * from $tab when name="James " for example

4th Apr 2018, 1:26 AM
arahhal mohammed amine
arahhal mohammed amine - avatar
2 Réponses
+ 2
Its where not when
4th Apr 2018, 9:37 AM
Toni Isotalo
Toni Isotalo - avatar
0
I'd recommend learning PDO: http://wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers You can do what you want to do, with that.
4th Apr 2018, 1:28 AM
Emma