|
-
May 9th, 2002, 12:57 PM
#1
Thread Starter
Hyperactive Member
search in part of record
In thsi code:
$Sql = "select * from $TableName where MEMBER='*word*'";
$Result = mysql_query($Sql);
while ($Row = mysql_fetch_array($Result))
{
I want to search for word but in any part of record so I use (*) to mean any letters before or after word but it does not work .
How can I serach for ward in any part of record ???
Thanks.......
Last edited by prokhaled; May 9th, 2002 at 01:02 PM.
-
May 9th, 2002, 01:04 PM
#2
don't use * but use %
$Sql = "select * from $TableName where MEMBER='%word%'";
$Result = mysql_query($Sql);
while ($Row = mysql_fetch_array($Result))
{
-
May 9th, 2002, 01:38 PM
#3
Thread Starter
Hyperactive Member
OK
Thank you toooooooooooooooooooooooooooooo much
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|