Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<?php include 'connect.php'; function do_search ($keyword) { echo '<b>Statistics ['.$keyword.']:<br></b>'; $query = 'SELECT downloads,uploads FROM user WHERE name="'.$keyword.'"'; echo $query; $result = mysql_query($query) or die(mysql_error()); while($row = mysql_fetch_object($result) ) { echo 'Uploads: '.$row->uploads; echo '<br>Downloads: '.$row->downloads; echo '<br><br>'; } echo '<hr>'; } ?> |
Zitat
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 '/*"' at line 1
Benutzerinformationen überspringen
Prof. Dr. Schlaumeier
Wohnort: Mecklenburg, zur Entwicklungshilfe in Chemnitz/Sachsen ;-)