Beste,
Ik heb een probleem, alweer. Ik heb de volgende querty. Ik heb 2 rijen met als tally 2 en 3. Als ik het laat zien krijg in 23. De 2 rijen naar elkaar. Hoe kan ik in vredesnaam deze 2 getallen bij elkaar optellen.
Ik heb een probleem, alweer. Ik heb de volgende querty. Ik heb 2 rijen met als tally 2 en 3. Als ik het laat zien krijg in 23. De 2 rijen naar elkaar. Hoe kan ik in vredesnaam deze 2 getallen bij elkaar optellen.
[COLOR= #0000BB]<?php
$show_result[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$table_prefix[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]"appoint WHERE date >= "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/date"]date[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Y-m"[/COLOR][COLOR= #007700]).[/COLOR][COLOR= #DD0000]"-01 AND date <= "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/date"]date[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Y-m"[/COLOR][COLOR= #007700]).[/COLOR][COLOR= #DD0000]"-31"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_array"]mysql_fetch_array[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$show_result[/COLOR][COLOR= #007700]))
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]tally[/COLOR][COLOR= #007700]];
}[/COLOR]
?>