Forums

[solved] Can't select - Permissions problem?

lopezio 12 Jul, 2011
Hi
I have one form and the following code:

$db =& JFactory::getDBO();
$query = "select * from clientes";
$db->setQuery($query);
$destino = $db->loadResult();
if ( $destino ) {
  $row = $db->loadRow();
  $nome=$row[2];
}

when I save this code I get
Forbidden

You don't have permission to access /administrator/index2.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
The code is on Form Code
My files index.php and index.php have permissions 644
Any help, please? (Maybe a permission problem)
GreyHead 13 Jul, 2011
Hi lopezio,

This is usually a result of the mod_security settings on your site not permitting some part of the URL. Probably index2.php in this case. Best check with your web host.


If you search here on the error message you will find a couple of similar threads.

Bob
This topic is locked and no more replies can be posted.