swatkins

Norman, OK

mesonet.org

Age: 38

Interactive Web Developer at Oklahoma Mesonet

1d
answered jQuery Works in Fiddle and at the Bottom of Page, but Not With Dynamic (jQuery Generated) Content
1d
comment Ajax/PHP value not incrementing more than once
Have you taken a look at the ajax request in developer tools? Is votes sent to the PHP script correctly?
May
15
comment codeigniter default upload directory
You might try this one: stackoverflow.com/a/990405/844726
May
15
answered How to use Yahoo weather API with CodeIgniter
May
14
comment Optimizing for loop in php
One query that returns 1000 rows is much less expensive than 2000 queries that return 1 row.
May
8
comment set checkbox codeigniter not populating fields
Great. Well if you feel my answer helped to solve your problem, could you mark it as accepted?
May
7
comment set checkbox codeigniter not populating fields
I didn't realize that you needed to loop both. I'm not a big fan of "loops within loops" - so I would probably create an array of agency sector ids (maybe with array_map), then check if the $sectors->ID is in the new array with in_array
May
7
comment set checkbox codeigniter not populating fields
Yeah, that should do it.
May
7
comment set checkbox codeigniter not populating fields
just check to see if the values match, then set the checked state on the checkbox - I've updated my answer with that solution.
May
7
revised set checkbox codeigniter not populating fields
added 916 characters in body
May
7
comment set checkbox codeigniter not populating fields
Right, I just tested it too. I just read @Raidenace's answer and after looking at the docs (Permits you to display a checkbox in the state it was submitted.) - it seems that is the correct answer. set_checkbox is not designed to decide to select a checkbox based on a value, but by the $_POST value of that particular checkbox item.
May
7
answered set checkbox codeigniter not populating fields
May
7
comment Creating HTML from server vs creating HTML with javascript
Start complaining RIGHT AWAY!!! If they are a web agency, then they should be able to remedy this. I'd assume they're just pushing things out the door with as little resistance as possible, and instead of taking the time to create the semantic HTML, they're trying a blanket approach to style their code.
May
6
revised How to stock my Mustache / Handlebars templates in separate files?
added 5 characters in body
Apr
30
answered Getting nested data attributes with jQuery
Apr
30
awarded Informed
Apr
30
awarded Nice Answer
Apr
23
comment Correct url to CodeIgniter controller from kendo datasource
So you should have a customers controller at [my website]/cabinet/application/controllers/customers - with a method called get_customers. Is that correct?
Apr
22
comment Codeigniter Cms Login Issue
You don't. You ad the user through the registration methods of the codeigniter site.
Apr
19
comment Search function with PHP MVC not working
The code as written looks correct - I'm guessing it's something in the actual query. Try getting the actual sql query with echo $remedyDb->last_query(); - run that query against your database manually and see if you get an error.
1 2 3 4 5