Heu,
Erik is bezig geweest met een bubble script,
alleen nu is er een irritante error waardoor zelf Firefox van vast loopt
dit is de error:
Warning: mysql_fetch(): supplied argument is not a valid MySQL result resource in /bubble.php on line 34
en dan nu de code:
ik hoop dat jullie hier raad mee weten,
ohja: een add is er nog niet (om een bubble toe te voegen) deze heb ik met phpmyadmin toegevoegd.
@berichtjes, toegevoegt, maar nog steeds dezelfde fout
Erik is bezig geweest met een bubble script,
alleen nu is er een irritante error waardoor zelf Firefox van vast loopt
dit is de error:Warning: mysql_fetch(): supplied argument is not a valid MySQL result resource in /bubble.php on line 34
en dan nu de code:
[COLOR= #0000BB]<?[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]../_include.php[/COLOR][COLOR= #007700]);[/COLOR]
design_boven[COLOR= #007700]([/COLOR][COLOR= #DD0000]Bubble[/COLOR][COLOR= #007700]);[/COLOR]
check_login[COLOR= #007700]();[/COLOR]
[COLOR= #0000BB]$bubble_query[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM bubbles"[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$kliks_query[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT kliks FROM bubbles"[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$kliks[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$kliks_query[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$in_pot[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$kliks[/COLOR] [COLOR= #007700]*[/COLOR] [COLOR= #0000BB]90[/COLOR][COLOR= #007700];[/COLOR]
?>
<h2>Bubble</h2>
<p>
Dit is de bubble van hoi.net. Een bubble kost 1 klik.<br />
90% Procent van alle bubbles gaat in de pot. 10% Gaat naar Klikker.net.<br />
Er zijn [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$bubble_query[/COLOR][COLOR= #007700]);[/COLOR] ?> bubbles in de run, en er zitten [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$in_pot[/COLOR][COLOR= #007700];[/COLOR] ?> kliks in de pot.<br /><br />
<table width="100%">
<tr>
<td>
Gebruikersnaam:
</td>
<td>
Inzet:
</td>
<td>
Uitbetaling:
</td>
</tr>
[COLOR= #0000BB]<?[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$bubble_query[/COLOR][COLOR= #007700]) >[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700])
{[/COLOR]
[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$bubble_row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$bubble_query[/COLOR][COLOR= #007700]))
{[/COLOR]
[COLOR= #0000BB]$lid_query[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT users WHERE id = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$bubble_row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]lid_id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$lid_row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$lid_query[/COLOR][COLOR= #007700]);[/COLOR]
?>
<tr>
<td>
[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$lid_row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]user[/COLOR][COLOR= #007700]];[/COLOR] ?>
</td>
<td>
[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$bubble_row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]kliks[/COLOR][COLOR= #007700]];[/COLOR] ?>
</td>
<td>
[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$bubble_row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uitbetaling[/COLOR][COLOR= #007700]];[/COLOR] ?>
</td>
</tr>
[COLOR= #0000BB]<?[/COLOR]
[COLOR= #007700]}
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
?>
Er zijn nog geen bubbles in de run.
[COLOR= #0000BB]<?[/COLOR]
[COLOR= #007700]}[/COLOR]
?>
<a href="koop_bubbles.php">Koop een bubble!</a>
</p>
[COLOR= #0000BB]<?[/COLOR]
design_onder[COLOR= #007700]([/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]);[/COLOR]
?> ik hoop dat jullie hier raad mee weten,
ohja: een add is er nog niet (om een bubble toe te voegen) deze heb ik met phpmyadmin toegevoegd.
@berichtjes, toegevoegt, maar nog steeds dezelfde fout

PS. Robbert, test dat dan is. 
