Jump to content

Archived

This topic is now archived and is closed to further replies.

Tisten

WHERE problems

Recommended Posts

$query_getplayer = \"SELECT X, Y, Name, Score, Resources FROM player WHERE Name= ;

 

i tried almost everything

 

what i want is a var $findplayer to be placed there automaticly and the sign before and after don\'t matter.

example : $findplayer = \"Appel\";

 

it has to select everything with \"apple\" in it like

 

jdksfhapplenjfkds

fdappledf

and of course apple

 

how do i do this ????

Share this post


Link to post
Share on other sites

Read more about LIKE in mysql

 

$query_getplayer = "SELECT X, Y, Name, Score, Resources FROM player WHERE Name LIKE \'%apple%\'; 

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.