I would like to do a SQL-request within my php-page.
Currently, the code looks like:
$activiteitname = mysql_query("SELECT titel FROM tblLeidingAgenda WHERE id='{$_POST['id']}'");
$message = 'Herinnering!';
mail('me@test.be', 'Reminder: '.$activiteitname.'', $message);
But on execution, I get an Resource id #15 error…
mysql_query returns a handler but you can retirve that result with mysql_result