Jump to content

wirehopper

Members
  • Posts

    385
  • Joined

  • Last visited

Everything posted by wirehopper

  1. Setting a higher price often increases the perceived value of a product or service.Think about when you go shopping - you look at several products, and if you want something good, it's easy to assume that the more expensive product will be of higher quality, based on price.I'm not saying that paying more is a sure way to get a better product - but don't undersell your skills and services - you may be able to make more money faster if you pay yourself fairly.
  2. From: http://www.php.net/manual/en/session.examples.basic.phpThe keys serve as identifiers, so it's really much better and easier to use descriptive text than a number.
  3. If the site visitor can read the page, are the errors relevant?
  4. wirehopper

    Slashes Problem.

    I'd address the issue at the database level, not within the code.If you're comfortable with commandline mysql (mysql -uuser database -p), or phpMyAdmin, use them to update the data in the database.
  5. The hourly rate for US-based web developers probably ranges from about $15 - $35+ an hour, obviously depending upon experience, education, and skill.Since you're in high school, you're probably on the lower end of the pay scale (regardless of whether that's fair or not).Think about how many hours you're putting into the project and calculate your hourly rate, then decide whether you think it's fair by comparing it with other opportunities.You might not be doing this for money, but for experience, in which case, part of the compensation is the chance to practice your skills and include them in a portfolio.You might want to look into systems like http://concrete5.org, http://wordpress.com, hosted service solutions that you can just set up and turn over to your clients. That allows you to deliver a powerful site in a very cost effective manner.I didn't look at the site. $100 isn't nearly enough for a site that the client can maintain themselves. I'd put a minimum at $1000. Many web companies charge $150-$200+ an hour - but - that covers expenses you don't have, like an office, health benefits, etc.
  6. wirehopper

    integer or not

    From the aforementioned link.
  7. For CAPTCHA to work, the server has to check the value submitted against what it expects.This is a nice solution.http://www.google.com/recaptcha
  8. http://www.w3schools.com/jsref/jsref_parseint.aspnum = new Array();sum = 0;for (i = 0; i < numbers.length; i++) sum+=num=parseInt(numbers);
  9. I agree with justsomeguy - put an id on the table, and add classes only for those cells that require special styling.There was a state park camping reservation system that had a massive table full of inline style attributes. The page was 300K. Once they cleaned up the HTML, it was 100K. This was back when 1M was considered high-speed. The point is that with dynamic tables, it is easy to generate more code than you need.
  10. wirehopper

    will it be safe?

    Use post for login data, adding SSL would be even better.
  11. You can also add a hidden input - spam bots will usually complete the input, humans won't.
  12. <input type="text" name="email" size=40 value="someone@domain.com" />Your form is going to get abused by spammers.Add some CAPTCHA or other protection.
  13. Go for it.Use or create a blog and post whatever you want.You never know what will happen.You'll also learn more as you explain what you've done, and you'll have a web presence that is excellent for web professionals.The primary investment is time, not money, and if you get tired of it, you can just leave it or shut it down.Have fun!I have a technical blog and a personal blog. I don't have much time for either - but every now and then I post stuff. Spam actually draws many hits from search engines, and my technical notes draw traffic as well.
  14. if (isset($foo[$x])) $value=$foo[$x];else $value='bar';
  15. Another option is to use namespaceshttp://www.codeproject.com/KB/scripting/jsnamespaces.aspxI usually have a few globals.
  16. <?php header('location:newpage.php'); exit(); ?>
  17. http://us.php.net/manual/en/function.in-array.php#99294
  18. Check this out: http://dev.mysql.com/doc/refman/5.1/en/load-data.html
  19. I use vim, because that way, I'm comfortable on most servers, even if I don't have time (or permissions) to install custom software or FTP from/to a PC.
  20. You can't remember all the code - there's too much.Start with a good book if you haven't already - I like the HeadFirst books.Then - use the following resources:http://w3schools.com - XHTML/CSS/javascripthttp://php.net - PHPhttp://mysql.com - MySQLhttp://ss64.com - Linux/bashhttp://httpd.apache.org - ApacheAnd - as niche mentioned, post questions here.Good luck
  21. Set the timezone like so ini_set('date.timezone','Europe/Helsinki'); in the beginning of the script.Another option would be to use .htaccess and set it like so:php_value date.timezone 'Europe/Helsinki'Or set it in /etc/php.inidate.timezone = 'Europe/Helsinki'http://www.php.net/manual/en/configuration.changes.php
  22. phpMyAdmin does have an SQL mode, where you can type in SQL directly.That helped me learn SQL, because I'd run the query using phpMyAdmin, then look at the SQL and change it to suit my needs.Now I just use the command line interface, mysql -uuser database -p.The command line has a good help system, which includes links to the documentation.
  23. No offense, but did you check to see if the files were on the server?Also - you could use:<FilesMatch (articles|category|cart_showproduct)>ForceType application/x-httpd-php</Files>http://httpd.apache.org/docs/current/mod/c...html#filesmatch
  24. Split the pages to a terms page and a registration page. It will help preserve your sanity in the future.
×
×
  • Create New...