[eluser]Unknown[/eluser]
Hello, (sorry for ma english i am french)
I wrote this in my controller message.php :
Code:
function action_delete(int $idmessage)
{
mysql_query("DELETE * FROM Message WHERE IdMessage=$idmessage");
}
and i want to pass argument to this method.
I do this in my view :
Code:
echo anchor('message/action_delete/'.$idmessage,'Delete');
I expected an int, and
$idmessage=1...
I have this...
Quote:Argument passed to [...] must be an instance of int, string given
Someone could help me?