Archive for the ‘PHP’ Category

In this tutorial, we’ll create a simple android application that show a list of popular android apps complete with their icons, total downloads and ratings data. Note, all the apps data we use in this tutorial is sample data. We use android List View to show list of apps. The data for the list view is fetched from MySQL Server in JSON(Javascript Object Notation) format. We use PHP as server   Read More ...

Android PHP

PHP has so many built in function to work with array. In this tutorial I would present to you how to filter an associative array based on array keys. For example, you have an associative array $groups: And array of keys: Now, how to get sub array of $groups which key contained in $keys? Our goal is to create new associative array like this: Every keys in array $news contained   Read More ...

PHP

PHP and Javascript work on different sides. PHP work on server side while Javascript work at client side. If your javascript file is separate from html file, you cannot refers to PHP variables. But there is a tricky way how to passing PHP variable into javascript file. Write you Javascript file as PHP In the above code, you have read PHP variable in javascript file. Save above code as js.php   Read More ...

Javascript PHP