Jump to content

Kustom_Vegas

Members
  • Posts

    17
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Kustom_Vegas's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. move_uploaded_file is not in the code that you posted
  2. I beleive that the max number of concurrent connections is defaulted at 50 This can be changed in your php.ini file, look for "smtp_accept_max"
  3. woah that alot of code to sort though 1. dont't use $PHP_SELF for the action of your form, leads to XSS injection...one option is to use "#" instead... http://www.google.com/#sclient=psy&hl=en&source=hp&q=xss+injection+php_self&aq=f&aqi=&aql=f&oq=&pbx=1&bav=on.2,or.r_gc.r_pw.&fp=fce33a84b0764b22&biw=849&bih=200 2. you will want to use move_uploaded_file to move the uploaded file to a specifeid directory and an INSERT statement to insert the file path into your db table
  4. in your insert statement, you are telling it to insert 5 columns, but only specify 4
  5. remove the complex syntax as it is not needed.. $query = "SELECT * FROM coupons WHERE coupon_code = '$coupon'"
  6. just list the table references like so SELECT * FROM t1 LEFT JOIN (t2, t3, t4) ON (t2.a=t1.a AND t3.b=t1.b AND t4.c=t1.c) //taken from dev.mysql
  7. look into using an INSERT SELECT statement http://dev.mysql.com/doc/refman/5.5/en/insert-select.html
  8. you will want to use a join.. http://dev.mysql.com/doc/refman/5.0/en/join.html
  9. yeah, refer to the code I posted above, you simply forgot a closing curly bracket
  10. profile->modify profile->personal messaging->change the setting that says "Notify by email every time you receive a personal message:"
  11. this is assuming that you are passing your form and validating your forma data with PHP and not JS, which I assume that you are
  12. if (mysql_num_rows($query) > 0) { echo 'This Coupon code has already been used. Please try again.'; } else {//......
  13. what i gave you is a form of a join, why do you need the word JOIN in the statement if my method works? But if you insist...here
  14. http://www.phpfreaks.com/forums/index.php?topic=37442.0
  15. for the first section, if that is your full code then you are missing a closing bracket as Andy pointed out. As for the second snippet of code, the first thing that I notice is that your opening php tag is not correct...should be <?php instead of <php That is if you pasted your code and didnt manually wirte it into the post
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.