Need Help in PHP

Status
Not open for further replies.

mv10

Inactive
Apprentice
I am new to PHP. I would like to print Prime Nos. between two nos. get from a user, by using PHP. I have written the code but it doesn't work. Is anyone have solution.
 
He's probably learning and experimenting with codes. Paste your code here, I'll fix it for you.
 
The key to programming is going step by step.

Take a base case of 1 number. If it is prime, print. Similarly take 2, 3....N. You'll fix your bug that way. Bet you learnt it the same way in C so PHP should be way easier.
 
Status
Not open for further replies.