Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 10:13

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



MySQL Query liefert fehlerhafte ergebnisse

Discussion on MySQL Query liefert fehlerhafte ergebnisse within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
.Acu³'s Avatar
 
elite*gold: 166
Join Date: Mar 2011
Posts: 207
Received Thanks: 25
MySQL Query liefert fehlerhafte ergebnisse

Hey epvp,

habe ein Problem mit diesem query:
PHP Code:
SELECT IDheimgasttimestamp FROM spiele WHERE heim||gast LIKE ('%fc%'ORDER by timestamp DESC LIMIT 0 
es gibt zwei einträge die dazu passen. der eine hat im feld "heim" etwas mit "fc" stehen, der andere im feld "gast".
mit dem query wird nur der eintrag bei "heim" ausgeben.

ich versteh nicht warum.. das ||gast wird vollkommen ignoriert..

Danke schonmal !
.Acu³ is offline  
Old 12/21/2012, 12:06   #2
 
Mikesch01's Avatar
 
elite*gold: 203
Join Date: Sep 2007
Posts: 732
Received Thanks: 190
PHP Code:
SELECT IDheimgasttimestamp FROM spiele WHERE heim LIKE ('%fc%') OR gast LIKE ('%fc%'ORDER by timestamp DESC LIMIT 0 
Du musst die OR (||) -Anweisung trennen.
Mikesch01 is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Mysql Query.
10/20/2012 - Metin2 Private Server - 0 Replies
Hey Com. Ich suche eine Mysql Query die bestimmte Eiinträge aus der quest.sql löscht. MfG
Mysql Query.
10/12/2012 - Metin2 Private Server - 7 Replies
Hey Com. Ich suche eine query die alle Einträge: costume_system sucht und löscht aus meiner quest.sql
Mysql Query ...
07/25/2012 - Metin2 Private Server - 1 Replies
Aböönd miteinander, ja, ich hab da ne Frage zur folgender Syserr Meldung .. DirectQuery: AsyncSQL::DirectQuery : mysql_query error: Column 'name' in field list is ambiguous query: SELECT empire, pid, name, money, windate FROM monarch a, player b where a.pid=b.id Die meldung hat irgendwas mit der DB (mysql) zu tun, dass ist mir klar, jedoch weiß ich nicht genau was dort beschrieben wird :s
PHP-Mysql _ query
06/08/2012 - Web Development - 0 Replies
Hallo meine frage/problem wie kriege ich es hin das diese anfragen mit einem query abgesendet werden? $eintrag = "INSERT INTO lions_aateilnahme (Event,Freund,Personen,EssenFleisch, EssenFisch,EssenVeg,Kommen,Bemerkung) VALUES ('$id','$name', '$teilnehmer','$norm', '$fisch','$veg','$kommen','$bemerkung')"; $eintragen = mysql_query($eintrag); if(!empty($int)){ $intt= "INSERT INTO lions_aateilnahme (IntAntwort1) VALUES('$int')"; $eintragen = mysql_query($intt);
PHP/MySQL Help - Is this MySQL Query correct?
09/23/2011 - CO2 Programming - 1 Replies
$rank = mysql_query("SELECT Name,Level,Class,Online FROM entities ORDER BY Level DESC LIMIT $limit"); I'm pretty sure that is right... whenever I do while ($row = mysql_fetch_array($rank)) { ... } It always gives me a mysql_fetch_array error. I've checked and the database is populated, the columns exist, so what could be the issue?



All times are GMT +1. The time now is 10:13.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.