This is not a support mailing list. You should try stackoverflow
... http://stackoverflow.com/questions/tagged/php
On Thursday, June 23, 2016 at 2:14:36 PM UTC-4, ABDEL ADIM ENNAJJAMI wrote:
>
> hello guys this script :
> <?php
> error_reporting(0);
> include("db_config.php");
>
> // array for JSON response
> $response = array();
>
> // get all items from myorder table
> $result = mysql_query("SELECT *FROM free_lancer") or die(mysql_error());
>
> if (mysql_num_rows($result) > 0) {
>
> $response["orders"] = array();
>
> while ($row = mysql_fetch_array($result)) {
> // temp user array
> $item = array();
> $item["ID_FL"] = $row["ID_FL"];
> $item["FL_LOGIN"] = $row["FL_LOGIN"];
>
> // push ordered items into response array
> array_push($response["orders"], $item);
> }
> // success
> // $response["success"] = 1;
> }
> else {
> // order is empty
> $response["success"] = 0;
> $response["message"] = "No Items Found";
> }
> // echoing JSON response
> echo json_encode($response);
>
> ?>
>
> has the out put :
> {"orders":[{"ID_FL":"1","FL_LOGIN":"e"},{"ID_FL":"7","FL_LOGIN":"FL"}]}
>
>
>
> so i want to have only the array inside the object so i can use it with
> volley in android
>
--
You received this message because you are subscribed to the Google Groups "PHP
Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/php-fig/8c61d06b-add9-42b0-ba33-af5f3a7aadd7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.