Registrierte User sehen keine Werbung und haben Zugriff auf alle Funktionen des Forums

22.05.2012, 00:37 UTC+2

Sie sind nicht angemeldet.

  • Anmelden
  • Registrieren
Zuletzt online

Keine Benutzer in Liste

Statistik

135 Mitglieder - 1 130 Themen - 7 079 Beiträge (durchschnittlich 5,02 Beiträge/Tag)
Unser neuestes Mitglied heißt: gaoshu01.

Andreas

ist hier zu Hause

Registrierungsdatum: 08.07.2008

Beiträge: 2 226

Danksagungen: 1636 / 30

Aktivitätspunkte: 13990

Level: 43 [?]

Erfahrungspunkte: 3.146.146

Nächstes Level: 3.609.430

Bewertungen - Ø 5

11

02.07.2009, 20:59

hier grade ne testversion:

PHP-Quelltext

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<form method="POST" action="anmeldung.php">
    <!--webbot bot="SaveResults" U-File="fpweb:///_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" -->
    <p>Awardbewerbung</p>
    <p>Dein Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="text" name="name" size="20"></p>
    <p>Deine Mailaddy&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="text" name="mail" size="20"></p>
    <p>Deine Website&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="text" name="website" size="20"></p>
    <p>Titel deiner Seite&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="text" name="titel" size="20"></p>
    <p>Beschreibung deiner Seite:</p>
    <p><textarea rows="4" name="beschreibung" cols="37"></textarea></p>
    <p><input type="submit" value="Absenden" name="B1"><input type="reset" value="Zurücksetzen" name="B2"></p>
</form>

