This will fix it
$where .="name LIKE '%$keyword%'OR username LIKE '%$keyword%'";
and
$results = "SELECT * FROM users WHERE $where" ;
virgiltu 4 months ago
Dont forget the } under the echo $where; like i did.
UngawaMagic 4 months ago
Thank alot phpacademy. Just one word to say that is all of your tutorial is "AWESOME"
caophuongduy11 8 months ago
Ok? Remix... Very good tutorial videos. All the way!
ForfrontTechnology 8 months ago
Hum... I get $results_num = 0 when i echo $results_num. :S
Misklahr 8 months ago
@Misklahr did you find a way to solve the issue? i'm facing it too, i'm quite sure it has something to do with the sintaxis in $where.="`keywords` LIKE '%".$keyword."%'"; but i can't figure it out
pukirocks 7 months ago
@pukirocks I removed the single quotation marks around the table and column names and it worked for me.
CanCan2623 6 months ago
Comment removed
I chexk everything and I did everything, i still get no result, the code works but it doesn't call anything. :(
vallonierproduction 8 months ago
Your vids are just great . Help me alot
WebTutsHD 9 months ago
You can do a tutorial, if you stay online when you get a number of points? And the points are gathered to "buy" various items
Malasuerte94 9 months ago
This will fix it
$where .="name LIKE '%$keyword%'OR username LIKE '%$keyword%'";
and
$results = "SELECT * FROM users WHERE $where" ;
virgiltu 4 months ago
Dont forget the } under the echo $where; like i did.
UngawaMagic 4 months ago
Thank alot phpacademy. Just one word to say that is all of your tutorial is "AWESOME"
caophuongduy11 8 months ago
Ok? Remix... Very good tutorial videos. All the way!
ForfrontTechnology 8 months ago
Hum... I get $results_num = 0 when i echo $results_num. :S
Misklahr 8 months ago
@Misklahr did you find a way to solve the issue? i'm facing it too, i'm quite sure it has something to do with the sintaxis in $where.="`keywords` LIKE '%".$keyword."%'"; but i can't figure it out
pukirocks 7 months ago
@pukirocks I removed the single quotation marks around the table and column names and it worked for me.
CanCan2623 6 months ago
Comment removed
Misklahr 8 months ago
I chexk everything and I did everything, i still get no result, the code works but it doesn't call anything. :(
vallonierproduction 8 months ago
Your vids are just great . Help me alot
WebTutsHD 9 months ago
You can do a tutorial, if you stay online when you get a number of points? And the points are gathered to "buy" various items
Malasuerte94 9 months ago