Author |
Topic |
leracj
Starting Member
13 Posts |
Posted - 2013-06-24 : 02:00:10
|
$s.=" um.meta_value LIKE '$stxt' AND";-works if it is specific$s.=" um.meta_value LIKE '$stxt' AND";(stxt = %% it will display all)but when(stxt=%d%)it won't display any queryplease help |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-06-24 : 02:16:27
|
%d% will only return data with letter d in it. is it what you're after?perhaps what you're looking at is numeric pattern in data in which case it should be (stxt=%[0-9]%)------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |
|
|
bandi
Master Smack Fu Yak Hacker
2242 Posts |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
|
leracj
Starting Member
13 Posts |
Posted - 2013-06-24 : 02:35:10
|
quote: Originally posted by visakh16 %d% will only return data with letter d in it. is it what you're after?perhaps what you're looking at is numeric pattern in data in which case it should be (stxt=%[0-9]%)------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs
im trying to load queries%% result: http://screencast.com/t/toZTEBUE05%t% relult: http://screencast.com/t/7u3wq0zDtHplease help |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-06-24 : 02:36:37
|
quote: Originally posted by leracj
quote: Originally posted by visakh16 %d% will only return data with letter d in it. is it what you're after?perhaps what you're looking at is numeric pattern in data in which case it should be (stxt=%[0-9]%)------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs
im trying to load queries%% result: http://screencast.com/t/toZTEBUE05%t% relult: http://screencast.com/t/7u3wq0zDtHplease help
sorry cant view those links here as they're blocked------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-06-24 : 02:38:07
|
Which field you want to serach it against?------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |
|
|
bandi
Master Smack Fu Yak Hacker
2242 Posts |
|
leracj
Starting Member
13 Posts |
Posted - 2013-06-24 : 03:07:02
|
quote: Originally posted by leracj $s.=" um.meta_value LIKE '$stxt' AND";-works if it is specific$s.=" um.meta_value LIKE '$stxt' AND";(stxt = %% it will display all)but when(stxt=%d%)it won't display any queryplease help
i just answered my post again(stxt=%%d%%) - works fine... please help |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-06-24 : 03:51:05
|
quote: Originally posted by leracj
quote: Originally posted by leracj $s.=" um.meta_value LIKE '$stxt' AND";-works if it is specific$s.=" um.meta_value LIKE '$stxt' AND";(stxt = %% it will display all)but when(stxt=%d%)it won't display any queryplease help
i just answered my post again(stxt=%%d%%) - works fine... please help
Glad that you got it sortedThanks for sharing the final solution------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |
|
|
|