Ouwe rakker |
|
<?php
if ($my-id <> 0) {
$rConnection = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS);
$rDatabase = mysql_select_db(MYSQL_DB);
$qSelectTickets = mysql_query("SELECT COUNT(userid)
FROM mos_helpdesk_tickets
WHERE userid = ".$my-id."
AND status = 'C'
AND parentid = 0");
if (mysql_result($qSelectTickets, 0) == 1) {
echo 'U hebt 1 ticket!';
} else {
echo 'U heeft '.mysql_result($qSelectTickets, 0).' tickets!';
}
}
?>
<?php if ($my-id <> 0) { $rConnection = mysql_connect(MYSQL_HOST , MYSQL_USER , MYSQL_PASS ); FROM mos_helpdesk_tickets WHERE userid = ".$my-id." AND status = 'C' AND parentid = 0"); } else { } } ?>
|