Validation server side

SPABO 24 Feb, 2011
Hi
I "created" the following code, however, when both criteria are okay, it stil gives the "errormasage"
<?php
$datum = JRequest::getString('Wedstrijddatum', '', 'post');
$user_info = JRequest::getString('cb_lidcode', '', 'post');
$db =& JFactory::getDBO();
$query = "
    SELECT *
        FROM `jos_chronoforms_PITCHenPUTT_TESTEN`
        WHERE `Wedstrijddatum` = '$datum' AND `cb_lidcode` = '$user_info';
";
$db->setQuery($query);
if ($db->loadResult() ) {
}
{ return "You did not subcribe etc etc";
}
?>


Hope you can assist
SPABO 26 Feb, 2011
In the mean solved
This topic is locked and no more replies can be posted.