When a Javascript function is called - show_picture() - from sprintf() it happily works (the code is below):
$user_row = sprintf("<a href='javascript:show_picture(%d);'> " .
"<img src='images/missing_user.png' width='15' /></a> ", $user['user_id']);
When a php function is called - show_user_func() - from sprintf() it does not work. The error message is:
The requested URL /show_user_func(168); was not found on this server.
The code is:
sprintf("<a href='show_user_func(%d);'>%s %s</a> ",
$user['user_id'], $user['first_name'], $user['last_name']);
There probably is a simple explanation for this but it currently escapes me. Does anyone have any ideas?