Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

2 Stron V   1 2 >  
Reply to this topicStart new topic
> System newsow -problem, mam problem z systemem newsow prosze o pomoc
Raffal
post 19.06.2006, 16:49:23
Post #1





Grupa: Zarejestrowani
Postów: 111
Pomógł: 0
Dołączył: 19.06.2006

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


Jest to system newow z komentarzamii jednak nie dziala mam prosbe moglibyscie mi poprawic ten kod questionmark.gif smile.gif
Od razu mowie ze jestem dosyc poczatkujacym uzytkownikiem wiec prosilbym o cierpliwosc dry.gif
  1. <?php
  2. //150
  3. mysql_connect('localhost','raffal','');
  4. mysql_select_db('raffal');
  5. $id=mysql_query('select * from news order by data desc') or die (mysql_error);
  6. while ($w=mysql_fetch_row($id)){
  7. echo ("<P class=TRESCNAGLOWEK>");
  8. echo $w[1];
  9. echo ("</P>");
  10. echo ("<P class=TRESC>");
  11. echo ("<img src=");
  12. echo $w[3];
  13. echo (">");
  14. echo $w[2];
  15. echo ("<br>");
  16. echo("<font size=1 color=gray>");
  17. echo $w[0];
  18. echo (" ");
  19. echo $w[5];
  20. echo (" ");
  21. echo $w[4];
  22. echo ("</font>");
  23. if($_POST['komentarz']<>$w[0]){
  24. echo "<form method='post'><input type='hidden' name='komentarz' value='".$w[0]."'>";
  25. echo "<input type='submit' name='kom' value='Dodaj komentarz'></form>";
  26. } else {
  27. echo "<br><form method='post'><input type="text" name="autor2">";
  28. echo "<br><textarea>komentarzyk</textarea>";
  29. echo "<input type='submit' name='dodaj' value='Dodaj'></form>";
  30. }
  31. if(isset($_POST['dodaj'])){
  32. $k=$_POST['komentarz'];
  33. $l=$_POST['autor2'];
  34. $m=date("Y-m-d H:i");
  35. $pytanie2="INSERT into komentarze values("","$w[0]","$k","$l","$m")";
  36. mysql_query($pytanie2) or die (mysql_error);
  37.  
  38.  
  39.  
  40. }
  41. $id2=mysql_query('select * from komentarze where id=$id') or die (mysql_error);
  42. while ($v=mysql_fetch_row($id2)){
  43. echo "<table border=1><tr><td>";
  44. echo $v[2];
  45. echo "</td></tr>";
  46. echo "<tr><td>";
  47. echo $v[3];
  48. echo "</td></tr><tr><td>";
  49. echo $v[4];
  50. echo $v[5];
  51. echo "</td></tr></table>";
  52.  
  53. }
  54. ?>


Ten post edytował Raffal 19.06.2006, 18:07:47
Go to the top of the page
+Quote Post
mike
post 19.06.2006, 16:54:02
Post #2





Grupa: Przyjaciele php.pl
Postów: 7 494
Pomógł: 302
Dołączył: 31.03.2004

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


1. Jak mądrze zadawać pytania - polecam, widać że Ci sie przyda. Co wg. Ciebie znaczy "nie działa"? Może opisz to niedziałanie. Wywala błądy? Jesli tak to jakie? Jeśli nie, to napisz że nie. Działa źle? Jak działa a jak miało działać?
2. Nadużywasz echo. Po co aż tyle? Poczytaj o konkatenacji.
Go to the top of the page
+Quote Post
Raffal
post 19.06.2006, 17:07:03
Post #3





Grupa: Zarejestrowani
Postów: 111
Pomógł: 0
Dołączył: 19.06.2006

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


tzn
pobieranie newsow dziala<br>
wyswietla mi submit z id i nawet po nacisnieciu go wyswitlał mi prubne echo jednak gdy dodalem do tego pobieranie z bazy komentarzy i dodawanie nowych komentarzy cos sie zepsuło sadsmiley02.gif
nie moge uruchomic systemu komentarzy.....
bład wyswietla mi taki
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/accounts_r/raffal/public_html/index.php on line 179
Go to the top of the page
+Quote Post
mike
post 19.06.2006, 17:11:54
Post #4





Grupa: Przyjaciele php.pl
Postów: 7 494
Pomógł: 302
Dołączył: 31.03.2004

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


Zamień:
  1. <?php
  2.  
  3. echo "<br><form method='post'><input type="text" name="autor2">";
  4.  
  5. ?>

Na:
  1. <?php
  2.  
  3. echo '<br><form method="post"><input type="text" name="autor2">';
  4.  
  5. ?>


P.S.
Podawaj, która lnia na listingu odpowiada tej z komunikatu o błędzie.
Go to the top of the page
+Quote Post
Raffal
post 19.06.2006, 17:19:16
Post #5





Grupa: Zarejestrowani
Postów: 111
Pomógł: 0
Dołączył: 19.06.2006

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


gdzies w tym fragmencie ;] ciezko sie doliczyc
  1. <?php
  2. f(isset($_POST['dodaj'])){
  3. $k=$_POST['komentarz'];
  4. $l=$_POST['autor2'];
  5. $m=date("Y-m-d H:i");
  6. //$pytanie2="INSERT into komentarze values("","$w[0]","$k","$l","$m")";
  7. mysql_query($pytanie2) or die (mysql_error);
  8. $id2=mysql_query('select * from komentarze where id=$id') or die (mysql_error);
  9. while ($v=mysql_fetch_row($id2)){
  10. ?>
dry.gif
juz wiem o co chodzi z naduzywaniem echo ale tam łatwiej mi bylo ze wzgledu na uzycie tez styli i polaczenie tych echo mogob by mi utrudnic pozniejsze zmiany;) a tak mam ładnie i przejrzyscie


sorki za nie storsowanie nacznikow php juz wiem jak

Ten post edytował Raffal 19.06.2006, 17:23:58
Go to the top of the page
+Quote Post
mike
post 19.06.2006, 17:22:53
Post #6





Grupa: Przyjaciele php.pl
Postów: 7 494
Pomógł: 302
Dołączył: 31.03.2004

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


Zamień:
  1. <?php
  2.  
  3. $id2=mysql_query('select * from komentarze where id=$id') or die (mysql_error);
  4.  
  5. ?>

na:
  1. <?php
  2.  
  3. $id2=mysql_query( 'select * from komentarze where id=' . $id ) or die (mysql_error);
  4.  
  5. ?>


I jak po tych dwóch zmianach?
Go to the top of the page
+Quote Post
Raffal
post 19.06.2006, 18:03:18
Post #7





Grupa: Zarejestrowani
Postów: 111
Pomógł: 0
Dołączył: 19.06.2006

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


Parse error: syntax error, unexpected $end in /home/accounts_r/raffal/public_html/index.php on line 289
teraz taki mi blad wyskoczyl ale ta linijak to nie jest kod php ani nawet w poblizu go nie ma

Juz naprawde nie wiem co moze byc zle
zamieszczam wszystkie skrypty w php nie denerwujcie sie ale 2 dni szukalem tego bledu i juz nie mam pojecia:(
sad.gif(
  1. <?php
  2. include("sonda/sonda.php");
  3. ?>
  4.  
  5. <?php
  6. //150
  7. mysql_connect('localhost','raffal','');
  8. mysql_select_db('raffal');
  9. $id=mysql_query('select * from news order by data desc') or die (mysql_error);
  10. while ($w=mysql_fetch_row($id)){
  11. echo ("<P class=TRESCNAGLOWEK>");
  12. echo $w[1];
  13. echo ("</P>");
  14. echo ("<P class=TRESC>");
  15. echo ("<img src=");
  16. echo $w[3];
  17. echo (">");
  18. echo $w[2];
  19. echo ("<br>");
  20. echo("<font size=1 color=gray>");
  21. echo $w[0];
  22. echo ("&nbsp");
  23. echo $w[5];
  24. echo ("&nbsp");
  25. echo $w[4];
  26. echo ("</font>");
  27. if($_POST['komentarz']<>$w[0]){
  28. echo "<form method='post'><input type='hidden' name='komentarz' value='".$w[0]."'>";
  29. echo "<input type='submit' name='kom' value='Dodaj komentarz'></form>";
  30. } else {
  31. echo '<br><form method="post"><input type="text" name="autor2">';
  32. echo "<br><textarea>komentarzyk</textarea>";
  33. echo "<input type='submit' name='dodaj' value='Dodaj'></form>";
  34. }
  35. if(isset($_POST['dodaj'])){
  36. $k=$_POST['komentarz'];
  37. $l=$_POST['autor2'];
  38. $m=date("Y-m-d H:i");
  39. //$pytanie2="INSERT into komentarze values("","$w[0]","$k","$l","$m")";
  40. mysql_query($pytanie2) or die (mysql_error);
  41.  
  42. //.....nelson.fm@interia.pl.............
  43.  
  44. }
  45. $id2=mysql_query( 'select * from komentarze where id=' . $id ) or die (mysql_error);
  46. while ($v=mysql_fetch_row($id2)){
  47. echo "<table border=1><tr><td>";
  48. echo $v[2];
  49. echo "</td></tr>";
  50. echo "<tr><td>";
  51. echo $v[3];
  52. echo "</td></tr><tr><td>";
  53. echo $v[4];
  54. echo $v[5];
  55. echo "</td></tr></table>";
  56.  
  57. }
  58. ?>
  59. <?php
  60. include("baner.php");  
  61. ?>


Ten post edytował Raffal 19.06.2006, 17:39:24
Go to the top of the page
+Quote Post
mike
post 19.06.2006, 18:19:14
Post #8





Grupa: Przyjaciele php.pl
Postów: 7 494
Pomógł: 302
Dołączył: 31.03.2004

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


Stosuj wcięcia. Będziesz widział takie błądy.
  1. <?php
  2. include("sonda/sonda.php");
  3.  
  4. //150
  5. mysql_connect('localhost','raffal','');
  6. mysql_select_db('raffal');
  7.  
  8. $id=mysql_query('select * from news order by data desc') or die (mysql_error);
  9.  
  10. while ($w=mysql_fetch_row($id))
  11. {
  12. echo ("<P class=TRESCNAGLOWEK>");
  13. echo $w[1];
  14. echo ("</P>");
  15. echo ("<P class=TRESC>");
  16. echo ("<img src=");
  17. echo $w[3];
  18. echo (">");
  19. echo $w[2];
  20. echo ("<br>");
  21. echo("<font size=1 color=gray>");
  22. echo $w[0];
  23. echo (" ");
  24. echo $w[5];
  25. echo (" ");
  26. echo $w[4];
  27. echo ("</font>");
  28.  
  29. if($_POST['komentarz']<>$w[0])
  30. {
  31. echo "<form method='post'><input type='hidden' name='komentarz' value='".$w[0]."'>";
  32. echo "<input type='submit' name='kom' value='Dodaj komentarz'></form>";
  33. }
  34. else
  35. {
  36. echo '<br><form method="post"><input type="text" name="autor2">';
  37. echo "<br><textarea>komentarzyk</textarea>";
  38. echo "<input type='submit' name='dodaj' value='Dodaj'></form>";
  39. }
  40.  
  41. if(isset($_POST['dodaj']))
  42. {
  43. $k=$_POST['komentarz'];
  44. $l=$_POST['autor2'];
  45. $m=date("Y-m-d H:i");
  46. //$pytanie2="INSERT into komentarze values("","$w[0]","$k","$l","$m")";
  47. mysql_query($pytanie2) or die (mysql_error);
  48.  
  49. //.....nelson.fm@interia.pl.............
  50.  
  51. }
  52.  
  53. $id2=mysql_query( 'select * from komentarze where id=' . $id ) or die (mysql_error);
  54. while ($v=mysql_fetch_row($id2))
  55. {
  56. echo "<table border=1><tr><td>";
  57. echo $v[2];
  58. echo "</td></tr>";
  59. echo "<tr><td>";
  60. echo $v[3];
  61. echo "</td></tr><tr><td>";
  62. echo $v[4];
  63. echo $v[5];
  64. echo "</td></tr></table>";
  65.  
  66. }
  67.  
  68.  
  69. include("baner.php");
  70. ?>

Brakuje zamknięcia jednaj klamry. Której? Z wcięciami doskonale widać.
Go to the top of the page
+Quote Post
Raffal
post 19.06.2006, 18:34:51
Post #9





Grupa: Zarejestrowani
Postów: 111
Pomógł: 0
Dołączył: 19.06.2006

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


w ktorym wierszu brakowalo mi klamry?? bo nie moge zajarzyc;)
mam wstawic jeszcze jedna w lini 66??

Ten post edytował Raffal 19.06.2006, 18:42:47
Go to the top of the page
+Quote Post
mike
post 19.06.2006, 18:53:32
Post #10





Grupa: Przyjaciele php.pl
Postów: 7 494
Pomógł: 302
Dołączył: 31.03.2004

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


Cytat(Raffal @ 19.06.2006, 19:34 ) *
w ktorym wierszu brakowalo mi klamry?? bo nie moge zajarzyc;)
mam wstawic jeszcze jedna w lini 66??

Dokładnie tak. Nie miałeś zamkniętej pierwsze pętli while ($w=mysql_fetch_row($id))
Musisz zamnkąć ją.
Go to the top of the page
+Quote Post
Raffal
post 20.06.2006, 14:53:31
Post #11





Grupa: Zarejestrowani
Postów: 111
Pomógł: 0
Dołączył: 19.06.2006

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


no doszedlem do takiego momentu ze bledy nie wyskakuje ale petla while(pierwsza) ktora ma pobierac newsy z bazy nie dziala oraz pobieranie komentarzy po nacisnieciu buttona tez nie dziala:(
http://raffal.boo.pl
  1. <?php
  2. mysql_connect('localhost','raffal','');
  3. mysql_select_db('raffal');
  4. $id=mysql_query('select * from news order by data desc') or die (mysql_error);
  5. while ($w=mysql_fetch_row($id)){
  6. echo ("<P class=TRESCNAGLOWEK>");
  7. echo $w[1];
  8. echo ("</P>");
  9. echo ("<P class=TRESC>");
  10. echo ("<img src=");
  11. echo $w[3];
  12. echo (">");
  13. echo $w[2];
  14. echo ("<br>");
  15. echo("<font size=1 color=gray>");
  16. echo $w[0];
  17. echo (" ");
  18. echo $w[5];
  19. echo (" ");
  20. echo $w[4];
  21. echo ("</font>");
  22.  
  23.  if($_POST['komentarz']<>$w[0])
  24. {
  25. echo "<form method='post'><input type='hidden' name='komentarz' value='".$w[0]."'>";
  26. echo "<input type='submit' name='kom' value='Dodaj komentarz'></form>";
  27. }
  28. else
  29. {  
  30.  echo '<br><form method="post"><input type="text" name="autor2">';
  31. echo "<br><textarea name='komentarzyk'></textarea>";
  32. echo "<input type='submit' name='dodaj' value='Dodaj'></form>";
  33. }
  34.  
  35. if(isset($_POST['dodaj']))
  36. {
  37. $k=$_POST['komentarzyk'];
  38. $l=$_POST['autor2'];
  39. $m=date("Y-m-d H:i");
  40. $pytanie2="INSERT into komentarze values('','".$w[0]."','".$k."','".$l."','".$m."')";
  41. mysql_query($pytanie2) or die (mysql_error);
  42. }
  43. $id2=mysql_query('select * from komentarze where id=' . $id ) or die (mysql_error);
  44. while ($v=mysql_fetch_row($id2))
  45. {
  46. echo "<table border=1><tr><td>";
  47. echo $v[2];
  48. echo "</td></tr>";
  49. echo "<tr><td>";
  50. echo $v[3]; 
  51. echo "</td></tr><tr><td>";
  52. echo $v[4];
  53. echo $v[5];
  54.  
  55. echo "</td></tr></table>";
  56. }
  57. }
  58.  
  59. ?>


pomozcie prosze

Ten post edytował Raffal 20.06.2006, 14:51:49
Go to the top of the page
+Quote Post
Cysiaczek
post 20.06.2006, 15:02:45
Post #12





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




Jaki błąd wyskakuje? Jeśli żadne, to edytuj plik php.ini i poszukaj mniej więcej czegoś takiego

E_ALL

przeczytaj, co jest napisane w okolicach tego i odkomentuj jedną z obsług błędów - najlepiej E_ALL

Potem zobacz, czy wywala błąd - jak tak, to spróbuj go rozwiązać a jak nie będziesz mógł, to dopiero napisz na forum.


--------------------
To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness;
chaotic, confused, vulnerability, to inform yourself.
Think for yourself. Question authority.
Go to the top of the page
+Quote Post
Raffal
post 20.06.2006, 16:59:33
Post #13





Grupa: Zarejestrowani
Postów: 111
Pomógł: 0
Dołączył: 19.06.2006

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


Ja juz prubowalem na 1000 sposobow
błedu nie ma zadnego wysskakuje cos takiego
http://raffal.boo.pl
nie posiadam pliku php.ini
mam szykly plik php ktory includuje w innym plik php
Go to the top of the page
+Quote Post
bim2
post 20.06.2006, 18:57:32
Post #14





Grupa: Zarejestrowani
Postów: 1 873
Pomógł: 152
Dołączył: 9.04.2006
Skąd: Berlin

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


Po pierwsze daj:
$id2=mysql_query('select * from komentarze where id=\'' . $id .'\'') or die (mysql_error);
zamiast
$id2=mysql_query('select * from komentarze where id=' . $id ) or die (mysql_error);
I pokaż mi struktóre bazy winksmiley.jpg a zwłaszcza komentarze


--------------------
Go to the top of the page
+Quote Post
mike
post 20.06.2006, 19:02:42
Post #15





Grupa: Przyjaciele php.pl
Postów: 7 494
Pomógł: 302
Dołączył: 31.03.2004

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


Cytat(bim2 @ 20.06.2006, 19:57 ) *
Po pierwsze daj:
$id2=mysql_query('select * from komentarze where id=\'' . $id .'\'') or die (mysql_error);
zamiast
$id2=mysql_query('select * from komentarze where id=' . $id ) or die (mysql_error);
I pokaż mi struktóre bazy winksmiley.jpg a zwłaszcza komentarze

Co za głupoty wygadujesz?
Przecież jest dobrze a każesz "poprawić" na źle.
~Raffal nie poprawiej tego fragmentu, jest OK. No chyba że w bazie w polu id trzymasz stringi.
Go to the top of the page
+Quote Post
bim2
post 20.06.2006, 19:05:04
Post #16





Grupa: Zarejestrowani
Postów: 1 873
Pomógł: 152
Dołączył: 9.04.2006
Skąd: Berlin

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


Mhh, dlatego poprosiłem o struktóre bazy winksmiley.jpg. Mój kumepl pod id trzymała jeden dwa trzy itp. winksmiley.jpg Nie wiadomo co se człowiek wymyśli tongue.gif. Narazie możesz nie poprawiac biggrin.gif Ale podaj struktóre


--------------------
Go to the top of the page
+Quote Post
mike
post 20.06.2006, 19:05:46
Post #17





Grupa: Przyjaciele php.pl
Postów: 7 494
Pomógł: 302
Dołączył: 31.03.2004

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


Zamiast od razu przewracać skrypt polecenien die() staraj się coś z niego jeszcze wyciągnąć. Na przykład to jaki błąd wystąpił.
  1. <?php
  2.  
  3. $id2 = mysql_query('select * from komentarze where id=' . $id );
  4.  
  5. ?>
Go to the top of the page
+Quote Post
Raffal
post 21.06.2006, 09:59:50
Post #18





Grupa: Zarejestrowani
Postów: 111
Pomógł: 0
Dołączył: 19.06.2006

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


struktura tabeli komentarze
---------------------------------------
  1. --
  2. -- Struktura tabeli dla `komentarze`
  3. --
  4.  
  5. CREATE TABLE `komentarze` (
  6. `id` varchar(100) NOT NULL DEFAULT '',
  7. `id_news` int(100) NOT NULL DEFAULT '100',
  8. `autor` text NOT NULL,
  9. `Text` text NOT NULL,
  10. `data` date NOT NULL DEFAULT '0000-00-00'
  11. ) TYPE=MyISAM;
  12.  
  13. --

tabela news
  1. CREATE TABLE `news` (
  2. `id` int(100) NOT NULL AUTO_INCREMENT,
  3. `temat` text NOT NULL,
  4. `tresc` text NOT NULL,
  5. `obrazek` text NOT NULL,
  6. `autor` text NOT NULL,
  7. `data` text NOT NULL,
  8. PRIMARY KEY (`id`)
  9. ) TYPE=MyISAM AUTO_INCREMENT=36 ;

prosze was rozwiarzcie mi ten problem bo mnie juz pot zalewa przy tym
dzialanie tego skryptu nie jest takie jakbym sobie rzyczył tzn nie dziala 1-petla while ktora pobiera wszystkie newsy i nie dziala pobieranie komentarzy ..
prosze snitch.gif snitch.gif
bład:
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 'id #5' at line 1
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/accounts_r/raffal/public_html/sysnews.php on line 45


efekt wyszedł mi taki
http:// raffal.boo.pl

Ten post edytował Raffal 21.06.2006, 12:10:12
Go to the top of the page
+Quote Post
bim2
post 21.06.2006, 12:21:45
Post #19





Grupa: Zarejestrowani
Postów: 1 873
Pomógł: 152
Dołączył: 9.04.2006
Skąd: Berlin

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


Mhh, w zapytaniach (mysql_) nie jestem expertem ale usuń or die() z każdego zapytania. Or die() sie raczej nie używai na samym dole daj echo mysql_error();


--------------------
Go to the top of the page
+Quote Post
Raffal
post 21.06.2006, 12:28:24
Post #20





Grupa: Zarejestrowani
Postów: 111
Pomógł: 0
Dołączył: 19.06.2006

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


no to wlasnie zrobilem i wyskoczyl mi ten blad
to jest ta strona
pokaze wam jeszcze raz ten kod po zmianach jakich dokonalem
  1. <?php
  2. mysql_connect('localhost','raffal','');
  3. mysql_select_db('raffal');
  4. $id=mysql_query('select * from news order by data desc') ;
  5. while ($w=mysql_fetch_row($id)){
  6. echo ("<P class=TRESCNAGLOWEK>");
  7. echo $w[1];
  8. echo ("</P>");
  9. echo ("<P class=TRESC>");
  10. echo ("<img src=");
  11. echo $w[3];
  12. echo (">");
  13. echo $w[2];
  14. echo ("<br>");
  15. echo("<font size=1 color=gray>");
  16. echo $w[0];
  17. echo (" ");
  18. echo $w[5];
  19. echo (" ");
  20. echo $w[4];
  21. echo ("</font>");
  22.  
  23.  if($_POST['komentarz']<>$w[0])
  24. {
  25. echo "<form method='post'><input type='hidden' name='komentarz' value='".$w[0]."'>";
  26. echo "<input type='submit' name='kom' value='Dodaj komentarz'></form>";
  27. }
  28. else
  29. {  
  30.  echo '<br><form method="post"><input type="text" name="autor2">';
  31. echo "<br><textarea name='komentarzyk'></textarea>";
  32. echo "<input type='submit' name='dodaj' value='Dodaj'></form>";
  33. }
  34.  
  35. if(isset($_POST['dodaj']))
  36. {
  37. $k=$_POST['komentarzyk'];
  38. $l=$_POST['autor2'];
  39. $m=date("Y-m-d H:i");
  40. $pytanie2="INSERT into komentarze values('','".$w[0]."','".$k."','".$l."','".$m."')";
  41. mysql_query($pytanie2) ;
  42. }
  43. $id2 = mysql_query('select * from komentarze where id=' . $id );
  44. while ($v=mysql_fetch_row($id2)){
  45. echo "<table border=1><tr><td>";
  46. echo $v[2];
  47. echo "</td></tr>";
  48. echo "<tr><td>";
  49. echo $v[3]; 
  50. echo "</td></tr><tr><td>";
  51. echo $v[4];
  52. echo $v[5];
  53. echo "</td></tr></table>";
  54. }
  55. }
  56.  
  57. ?>


Ten post edytował Raffal 22.06.2006, 13:04:24
Go to the top of the page
+Quote Post

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

 



RSS Wersja Lo-Fi Aktualny czas: 14.06.2025 - 00:09