i m getting this Notice this following code.. please help me why this error is comming...

$dataArr[$m]['longitude']= @$pageListArray['longitude']['value'];
$dataArr[$m]['lattitude']= @$pageListArray['lattitude']['value'];
$dataArr[$m]['hospitalType']= @$pageListArray['hospitalType']['value'];

foreach ($dataArr as $key => $row) {
        $order_in_category[$key]  = $row[0];//[0] is $order_in_category
    }

thanks in advance.. i hope i got solution here.

remove the "@" sign. it ignores error message in your code that's why you got 0 error message.

case close. :D

its not related @ sign.. i think @ sign is used to suppress notices and warning.. and that notice is coming in for loop.

You are using $row[0] but 0 has not been set, you should be using $row['value'] .

Absolutely, $row is an associative array, not numeric. It has value same with $pageListArray. So, the index must be string, not number. 'longtitude', 'lattitude', 'hospitalType', or 'value', as pointed by @pritaeas.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.