note 69161 added to function.mysql-fetch-array

From: Date: Fri, 25 Aug 2006 06:03:03 +0000
Subject: note 69161 added to function.mysql-fetch-array
Groups: php.notes 
Request: Send a blank email to php-notes+get-116300@lists.php.net to get a copy of this message
/* <?php $link = mysql_connect("localhost", "root", ""); mysql_select_db("meins"); // Ausgabe Fahrer, Autos, Strecken $query = "SELECT * FROM fahrer, autos, strecken, autosstrecken WHERE fahrer.AID=autos.AID AND autosstrecken.AID=autos.AID AND autosstrecken.SID=strecken.SID"; $result = mysql_query($query); echo "<table border='2'>"; echo "<tr>"; echo "<td><b>Vorname</b></td> <td><b>Nachname</b></td> <td><b>Alter</b></td> <td><b>Führerscheinklasse</b></td> <td><b>Auto Typ</b></td> <td><b>Automarke</b></td> <td><b>Verbrauch auf 100km</b></td> <td><b>Tüv bis</b></td> <td><b>Gefahren Von</b></td> <td><b>Bis</b></td> <td><b>Länge der Strecke</b></td>"; echo "</tr>"; echo "<tr>"; while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { echo "<td>".$line[FVorname]."</td> <td>".$line[FNachname]."</td> <td>".$line[FAlter]."</td> <td>".$line[FFklasse]."</td> <td>".$line[ATyp]."</td> <td>".$line[AMarke]."</td> <td>".$line[AVerbrauch]."</td> <td>".$line[ATÜV]."</td> <td>".$line[SVon]."</td> <td>".$line[SBis]."</td> <td>".$line[SLaenge]."</td>"; echo "</tr>"; } ?> echo "<form action='suchen.php'>"; echo "Was möchten sie Suchen?<br>"; echo "<select name='tname' typ='text'>"; echo "<option>Namen</option>"; echo "<option>Adressen</option>"; echo "<option>Alles</option>"; echo "<br>Suchbegriff: "; echo "<input type='text' name='sb' size='30' maxlength='30'>"; echo "<input type='hidden' name='suche' value='neu'>"; echo "</form>"; $query3="INSERT INTO Beziehung (PID, AID, TID) VALUES ('".$pid."','".$aid."','".$tid."')"; $query3="DELETE FROM Beziehung WHERE TID='".$delTID."' AND AID='".$delAID."' AND PID='".$delPID."'"; $query="UPDATE Person SET Name='".$name."', Vorname='".$vorname."', pAlter=".$palter." WHERE PID=".$pid.""; */ ---- Server IP: 66.163.161.117 Probable Submitter: 89.57.205.20 ---- X-Spam-Status: Yes, hits=5.2 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER, HTML_20_30,HTML_MESSAGE,HTML_TABLE_THICK_BORD,HTML_TAG_BALANCE_TABLE autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-fetch-array.php Edit -- https://master.php.net/note/edit/69161 Del: integrated -- https://master.php.net/note/delete/69161/integrated Del: useless -- https://master.php.net/note/delete/69161/useless Del: bad code -- https://master.php.net/note/delete/69161/bad+code Del: spam -- https://master.php.net/note/delete/69161/spam Del: non-english -- https://master.php.net/note/delete/69161/non-english Del: in docs -- https://master.php.net/note/delete/69161/in+docs Del: other reasons-- https://master.php.net/note/delete/69161 Reject -- https://master.php.net/note/reject/69161 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#116300) next »