Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $username="myacc";
- $password="mypw";
- $database="arr9gan7";
- $name= $_GET["name"];
- $beruf= $_GET["beruf"];
- $votes= $_GET["votes"];
- $g_link = mysql_connect('localhost', $username, $password) or die('Could not connect to mysql server.' );
- mysql_select_db($database, $g_link) or die('Could not select database.');
- $query="SELECT * FROM statistik";
- $result=mysql_query($query);
- $num=mysql_numrows($result);
- mysql_close();
- $i=0;
- while ($i < $num) {
- $name=mysql_result($result,$i,"name");
- $votes=mysql_result($result,$i,"votes");
- echo "<b><br>$name - $votes <br>";
- $i++;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement