That loop is to print all records, when i take them out it just prints it for one records and not all, please can you help me out with this? How can i have two nested loops? first one to loop through all rows and second one to check if school name is the same?
Thank you diafol, the problem is I don't know the url to use file_get_contents, the other site will send data like (api_type:ping, purchase_id, token, full_name, email_address, and country_code) about a product to my api page, I have my account_secret_code my api page must read posted data via api and compare the token with generated token if it is correct then store the information in the data base, my problem is in reading posted data, I tried to use this code which is from the above code in the article:
Is that right or there is something else, by the way I use codeigniter to make the api page that will read and store data sent via api, I found there is RESTful library for codeigniter but I couldn't understand how to use it :(
when you create the folder, it means everybody in the world will have access to it unless you protect it with a login of some description. Which may be okay for you, I don't know.
As soon as the folder is created, add a record to your DB table, such as
set the folder_name to the newly created folder name and the expiry to 30 days from now. So when your client tries to access any pages in the folder, you could have this in an include file to place in each page...
//connect to db
//get expiry date - if expired redirect to renew page - else show page
Alternatively, you could run a daily cron job to run a script to produce a .htaccess file into that folder which has the content:
I am displaying the complete record of the user in the My profile section, I am fetching all the rows , but the problem is within the rows I've got two fields as arrays, which are 'secondarySubject' and 'secondaryGrade' now I want the display to be something like this
2002-2004 ----------- A Level ------- School Name
I am able to display them but it prints the dates, school name and level name with every subject rather than just once for all the subjects. I am posting my code, can someone pleaseeee help me with it.