Hi!
Ich möchte eine Suche programmieren, aber egal was ich benutze, es kommt immer ein Fehler.
Versuch 1:
da kommt der Fehler:
Versuch 2:
da kommt der Fehler:
Versuch 3:
da kommt der Fehler:
Brauche bitte dringend hilfe.
MfG
ClaBo3
Ich möchte eine Suche programmieren, aber egal was ich benutze, es kommt immer ein Fehler.
Versuch 1:
Code:
SELECT * FROM `artikel` WHERE `name` SOUNDEX('".$_REQUEST['suche']."')
Code:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /srv/www/htdocs/web6/html/knickrad/suche.php on line 21
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'from `artikel` where `name` SOUNDEX('Test')' at line 1
Code:
SELECT * FROM `artikel` WHERE `name` SOUNDS LIKE '".$_REQUEST['suche']."'
Code:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /srv/www/htdocs/web6/html/knickrad/suche.php on line 21 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'from `artikel` where `name` SOUNDS LIKE 'Test'' at line 1
Code:
SELECT * FROM `artikel` WHERE `name` LIKE '".$_REQUEST['suche']."'
Code:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /srv/www/htdocs/web6/html/knickrad/suche.php on line 21 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'from `artikel` where `name` LIKE 'Test'' at line 1
MfG
ClaBo3

Kommentar