Jump to content

Pull values from Db to Curl data=array()...


jax0n

Recommended Posts

 

Hi everyone. I would be grateful if anyone might

be able to lend me a hand in this question that has

me ready to throw my computer out the window.. =)

-----------------------------------------

 

If I have a Db table named "Forms"

structured like the one below:

 

---------------------------------------------------------------------------

id                formid                fieldname                fieldvalue

---------------------------------------------------------------------------

1                    1                    name                    $myname

2                    1                    email                    $myemail

3                    1                    url                        $myurl

4                    1                    type                      $mytype

5                    1                    submit                  Submit

---------------------------------------------------------------------------

 

 

How would I pull the fieldname & fieldvalue set of that

particular "formid", then insert those values into my current (Curl)

script $data=array() so that the code resembled the snippet below?

 

 

$data=array(

                    'name' => $myname,

                    'email' => $myemail,

                    'url' => $myurl,

                    'type' => $mytype,

                    'submit' => 'Submit'

                    );

 

-----------------------------------------

 

thank you,

Jx

Link to comment
https://forums.phpfreaks.com/topic/146456-pull-values-from-db-to-curl-dataarray/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.