Forums

problem quote()

Irate 15 Dec, 2015
Hi,

I want to use DB Read, but when i write code into the field conditions and i save it, i have this result :
<?php 
return array(\'location.state_tag_loc\' => $form->data[\'eastList\'][\'its_equip_id\']); 
?>

A solution ?

Thank's

Bruno
GreyHead 15 Dec, 2015
Hi Bruno,

It looks as though you may have Magic Quotes set to On in your PHP Configuration. Please check the Site Admin > System Information > PHP Settings and see if it On or Off.

Bob
Irate 15 Dec, 2015
Yes, my configuration PHP is "on"...
GreyHead 15 Dec, 2015
Hi Bruno,

Please turn it off.

Bob
Irate 18 Dec, 2015
Hi Bob,

My host turn it off, it's ok. But I see nothing in my form when i call a DB table with DB Read.
debug;
Data array
Array
(
    [option] => com_chronoforms5
    [chronoform] => affichemateriel
    [Itemid] => 
    [Data] => Array
        (
            [titre] => portrait
        )

)

Array
(
)

errors:
Array
(
)

Debug info
Array
(
    [2] => Array
        (
            [DB Read] => Array
                (
                    [Queries] => Array
                        (
                            [0] => SELECT `Data`.`titre` AS `Data.titre` FROM `ijklr_chronoengine_chronoforms_datatable_newmateriel` AS `Data`
                        )

                )

        )

)


Bruno
GreyHead 18 Dec, 2015
Hi Bruno.

The DB Read is returning the value of 'portrait' for Titre, what exactly isn't working?

You may need to turn off the Model ID in the DB Read - I can't tell from the information here.

Bob
Irate 18 Dec, 2015
Hi Bob,

It's working

Thank's

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