I am having problems with my while loop it is only running the mysql function code once. Since num equals 3 should go through 3 times. please see attached file.
Hello, welcome to JustAnswer my name is XXXXX XXXXX I'm one of the experts who will be assisting you today.There doesn't seem to be any PHP experts online at the moment but I have experience with other languages and would like to suggest something if that's ok with you?
What would happen if you tried storing num with double quotes " " instead of single quotes or no quotes at all? Does that change anything for you?
I think i stated the question wrong. It is going thru 3 times but the mysql_query($query1) or die ('Error saving Daily record'); function is only running one time
I put the echo in and I see it printing to to screen 3 times.
Oh ok so the loop works fine
So it mustn't be evaluating the mysql query
I will opt out and see if we can find you someone that knows mysql
the value of num will vary. Can I replace the number 3 in your answer with the variable num?
i tried it but i got errors. I am using php and that procedure is not working
That worked. thanks for your help.
I think it didn't work before because I defined the query outside the loop and when it went looped a second time the query1 was not declared so it just skipped it but I am not sure if this is the correct answer.
THANKS FOR THE FOLLOW UP INFO. I REALLY APPRECIATE IT.