Welcome Guest, Not a member yet? Register   Sign In
To those array experts
#6

(This post was last modified: 08-23-2015, 07:27 PM by RobertSF.)

I just took a look at the original code you posted. I hope I'm not missing something, but you know how your print_r statement executed twice, once for each time through the loop? In your view file, you also have to have a loop that goes through $data['dates2'], displaying one element/row at a time, until the screen is full or you run out of element/rows.
Hey, don't work without a PHP debugger. Several free IDEs have this features built in. Two are NetBeans and CodeLobster. Without a debugger, it's like you're driving with a blindfold on -- you are going to crash!
Reply


Messages In This Thread
To those array experts - by scoobie - 08-22-2015, 11:47 PM
RE: To those array experts - by jLinux - 08-23-2015, 12:21 AM
RE: To those array experts - by scoobie - 08-23-2015, 06:01 AM
RE: To those array experts - by pdthinh - 08-23-2015, 10:02 AM
RE: To those array experts - by scoobie - 08-23-2015, 04:20 PM
RE: To those array experts - by RobertSF - 08-23-2015, 07:26 PM
RE: To those array experts - by scoobie - 08-24-2015, 02:03 AM
RE: To those array experts - by RobertSF - 08-24-2015, 10:57 AM
RE: To those array experts - by mwhitney - 08-24-2015, 02:18 PM
RE: To those array experts - by scoobie - 08-26-2015, 03:46 PM
RE: To those array experts - by scoobie - 08-26-2015, 11:17 PM
RE: To those array experts - by RobertSF - 08-27-2015, 09:00 AM
RE: To those array experts - by mwhitney - 08-27-2015, 01:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB