Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] [MySQL] Brak wyswietlania newsow
Kentaro
post
Post #1





Grupa: Zarejestrowani
Postów: 16
Pomógł: 0
Dołączył: 21.10.2011

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


Witam
Jest to moj pierwszy post, wiec przepraszam jesli wpisalem zle tytul tematu i slabo opisalem problem.
Praktycznie na php sie nie znam, moze tam jakies minimum z minimum ale dostalem pewien cms od znajomego i praktycznie wszystko dziala oprocz newsow.
Link do strony: http://cmstest666.ugu.pl/index.php

http://cmstest666.ugu.pl/pliki/news.txt
http://cmstest666.ugu.pl/pliki/dev.txt

  1. 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 'limit WHERE co='news'' at line 1
  2. Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /virtual/c/m/cmstest666.ugu.pl/enigme/class/dev.php on line 8
  3.  
  4. Warning: Division by zero in /virtual/c/m/cmstest666.ugu.pl/enigme/class/news.php on line 11
  5. 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 'OFFSET 0' at line 1
  6. Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /virtual/c/m/cmstest666.ugu.pl/enigme/class/news.php on line 20


Czy ktos moglby mi naprawic te newsy zeby dzialaly, niestety ja tego nie ogarniam.
Jesli komus jest potrzebny jakis kod z pliku napiszcie jakie to tu umieszcze.
Bardzo bym prosil o pomoc w razwiazaniu tego problemu
Dziekuje

Ten post edytował Kentaro 21.10.2011, 11:02:15
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Kentaro
post
Post #2





Grupa: Zarejestrowani
Postów: 16
Pomógł: 0
Dołączył: 21.10.2011

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


http://cmstest666.ugu.pl/pliki/news.txt
http://cmstest666.ugu.pl/pliki/dev.txt
linki do tego pliku news.php i dev.php
tabelka w bazie wyglada tak

  1. CREATE TABLE `news` (
  2. `id` int(20) NOT NULL auto_increment,
  3. `act` int(2) NOT NULL default '0',
  4. `tytul` varchar(64) NOT NULL default '',
  5. `tresc` text NOT NULL,
  6. `dtresc` text NOT NULL,
  7. `autor` int(20) NOT NULL default '0',
  8. `data` int(35) NOT NULL default '0',
  9. PRIMARY KEY (`id`)
  10. );


Pomogl by ktos z naprawieniem tych newsow ? ktore pliki jeszcze mam ewentualnie podac?
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: 5.10.2025 - 13:21