This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 10 years ago.
SELECT bahisisim,ID FROM bahis WHERE bahisisim LIKE '%$isim%' and onay!=='0'
this is not working, how can i modify this?
I dont know the use of !== operator in MySQL, try to do this:
SELECT bahisisim,ID FROM bahis WHERE bahisisim LIKE '%$isim%' and onay <> '0'
If you got a error, show to us the error for we find the solution. ;)
there is just an error because of !==, so please change your query to :
SELECT bahisisim,ID FROM bahis WHERE bahisisim LIKE '%$isim%' and onay!='0';
OR
SELECT bahisisim,ID FROM bahis WHERE bahisisim LIKE '%$isim%' and onay <>'0';
for more you can go for http://dev.mysql.com/doc/refman/5.0/en/comparison-operators.html
Related
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 10 years ago.
Is it possible to create a variable in MySql for a LIKE expression?
ex.
SET #test = '%my text to look for%';
SELECT * FROM MYTABLE WHERE MYCOLUMN LIKE #test;
Of course I tried this approach and it did not work.
Sorry for choosing the mysql-connect tag, couldn't really come up with anything else.
EDIT 1
"Did not work" means I don't get results with the variable as without.
Yes, your example should work fine. See my test case below:
SQL Fiddle Example
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 10 years ago.
This looks like a do-while loop with odd syntax.
Can anyone identify a language?
While var1 == var2 do:
thisFunction(parameter)
Looks like bash.
You can check what while loops look like in a bunch of languages at while loop on wikipedia
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 11 years ago.
SHow me where and what to add code for below query
$randitems = $DB->getAll("SELECT * FROM `" . DB_PREFIX . "items` a WHERE `enabled`=1 AND `visible`=1 $filter order by RAND() limit 7");
$smarty->assign("randitems", $randitems);
If you have a date column in your items table, just add AND DATE(date_column) < DATE(NOW()) to your WHERE clause.
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 9 years ago.
Ive got this obviously wrong output when trying such a simple thing as making a link:
http://www.facebook.com/apps/a%E2%80%8Bpplication.php?id=164355773607%E2%80%8B006
Of course the link should be
http://www.facebook.com/apps/application.php?id=164355773607006
and it's also corrrect in the code:
<a class="nobk" href="http://www.facebook.com/apps/application.php?id=164355773607006"><img src="/_/img/facebook.png" alt="Facebook Kool Business" width="50" height="50"/></a>
My page with the bug is koolbusiness.com. Can you tell me what's wrong?
Thank you very much
Omit the spaces in "a pplication.php" and the id value.
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 10 years ago.
I am using
<a href="www.google.com" > test link </a>
I didn't understand why its not working in IE6.
You need to include http://.
test link
You should also explain what exactly you mean by 'not working', but regardless of that, that's the only mistake I see in your link.