Welcome Guest [Log In] [Register]
Add Reply
Any PHP experts here?
Topic Started: Mar 27 2009, 06:30 PM (373 Views)
The Keith
Member Avatar

I'm having some trouble with Cutenews, the news script I'm using over at my site.

I have a write-line that writes to a file called users.db.php
Code:
 

fwrite($modified_users, "$old_users_db_arr[0]|$old_users_db_arr[1]|$old_users_db_arr[2]|$old_users_db_arr[3]|$old_users_db_arr[4]|$old_users_db_arr[5]|$old_users_db_arr[6]|$old_users_db_arr[7]|$old_users_db_arr[8]|".time()."||".$old_users_db_arr[11]."|".$old_users_db_arr[12]."|".$old_users_db_arr[13]."|".$old_users_db_arr[14]."|".$old_users_db_arr[15]."|".$old_users_db_arr[16]."|".$old_users_db_arr[17]."|".$old_users_db_arr[18]."|".$old_users_db_arr[19]."|".$old_users_db_arr[20]."\n");


But when certain people log in at certain times (seems to be random, I know it isn't though. I just can't find a pattern), a new line is added under theirs with blank ||||||||||'s or, if they have all fields filled out, just a blank line.

In users.db.php, every line is counted as a user...I can't have these meaningless lines. It's just...unclean :(
Websites are cool; click here to get one so people will know how cool you are
Offline Profile Quote Post Goto Top
 
Darksorrow131

need more info... what is the stuff in $old_users_db_arr?
(let loop () (loop))
((lambda (x) (x x)) (lambda (x) (x x)))
(let ((k #f)) (call/cc (lambda (cc) (set! k cc)) (k))
((call/cc call/cc) (call/cc call/cc))

-- Infinite loops are awesome! --
Tell me if you have other awesome infinite loops!
Offline Profile Quote Post Goto Top
 
The Keith
Member Avatar

User info
Websites are cool; click here to get one so people will know how cool you are
Offline Profile Quote Post Goto Top
 
PauloMillerz
Member Avatar

i don't understand what you are trying to do here?

Edit: Dude did u sort it?
Edited by PauloMillerz, Apr 5 2009, 02:18 PM.
If you like... RATE IT!! Add to my reputation to the left?
Quote:
 
Bidet to you sir!

Posted Image
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Web-Based Programming Support · Next Topic »
Add Reply

Banner and Logo by TheKeith