Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> co znaczy ten error w zapytaniu do mysql
spandor
post
Post #1





Grupa: Zarejestrowani
Postów: 99
Pomógł: 0
Dołączył: 2.03.2004

Ostrzeżenie: (0%)
-----


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 ':/mysql/data/goscie' at line 1.

apache 2, php 4.3.4 mysql 1.4
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
spandor
post
Post #2





Grupa: Zarejestrowani
Postów: 99
Pomógł: 0
Dołączył: 2.03.2004

Ostrzeżenie: (0%)
-----


[php:1:0cc1e40707]<?php
<?

$link=mysql_connect('localhost','root','');
if ($link)
{
mysql_select_db('log'.$link);
print ("polaczenie ok<br>");
$result = mysql_query ("SELECT * FROM G:/mysql/data/goscie", $link);
if ($result)
print "<br> wysalno do bazy zapytanie";
else
print '<br>wystapil blad przy wyslylaniu zapytania'.mysql_error();


mysql_close ($link);
}
else

print ('Wystapil blad');

?>
?>[/php:1:0cc1e40707]
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 6.10.2025 - 20:51