Search found 13 matches
- Wed Mar 25, 2009 8:20 pm
- Forum: PHP - Theory and Design
- Topic: All my classes and methods are public static, do I suck?
- Replies: 5
- Views: 738
All my classes and methods are public static, do I suck?
Hi guys, I am just wrapping my head around OOP in php and it is working quite well form me and my code is becoming much more manageable and shorter as a result. The only problem I have is that my brain can't understand why I would need to instantiate objects :? . All the methods in my classes are pu...
- Wed Mar 25, 2009 6:02 pm
- Forum: Databases
- Topic: Properly allowing concurrent UPDATEs in MySQL???
- Replies: 7
- Views: 792
Re: Properly allowing concurrent UPDATEs in MySQL???
Thanks everyone, I hadn't checked the post in a while. I really appreciate the input. Thanks!! some users might leave the web page open on their screen and go out for meetings I was thinking of making the session timeout to address this problem. Or improperly leave the page by, say, turning off thei...
- Sat Mar 14, 2009 10:21 pm
- Forum: Databases
- Topic: Properly allowing concurrent UPDATEs in MySQL???
- Replies: 7
- Views: 792
Properly allowing concurrent UPDATEs in MySQL???
Hi all, I have search the forum but haven't found a post that addressed my questions. I have a client that has requested a database that will keep track of a small private school. Their requirements are fairly simple for the most part: keeping track of student attendance and keeping track of various...
- Tue Jan 27, 2009 3:00 am
- Forum: General Discussion
- Topic: Apache rewrite to Zues rewrites
- Replies: 0
- Views: 318
Apache rewrite to Zues rewrites
Hi everyone, Not sure where to post this, but I'm hoping someone will find it helpful. Please move it to the appropriate section if you can. I just finished writing a site intended for Apache then the client purchases hosting that runs Zeus (whatever that is). Needless to say that the .htaccess I wr...
- Fri Jan 23, 2009 12:57 am
- Forum: PHP - Code
- Topic: htmlentities() will not work with my array
- Replies: 4
- Views: 281
Re: htmlentities() will not work with my array
Thank you kindly gents. The reference tips worked brilliantly.
- Thu Jan 22, 2009 10:12 pm
- Forum: PHP - Code
- Topic: htmlentities() will not work with my array
- Replies: 4
- Views: 281
Re: htmlentities() will not work with my array
ah, thanks for that Connor.
I'll look into it. I thought I had left references behind with other languages. I guess not.
I'll look into it. I thought I had left references behind with other languages. I guess not.
- Thu Jan 22, 2009 9:42 pm
- Forum: PHP - Code
- Topic: htmlentities() will not work with my array
- Replies: 4
- Views: 281
htmlentities() will not work with my array
Hi guys, I am trying to write a function that will take an array of strings and clean them up for secure input into the database. So fa I have as follows: <?php function safe_input($params) { if(is_array($params)) { foreach($params as $key => $string) ...
- Thu Jan 22, 2009 9:37 pm
- Forum: PHP - Code
- Topic: Mod Rewrite Rule appending to css js and images paths
- Replies: 7
- Views: 559
Re: Mod Rewrite Rule appending to css js and images paths
Thanks for you help guys. Immensely appreciated. This forum by stretches of the universe has a better (in number and quality) response rate.
Much appreciated. It seems that when I uploaded to the live server for testing it somehow worked.
I am terrified because I have no clue what the heck happened.
Much appreciated. It seems that when I uploaded to the live server for testing it somehow worked.
I am terrified because I have no clue what the heck happened.
- Tue Jan 20, 2009 12:10 am
- Forum: PHP - Code
- Topic: Mod Rewrite Rule appending to css js and images paths
- Replies: 7
- Views: 559
Mod Rewrite Rule appending to css js and images paths
Hi all, I am having some problems with my implementation of rewrite rule. I have the following code in my .htaccess: RewriteEngine On RewriteBase / RewriteRule ^food/([0-9]+)$ index.php?view=show_category&id=$1 [L] RewriteRule ^vision$ index.php?view=vision [L] following is my css and it is ...
- Fri Jan 16, 2009 8:36 am
- Forum: PHP - Code
- Topic: Dynamically create a (3 level menu) from array PHP
- Replies: 6
- Views: 964
Re: Dynamically create a (3 level menu) from array PHP
Well, as helpful as you've been I hope you get that glass of water! Go England!!!
- Fri Jan 16, 2009 8:00 am
- Forum: PHP - Code
- Topic: Dynamically create a (3 level menu) from array PHP
- Replies: 6
- Views: 964
Re: Dynamically create a (3 level menu) from array PHP
WOW! Thank you immensely Mark.
That worked wonderfully. Now I have to learn it and understand the logic.
If you are ever in the Melbourne, Australia give me a yelp and we'll
go for a beer... my treat.
Thanks again so much.
That worked wonderfully. Now I have to learn it and understand the logic.
If you are ever in the Melbourne, Australia give me a yelp and we'll
go for a beer... my treat.
Thanks again so much.
- Fri Jan 16, 2009 7:18 am
- Forum: PHP - Code
- Topic: Dynamically create a (3 level menu) from array PHP
- Replies: 6
- Views: 964
Re: Dynamically create a (3 level menu) from array PHP
Hi mattpointblank, thanks for your lightning fast reply. So you say that I should restructure it as: # $items = array( array('id' => '1', 'pid' => '0'), array('id' => '2', 'pid' => '0'), array('id' => '3', 'pid' =...
- Fri Jan 16, 2009 7:02 am
- Forum: PHP - Code
- Topic: Dynamically create a (3 level menu) from array PHP
- Replies: 6
- Views: 964
Dynamically create a (3 level menu) from array PHP
Hi all, I'm still wrapping my head around PHP and enjoying learning the language. I have reached a part that challenges my intelligence (or lack thereof). I would like to generate a 3 level drop down menu with the information stored in the following array. The following array is as follows: $items =...