For some reason this bit of code isn't working as it should..
<?php $parse_date = $parse_date + 1; print("<center>$parse_date</center>"); if($parse_date = $date_end) { $parse_date = "35"; } ?>
I think it is a problem with the if part not working..
Offline
To check equality, use ==.
Offline
You should be happy that it's an easy fix. Just a syntax error. Of course, some people think those are the worst...
Offline
henley wrote:
Their only bad if you can't find them, if there's too many of them, or God forbid, it doesn't work when you fix it.
I've had some of those. Unexpected "$end"s, apparently. I think it was a problem with the webhost though.
Offline
GeonoTRON2000 wrote:
henley wrote:
Their only bad if you can't find them, if there's too many of them, or God forbid, it doesn't work when you fix it.
I've had some of those. Unexpected "$end"s, apparently. I think it was a problem with the webhost though.
You usually either get those if you view a webpage while it's still FTP uploading or you forgot to close a brace set.
Offline
muppetds wrote:
Another Question.
Currently i have a lot of small php scripts (about 30), is it better to re-write it all so it is one script?
If all of the scripts pertain to the same group of actions (for example parts of a single webpage or all actions to do with user management) then they should have been coded together in the first place.
If they don't have anything to do with each other, it's best to keep them separate!
Offline
LS97 wrote:
muppetds wrote:
Another Question.
Currently i have a lot of small php scripts (about 30), is it better to re-write it all so it is one script?If all of the scripts pertain to the same group of actions (for example parts of a single webpage or all actions to do with user management) then they should have been coded together in the first place.
If they don't have anything to do with each other, it's best to keep them separate!
Ok ill recode it (need to do it anyway)...
Offline