Hello, I am new here, and hope this question is along the general terms of asking one.
I am fairly new to PHP (1 month), and am familiar with coding as far as some Qbasic in HS, and some VB in College.
I have created a survey on the web to pull and submit data to MySQL, with the help of my boss, and several others. I am at a point, however where I need some functionality noone I have spoken to is familiar with.
I need to store variables in an array, and so on and so forth. Basically my question consists of the 'For' Syntax. I tried to search this forum, including several others (along with PHP function reference) and have been unable to come up with a complete answer.
I need to PHP counter part to this QB code:
Please forgive me for mixing other code with PHP, but I cannot think of a simpler way to write it out. Also, I am a little lax on my complete systax, as the code is not in front of me, but I tried my best.
$total_results = 5 (Normally dynamic depending on 'count' function, but set at 5 for simplicity)
{
(Running inside the normal array function of php after stuff is pulled from the database)
for a = 1 to $total_results
$customer_number[$total_results] = $customer_contact
(**What should I put for my syntax for my 'For' statement above, and also where do I put the 'Next A', if there is one required in PHP for a 'For' statement, and how can I implement it inside of a 'While' statement
}
If you have any questions you can email me, or I do plan on coming back. Im sorry for anything I forgot, but am prepared to explain with more details.
Thanks