Jump to content

Recommended Posts

how can I make this array

 

Array

(

    [0] => e2acfb0606d1e8f994b687fd8de5b032

    [jewpage_id] => e2acfb0606d1e8f994b687fd8de5b032

    [1] => lo

    [name] => lo

    [2] =>

ocation...

    [description] =>

ocation...

    [3] => 0000-00-00

    [date] => 0000-00-00

    [4] => asd

    [address] => asd

    [5] =>

    [contact] =>

    [6] => 41.1265328

    [log] => 41.1265328

    [7] => -74.0640814

    [lat] => -74.0640814

    [8] => GA

    [state] => GA

    [9] => MONSEY

    [city] => MONSEY

    [10] => 91401

    [zip] => 91401

    [11] => upload/e2acfb0606d1e8f994b687fd8de5b032

    [pic1] => upload/e2acfb0606d1e8f994b687fd8de5b032

    [12] => upload/e2acfb0606d1e8f994b687fd8de5b032

    [pic2] => upload/e2acfb0606d1e8f994b687fd8de5b032

    [13] => 10

    [post_user] => 10

    [14] => Wytr

    [type] => Wrty

    [15] =>

    [section] =>

    [16] => expensive

    [price] => expensive

    [17] =>

    [homepage] =>

    [18] => 0

    [rating] => 0

    [19] => 0

    [category_id] => 0

)

 

look like

 

Array ( [0] => Array ( [jewpage_id] => e2acfb0606d1e8f994b687fd8de5b032 [name] => lo [description] => ocation... [date] => 0000-00-00 [address] => 250 Kearsing Pkwy [contact] => [log] => 41.1265328 [lat] => -74.0640814 [state] => GA [city] => MONSEY [zip] => 91401 [pic1] => upload/e2acfb0606d1e8f994b687fd8de5b032 [pic2] => upload/e2acfb0606d1e8f994b687fd8de5b032 [post_user] => 10 [type] => Wedding Flowers [section] => [price] => expensive [homepage] => [rating] => 0 [category_id] => 0 ) )

 

Link to comment
https://forums.phpfreaks.com/topic/170915-formatting-array-question/
Share on other sites

hahaha jew page.

 

$array = Array ( "" => Array ( 'jewpage_id' => e2acfb0606d1e8f994b687fd8de5b032, 'name' => lo, 'description' => ocation..., 
'date' => 0000-00-00, 'address' => 250 Kearsing Pkwy, 'contact' => '', 'log' => 41.1265328, 'lat' => -74.0640814, 'state' => GA, 'city' => MONSEY, 'zip' => 91401, 'pic1' => upload/e2acfb0606d1e8f994b687fd8de5b032, 'pic2' => upload/e2acfb0606d1e8f994b687fd8de5b032, 'post_user' => 10, 'type' => Wedding Flowers, 'section' => "", 'price' => expensive, 'homepage' => "",  'rating' => 0, 'category_id' => 0 ));

 

? that should work

 

that array is kind of screwy though.. has a bunch of empty elements, and the first index is null

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.