• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Add backslashes in php code

Add backslashes in php code 11 years 3 months ago #26904

  • cedric54
  • cedric54's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Hello,

I have a strange behaviour when i paste php code in a directory php script text area. After saving, all the quotes are preceded by backslashes. So the php code can't work :(

Ex :
$db = JFactory::getDbo();
$db->setQuery(\"SELECT COUNT(\'SubmissionId\') FROM #__rsform_submissions WHERE FormId=4\");
$submissionsNo=$db->loadResult();
echo $submissionsNo;


I did'nt noticed the same behaviour in the form management.

Could you help me ?

Thk you.

Cédric.
The administrator has disabled public write access.

Add backslashes in php code 11 years 3 months ago #26905

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
This is generated because you have magic quotes option enabled. This is explained further here;

http://www.rsjoomla.com/support/documentation/view-article/1041-extra-qq-signs-when-using-manage-directories.html
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!