KevinM1
Moderators-
Posts
5,222 -
Joined
-
Last visited
-
Days Won
26
Everything posted by KevinM1
-
Some sites that may help you out: Tutorials on just about everything: http://tutsplus.com/ Design specific tutorials and articles: http://960.gs/ http://www.colourlovers.com/ http://www.smashingmagazine.com/2010/02/25/designing-user-interfaces-for-business-web-applications/ http://net.tutsplus.com/site-builds/from-psd-to-html-building-a-set-of-website-designs-step-by-step/ http://www.tutorial9.net/ http://justcreativedesign.com/2009/05/19/web-design-polishing-tutorial/ I'm a bit of a bookmark nut.
-
A lot of templates suck. They use deprecated HTML and often use tables for layout. Also, why pay for something he can do for free and a little effort? To say nothing about him not learning anything about design if he buys his way out of the problem.
-
See: http://php.net/manual/en/language.references.return.php
-
You shouldn't be getting a web page expired error. Sticky forms (the kinds of forms that post back to themselves and retain user submitted info) are ubiquitous. Show your code.
-
$_POST['matType'] is itself an array. So just use the proper key: $_POST['matType'][6]
-
Are you sure it's a matter of assign_to_queue() not getting invoked and not a matter of your session variables being borked?
-
Okay, so black for a background color is definitely out. Use white for the body. Red is a good secondary color, but you should use a slightly lighter shade. Use it appropriately, as it's a bold color. You may or may not want a 3rd color. Black is a good choice for things like borders. A 4th color could also work. Light tan/beige is a natural fit. One hypothetical layout would be to have that light tan/beige as the body's background color. The width of the site's container would be a bit narrower, and the container would be white. This would allow the beige to show without it being the background color of your text. Red for the header, footer, and any title bars (look at how this forum does post titles with the gradient blue bars), and black for borders. Also, never rely on family members/friends to gauge your work. For one, they won't be critical out of fear for hurting your feelings. Second, unless they're designers, they won't know what to look for anyway. Finally, some clients (not just family) don't really get what a site is supposed to do for them. They think that so long as something, anything is online with their name attached, it will generate more business for them. It could be a .png of a leper in clown makeup, but, hey, they have a 'site'. These people are less interested in actually seeing their own site than the mere fact that it's online at all. Instead, post here or on other design forums. The responses you get have the potential of being harsh, but for the most part they'll be accurate.
-
What kind of decorating do they do? Interior? Exterior? Something specific?
-
Not sure if I like the black and crimson look. It's not a friendly, inviting motif, which runs counter to what a decorator's persona should be. The navigation is cute, but not precise. Lots of sliding going on if the mouse isn't positioned just so. It has the potential to be annoying. You can use a text/image combo. Look into (google) image replacement CSS techniques.
-
can an array created in a function be available outside?
KevinM1 replied to jasonc's topic in PHP Coding Help
explode will solve your issue. -
I don't see where you're calling news.php at all. I don't see any PHP code, either. Just HTML and JavaScript.
-
What are you trying to do with this part of your conditional: !is_numeric($date) !=1-1 ??
-
Show some code. Also, your "Site best viewed with..." content is broken. It appears glued to the right of the screen, at least in FF 3.6.6.
-
That sounds a lot more reasonable. You'll need to make it as clear as day that those that donate explicitly agree to have their contact info given out, and that they will be receiving a package from another donator. Also, you should ensure that the package isn't anything someone would want to steal. Even something like a coupon to McDonalds would most likely never get forwarded.
-
The situations aren't the same. eBay is a one-on-one transaction. eBay also has the explicit consent of both parties. The OP's situation is essentially drafting a work force for his plan, where the power is disproportionally distributed. User A not only receives all of the packages to send to the other people who donated, but their addresses as well. Is User A trustworthy? If not, the damage has the potential of being much worse than with eBay (or Craigslist, or any other similar service) because it can affect more than one victim.
-
And that's if they even want to forward the package(s) at all. Say 300 people donated - are you really thinking that sending all 300 packages to User A and relying on them to send the 299 remaining to User B is a good idea? To be honest, it sounds like whomever is starting/running this charity is in over their head. Relying on the people that donated to do the grunt manual labor as well is lazy, and even a bit insulting. It seems like very little planning has gone into this. Besides, good charities are run like businesses from the beginning - they know their own operating costs, and use a percentage of the donations received to pay for them, along with whatever grants and any other kind of government money they may be eligible for. These operating costs include things like the labor and cost of shipping these packages. Fake EDIT: A forum is much different than having unknown users attempt the same thing. A forum is a community itself, where members, even if they don't 'know' each other, can still somewhat trust each other. At the very least, they trust each other more than they trust an absolute stranger.
-
The code is checking to see if the month given has 28, 29, 30, or 31 days in it. See checkdate for more info.
-
Logic Behind a Thumbs Up/Down Voting System?
KevinM1 replied to Smudly's topic in Application Design
They probably have a column for both up and down votes in each item's db row. To order them, like, say Stackoverflow, it's simply a matter of ordering by the difference between each row's up and down votes. -
Just because you point your form to ayam_userinput.php, that doesn't mean your class will magically instantiate. You still need to do that yourself. You may want to rethink your design in any event. You gain nothing by wrapping a header redirect in an object's constructor.
-
Problems understanding some Object Orientated PHP
KevinM1 replied to j.smith1981's topic in Application Design
Hate to tell you this, but you're not on the right track. At all. First of all, pointers don't exist in PHP. Whatever it is you think you're doing, well, you're not. The '->' operator is akin to the '.' in other languages. $object->member in PHP is the same as object.member in other languages (Java, JavaScript, C#, etc.). So, you're not creating a pointer to anything when you use the arrow. Second, merely invoking an object's data member does nothing more than return the value of that member. $myNewClass->var1 merely returns the value of var1. Since you don't assign that value to another variable, or use it in another way, it's a useless statement. The same thing goes for the $myNewClass->var2 statement. It doesn't do anything. You're not constructing new objects. You're only accessing the guts of the one and only object you DID construct - $myNewClass. You imply that this code came from a book on PHP 6. You've been scammed. PHP 6 isn't even out yet. AFAIK, there isn't even an ETA on its release. Some of the proposed features have been placed in new versions of PHP 5 (I think the latest version is 5.3.2), Get yourself a good book on OOP for PHP - PHP Objects, Patterns, and Practice by Matt Zandstra. And, stay away from anything mentioning PHP 6. It's snake oil. -
check javascript turned off or on using php
KevinM1 replied to robert_gsfame's topic in PHP Coding Help
JavaScript should only be used to enhance existing functionality. If JavaScript is required for your site to work, you should redesign it. -
You'd have to access it via its static getInstance() method. Something like: $db = Database::getInstance(); // do stuff with $db Remember: with a Singleton, getInstance either instantiates the db and returns that new instance OR returns the existing instance. To get your hands on a Singleton's cookies, you need to call its static method.
-
Well, yeah. Whenever I hear about gaming mice, I think back to the little startup I was working for a few years ago. The kid in the office (18 year old) bought a gaming mouse which came with these little weight discs. They weighed practically nothing individually, and hardly anything perceptible when 3 or more were used simultaneously. He thought it was the coolest thing. I thought he wasted his money. But, I guess so long as some MLG guy the majority of the world has never heard of endorses one, 14-18 year olds will continue to buy them.
-
It still doesn't seem like it would do much. I mean, do pro gamers actually think "I would've won if I was imperceptibly faster?" Has any Counterstrike, Team Fortress, Modern Warfare match actually been decided by mouse speed?