FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Crazy Code gone Mad!





Diablosblizz
Hey, I have this piece of code, it will work for one day and then the next it will die out. I have no idea as to why either, it just doesn't make any sense.

http://pastebin.com/m299c8afc
** I couldn't post the code, it would error me with a internal server error**


After the IF, I echo some variables and the $alertonetime comes back as a blank, so there is something wrong with that, although the table says it completly correct (name and everything is right)
Quote:

id || name || desc || date || time || alertone || alerttwo || alertthree || alertonetime || alerttwotime || alertthreetime


2 || Test of one event. || 0 || 7/25/2008 || 0 || 7/25/2008 || 0 || 0 || 8:46 || 0 || 0


So, does anybody know how to fix this? And sorry for the Pastebin.
mathiaus
Pastebin is good Smile


Sorry to ask the obvious but you do have more entries in the db right for the day after?
Diablosblizz
Haha, whoops. I apologize for that, that TOTALLY slipped my mind. Thank you for that. I also have a new problem. I asked on Yahoo Answers! if net send could have line break. In MSDOS, the command would be ^T - which is actually just CTRL + T but I can't figure out how to do this in PHP.

I was told that chr(13) is something that may help, but that just changes the file to a square, not what I need it to be.

As you can see in the Pastebin code, I tried adding it to the body of the net send, although it miserably fail.

Does anybody know how I can fix this and actually get the line breaking to work?
mathiaus
Laughing


Either;
1 - http://pastebin.com/m6e7eef58
2 - http://pastebin.com/d790e07f8
Diablosblizz
First one just adds a line, and does not include it in the command.
Second one is dead. Sad

Thanks for support though.
Related topics
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.