<?php

    class sql {

        function init() {

            if ($this->load != 1) {
                mysql_connect('localhost''xxxx''xxxx');
                mysql_select_db('usr_xxxx');
                mysql_query("SET NAMES 'utf8'");
                mysql_query("SET CHARACTER SET 'utf8'");
                $this->load 1;
            }

        }

        function encode($string) {

            $string mysql_real_escape_string($string);
            $string str_replace('%''&#x25;'$string);
            $string str_replace('%''&#x5F;'$string);
            return $string;

        }

        function id() {
            return mysql_insert_id();
        }

        function rows($res) {
            return mysql_num_rows($res);
        }

        function query($string$once 0) {

            if ($this->load != 1$this->init();
            $res mysql_query($string);
            if ($once == 1$res $this->fetch($res);
            return $res;

        }

        function fetch($res) {

            $row = @mysql_fetch_array($res);
            $err mysql_error();
            if ($err) echo $err.'<br />';
            return $row;

        }

    }

    $sql = new sql;
    $sql->init();


//Anmdelung
//ID automatisch von DB zugewiesen
//Status automatisch 1
/*
$name = $_POST[name];
$mail = $_POST[mail];
$website = $_POST[website];
$titel = $_POST[titel];
$beschreibung = $_POST[beschreibung];
$datum = date("d.m.Y H:i");
*/
$name "name";
$mail "mail";
$website "ait";
$titel "ggdd";
$beschreibung "hhbskhbkbkbk";
$datum date("d.m.Y H:i");

$sql->query('INSERT INTO `awardbewerber` (`Name`, `Mail`, `Website`, `Titel`, `Beschreibung`, `Datum`, `Status`) VALUES (\''.$sql->encode($name).'\', \''.$sql->encode($mail).'\', \''.$sql->encode($website).'\', \''.$sql->encode($titel).'\', \''.$sql->encode($beschreibung).'\', \''.$sql->encode($datum).'\', \''.$sql->encode(1).'\');');

//Ausgabe der Gewinner
print "gewinner";
print "<table border='0' width='100%'>";

$result $sql->query('SELECT * FROM `awardbewerber` WHERE `Status` = 2');
while ($row $sql->fetch($result)) {
//print '<tr><td>'.$row['ID'].'</td><td>'.$row['Name'].'</td><td><a href="'.$row['Website'].'" alt="'.$row['Titel'].'">'.$row['Titel'].'</a><td><td>'.$row['Beschreibung'].'</td><td>'.$row['Datum'].'</td><td>'.$row['Award'].'</td><td>'.$row['Punkte'].'</td>'<td>'.$row['Bewertung'].'</td>';

}
/*


//Ausgabe der Bewerber
print "Bewerber";
print "<table border="0" width="100%">";

$result = $sql->query('SELECT * FROM `awardbewerber` WHERE `Status` = 1');
while ($row = $sql->fetch($result)) {
print '<tr><td>'.$row['ID'].'</td><td>'.$row['Name'].'</td><td><a href="'.$row['Website'].'" alt="'.$row['Titel'].'">'.$row['Titel'].'</a><td><td>'.$row['Beschreibung'].'</td><td>'.$row['Datum'].'</td><td>'.$row['Award'].'</td><td>'.$row['Punkte'].'</td>'<td>'.$row['Bewertung'].'</td>';

}

//Bewertung
//Einzelne Kriterien

//Design
$design_komplett = $design_ubersichtlichkeit.design
$bewertung = $design1.$design2

*/
?>


http://tratschplatz.de/awardtest/anmeldung.php

Andreas

ist hier zu Hause

Registrierungsdatum: 08.07.2008

Beiträge: 2 226

Danksagungen: 1636 / 30

Aktivitätspunkte: 13990

Level: 43 [?]

Erfahrungspunkte: 3.146.146

Nächstes Level: 3.609.430

Bewertungen - Ø 5

12

02.07.2009, 21:08

nach änderung der zeile 70/71
$sql = new sql;
$sql->load = 1;
$sql->init();
sind da jetzt noch ein paar weitere fehler

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'www-data'@'localhost' (using password: NO) in /var/www/web0/html/forum/awardtest/anmeldung.php on line 36

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /var/www/web0/html/forum/awardtest/anmeldung.php on line 36

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'www-data'@'localhost' (using password: NO) in /var/www/web0/html/forum/awardtest/anmeldung.php on line 36

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /var/www/web0/html/forum/awardtest/anmeldung.php on line 36

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'www-data'@'localhost' (using password: NO) in /var/www/web0/html/forum/awardtest/anmeldung.php on line 36

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /var/www/web0/html/forum/awardtest/anmeldung.php on line 36

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'www-data'@'localhost' (using password: NO) in /var/www/web0/html/forum/awardtest/anmeldung.php on line 36

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /var/www/web0/html/forum/awardtest/anmeldung.php on line 36

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'www-data'@'localhost' (using password: NO) in /var/www/web0/html/forum/awardtest/anmeldung.php on line 36

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /var/www/web0/html/forum/awardtest/anmeldung.php on line 36

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'www-data'@'localhost' (using password: NO) in /var/www/web0/html/forum/awardtest/anmeldung.php on line 36

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /var/www/web0/html/forum/awardtest/anmeldung.php on line 36

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'www-data'@'localhost' (using password: NO) in /var/www/web0/html/forum/awardtest/anmeldung.php on line 36

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /var/www/web0/html/forum/awardtest/anmeldung.php on line 36

Warning: mysql_query() [function.mysql-query]: Access denied for user 'www-data'@'localhost' (using password: NO) in /var/www/web0/html/forum/awardtest/anmeldung.php on line 54

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /var/www/web0/html/forum/awardtest/anmeldung.php on line 54
gewinner
Warning: mysql_query() [function.mysql-query]: Access denied for user 'www-data'@'localhost' (using password: NO) in /var/www/web0/html/forum/awardtest/anmeldung.php on line 54

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /var/www/web0/html/forum/awardtest/anmeldung.php on line 54
Access denied for user 'www-data'@'localhost' (using password: NO)

Andreas

ist hier zu Hause

Registrierungsdatum: 08.07.2008

Beiträge: 2 226

Danksagungen: 1636 / 30

Aktivitätspunkte: 13990

Level: 43 [?]

Erfahrungspunkte: 3.146.146

Nächstes Level: 3.609.430

Bewertungen - Ø 5

13

02.07.2009, 21:17

PHP-Quelltext

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
    class sql {

        function init() {

            if ($this->load != 1) {
                mysql_connect('localhost''xcxcxc''xxcxcx');
                mysql_select_db('xcxcxcx');
                mysql_query("SET NAMES 'utf8'");
                mysql_query("SET CHARACTER SET 'utf8'");
                $this->load 0;
            }

        }

        function encode($string) {

            $string mysql_real_escape_string($string);
            $string str_replace('%''&#x25;'$string);
            $string str_replace('%''&#x5F;'$string);
            return $string;

        }

        function id() {
            return mysql_insert_id();
        }

        function rows($res) {
            return mysql_num_rows($res);
        }

        function query($string$once 0) {

            if ($this->load != 1$this->init();
            $res mysql_query($string);
            if ($once == 1$res $this->fetch($res);
            return $res;

        }

        function fetch($res) {

            $row = @mysql_fetch_array($res);
            $err mysql_error();
            if ($err) echo $err.'<br />';
            return $row;

        }

    }

    $sql = new sql;
    $sql->init();

Andreas

ist hier zu Hause

Registrierungsdatum: 08.07.2008

Beiträge: 2 226

Danksagungen: 1636 / 30

Aktivitätspunkte: 13990

Level: 43 [?]

Erfahrungspunkte: 3.146.146

Nächstes Level: 3.609.430

Bewertungen - Ø 5

14

02.07.2009, 21:35

der beweis, dass der fehler an anderer stelle liegt:

PHP-Quelltext

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<form method="POST" action="anmeldung.php">
    <!--webbot bot="SaveResults" U-File="fpweb:///_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" -->
    <p>Awardbewerbung</p>
    <p>Dein Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="text" name="name" size="20"></p>
    <p>Deine Mailaddy&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="text" name="mail" size="20"></p>
    <p>Deine Website&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="text" name="website" size="20"></p>
    <p>Titel deiner Seite&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="text" name="titel" size="20"></p>
    <p>Beschreibung deiner Seite:</p>
    <p><textarea rows="4" name="beschreibung" cols="37"></textarea></p>
    <p><input type="submit" value="Absenden" name="B1"><input type="reset" value="Zurücksetzen" name="B2"></p>
</form>

<?php
    class sql {

        function init() {

            if ($this->load != 1) {
                mysql_connect('localhost''xxxxxxx''xxxxxxx');
                mysql_select_db('xxxxxx');
                mysql_query("SET NAMES 'utf8'");
                mysql_query("SET CHARACTER SET 'utf8'");
                $this->load 1;
            }

        }

        function encode($string) {

            $string mysql_real_escape_string($string);
            $string str_replace('%''&#x25;'$string);
            $string str_replace('%''&#x5F;'$string);
            return $string;

        }

        function id() {
            return mysql_insert_id();
        }

        function rows($res) {
            return mysql_num_rows($res);
        }

        function query($string$once 0) {

            if ($this->load != 1$this->init();
            $res mysql_query($string);
            if ($once == 1$res $this->fetch($res);
            return $res;

        }

        function fetch($res) {

            $row = @mysql_fetch_array($res);
            $err mysql_error();
            if ($err) echo $err.'<br />';
            return $row;

        }

    }

    $sql = new sql;
    $sql->init();


?>

Thema bewerten

Partnerseiten

 

Witzeland.de   ---   Archiv   ---  Kque7 ---  Ratschplatz --- Preisvergleich   ---   Forenblog