SQL Ausgabe in Tabelle

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    kommt er vielleicht mit dem doppelten namen "hits" nicht klar ?

    ... count($sortnach) as hits from pphl_85245_logs as hits ...

    was sagt den phpMyAdmin zu der SQL Abfrage?

    lass dir nach

    $abfrage = MySQL_db_query("xxx","select $statement , count ...

    mal


    echo mysql_errnr()." ".mysql_error();

    ausgeben
    TBT

    Die zwei wichtigsten Regeln für eine berufliche Karriere:
    1. Verrate niemals alles was du weißt!


    PHP 2 AllPatrizier II Browsergame

    Comment


    • #17
      O.K. zur ersten Änderung :

      You have an error in your SQL syntax near ' count(Array) as hits from pphl_85245_logs as hits GROUP BY hostname, ORDER BY ' at line 1

      Das ist die Fehlermeldung der mySQL-Datenbank,
      nach der Änderung von Wotan.

      Und bei der zweiten Änderung erscheint folgende Fehlermeldung :

      Fatal error: Call to undefined function: mysql_errnr() in /usr/local/httpd/htdocs/kunden/web625/html/award.php on line 43

      Gruß Manuela
      Last edited by manuelakersten; 08-11-2002, 18:40.

      Comment


      • #18
        Sorry, heißt

        mysql_errno()
        TBT

        Die zwei wichtigsten Regeln für eine berufliche Karriere:
        1. Verrate niemals alles was du weißt!


        PHP 2 AllPatrizier II Browsergame

        Comment


        • #19
          So nun erhalte ich folgende Fehlermeldung :

          1064 You have an error in your SQL syntax near ' count(Array) as hits from pphl_85245_logs as hits GROUP BY hostname, ORDER BY ' at line 1
          Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /usr/local/httpd/htdocs/kunden/web625/html/award.php on line 45

          Warning: mysql_num_fields(): supplied argument is not a valid MySQL result resource in /usr/local/httpd/htdocs/kunden/web625/html/award.php on line 46

          Gruß Manuela

          Comment


          • #20
            Ein Array kann die Datenbank nicht abfragen. Such mal hier im Forum nach Array aus Datenbank. Ich glaube das sollte dir helfen.
            *winks*
            Gilbert
            ------------------------------------------------
            Hilfe für eine Vielzahl von Problemen!!!
            http://www.1st-rootserver.de/

            Comment


            • #21
              Hallo Leute,

              leider habe ich nichts gefunden ws mir bei meinem Problem weiterhelfen könnte, selbst wenn ich den Befehl :

              PHP Code:
              MySQL_db_query(

              "xxx""select $statement , count($sortnach) as hits FROM pphl_85245_logs as hits GROUP BY $statement ORDER BY hits DESC LIMIT 0,10"

              direkt inmySQL-Admin eingebe bekomme ich folgende Fehlermeldung :

              You have an error in your SQL syntax near 'MySQL_db_query("xxx","select $statement , count($sortnach) as hits FROM' at line 1

              HILFE !!!!

              Gruß Manuela

              Comment

              Working...
              X