Loading ...
Sorry, an error occurred while loading the content.

Re:[php_greek] Re: MySQL aporia

Expand Messages
  • mariapapa@mycosmos.gr
    Oxi kale! moviedb einai to table. Telika to provlima lithike (mallon) kai thnx gia tin voitheia sas. Skeftika na kanw ton eksis kwdika. Tha ton kanw tin triti
    Message 1 of 2 , Mar 5, 2004
    • 0 Attachment
      Oxi kale!
      moviedb einai to table.
      Telika to provlima lithike (mallon) kai thnx gia tin voitheia sas.
      Skeftika na kanw ton eksis kwdika. Tha ton kanw tin triti pou tha paw stin poli pou spoudazw. Foititria eimai kia m'aresoun poli oi tainies kia giafto ekana tin moviedb. (Epanalamvanw oti moviedb einai table kai oxi badabase)

      $gen=$_POST['genre'];
      $sql="select rating, title, website from moviedb where genre='gen'";
      $result=mysql_query($sql);
      $num=mysql_num_rows($result);
      $i=0;
      echo("<table>");
      while($i<$num)
      {
      $row=mysql_fetch_row($query);
      echo("<tr>");
      echo("<td>Title</td><td>$row['title']");
      echo("<td>Rating</td><td>$row['rating']</td>");
      echo("<td>Official Website</td><td>$row['website']</td>");
      echo("</tr>");
      } //end of while

      Maria

      ------ Original Message ------

      O kodikas sou deihnei sostos. Prosexa pos sto query sou:

      > query=mysql_query("select * from moviedb where genre='$gen'");

      to onoma tou trapeziou einai "moviedb" pou thymizei mallon onoma vasis. Mipos
      evales kata lathos to onoma tou database anti gia tou table?

      Symeon Charalabides (cosmopolite trainee)
      -------------------------------------------------
      http://www.systasis.com




      --
      ÅëëçíéêÞ PHP mailing list
      Yahoo! Groups Links
    Your message has been successfully submitted and would be delivered to recipients shortly.