Jessica
Staff Alumni-
Posts
8,968 -
Joined
-
Last visited
-
Days Won
41
Everything posted by Jessica
-
How To Output Multidimensional Array , With For Loop ?
Jessica replied to printJimy's topic in PHP Coding Help
print_r is my favorite PHP function.- 23 replies
-
- multidimensional arrayphp
- for loop
- (and 1 more)
-
Retaining Drop Down Select Values After Submitting A Form
Jessica replied to kdigital's topic in PHP Coding Help
You'll need to run the posted value through htmlentities before trying to compare it to a value that is already encoded. -
ONE BILLION DOLLARS
-
Apparently OP isn't aware of prepared statements.
-
It would seem its not
-
Good idea, make what I wrote but way harder to read.
-
Well known and established free site that's been around forever = random site you need to pay for...in what universe?
-
Object Oriented Programming Or Traditional Coding?
Jessica replied to mostafatalebi's topic in PHP Coding Help
And being called an "elitist" and a "snob" gets on my nerves, oh, every time. "Expert" programmers have been there done that and MADE those mistakes, and it seems you forgot that. Drop the name calling and the attitude, and maybe you'll stop thinking of people with more experience as snobs and elitists, and realize that just like you, they're giving their opinion based on experience. -
Object Oriented Programming Or Traditional Coding?
Jessica replied to mostafatalebi's topic in PHP Coding Help
Whatever dude. Sorry someone pissed in your wheaties or whatever. -
Object Oriented Programming Or Traditional Coding?
Jessica replied to mostafatalebi's topic in PHP Coding Help
First of all, I think you need to calm down - I'm not being a snob. You keep attacking me personally saying *I* fail or I'm a snob. I haven't said one rude thing to you. Knock it off. This is a thread where people are going to post opinions and debate the merits. If you can't handle someone asking you to defend your posts without freaking out, maybe the internet isn't the place for you. Trying to be snarky and calling people "non programming computer science elitist" is rude and uncalled for. CHILL. Secondly - ALL of the things you listed have to do with ABSTRACTION not OOP. Do you understand what abstraction is? Having worked on too many "professional" projects that use OOP which are just as gluey and cobbled together as any newbie's procedural project, I can tell you that OOP does not magically solve any problems a beginner will run into. In fact, starting out trying to do a project from scratch entirely in OOP is going to cause more problems in the long run for the OP. Now, he said he's familiar with OOP from other languages, so he'll probably be fine. The scenario you described was a beginner to programming, who didn't know the difference between an object and a hole in the ground. OOP is great. It can definitely help in a lot of ways. However, it's important to realize that it is not the be-all end-all solution to BAD PROGRAMMING. You can write crappy, messy, bad code in OOP easier than in procedural. You can write great code easier than in procedural. OOP will not fix a beginner's mistakes. It will amplify them. -
Object Oriented Programming Or Traditional Coding?
Jessica replied to mostafatalebi's topic in PHP Coding Help
You can reuse procedural code just as easily as objects. What you're talking about is abstraction, not OOP. Explain HOW OOP was beneficial to your project. -
One dimensional array: $foo['bar'] = 'foobar'; Two dimensional array $foo['bar'][1] = 'foobar1'; Three dimensions $foo['bar'][1][$arg] = 'foobar1arg'; etc. $holidays = array(); $holiday = array(); $holiday['name'] = 'Christmas'; $holiday['month'] = '12'; $holiday['day'] = '25'; $holiday['celebrateEve'] = true; $holiday['phrases'] = array('Ho Ho Ho!', 'Merry Christmas!', 'Joy to the World!'); $holidays[] = $holiday; echo '<pre>'; print_r($holidays); Run that and see if you get it now. Add to it.
-
.net is always the answer.
-
Yes, your post. What the OP asked for can be done entirely in MySQL, and probably should be. Furthermore, your query uses !> which is invalid syntax. You also used the wrong column name. OP: As an aside, there's no obvious reason to use LIKE on the live column, just compare it with = .
-
Object Oriented Programming Or Traditional Coding?
Jessica replied to mostafatalebi's topic in PHP Coding Help
The exact same thing can be said about an application that is entirely done in OOP - OOP stuff can easily be as bad if not worse than procedural. The problem in your application was not the lack of objects. -
See the link in my signature.
- 2 replies
-
- phpparameter
- boolean
-
(and 2 more)
Tagged with:
-
You need to start using descriptive variable names.
-
Use an ol instead...
-
Which Framework For Generating Crud On A Wampserver Setup?
Jessica replied to Jessica's topic in Frameworks
*CI. Can't edit a post on the phone? Lamez -
Which Framework For Generating Crud On A Wampserver Setup?
Jessica replied to Jessica's topic in Frameworks
I actually downloaded that last night and played with it, it uses CITY.