Jump to content

AyKay47

Members
  • Posts

    3,281
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by AyKay47

  1. AyKay47

    HELP!

    well sure, what exactly do you want to know about it?
  2. yeah you're right it was a typo, I meant to write what you did.. im sorry :'(
  3. you will need a form with the enctype set to "multipart/form-data" with an input type of "file" so.. <form method="POST" action="#" enctype="multipart/form-data"> <input name="image" type="file" /> </form> you will grab this file with the $_FILES array instead of the $_POST array here.. then you will move the uploaded to file to a directory of your choosing using move_uploaded_file and store that file path into your db
  4. AyKay47

    HELP!

    messed up the pattern.. $pattern = '~^([\w\d\s,]+)(\(\d{3}\)\s*\d{3}-\d{4})~';
  5. there goes another echo
  6. so you want it to be a drop-down list instead of radio buttons? try this.. print "<select name='selections'>"; foreach($array as $value){ print "<option value='$value'>$value</option>"; } print "</select>"; which is pretty much what you have, just a little different...what exactly are you having issues with here?
  7. AyKay47

    HELP!

    $subject = "Hilton Newark Penn Station Fl 1, 1 Gateway Ctr, Newark, NJ (973) 622-5000 hilton@yahoo.com"; $pattern = '~^([\w\d\s,]+)(\(\d{3}\s*\d{3}-\d{4}\))~'; preg_match($pattern, $subject, $matches); foreach($matches as $match){ print "$match matches the pattern"; }
  8. AyKay47

    HELP!

    do you want the phone number too or just the address?
  9. your server is probably not configured for this then, you will need to contact you host about this issue
  10. The point was to start by communicating in a more professional manner. I know, was messing around.. OP, I would start by reading everything here.. http://php.net/manual/en/langref.php this is the complete documentation of PHP...they also have multiple languages if English isn't your first language
  11. Alright let's clean this up...don't capitalize the I's in your if statements..If should be if, simply for eticate.. Do not use $_SERVER['PHP_SELF']; as your form action, this can lead to XSS injection, you can google it if you want to learn more about it...in this case you will want to make the link a dynamic on with the correct id for what you are trying to do, since in your if conditional block you query depends on $_GET['id'], you will need to specify that in your code...you can make the action="script_name.php?id=$id" instead or something that doesn't involve PATH_INFO.. the code that you have should work if you make those changes..if not let us know...most likely what is happening is your query is actually running, but it isn't grabbing $_GET['id'] since you do not specify it in your form action
  12. where is this $_POST['delete'] coming from? I don't even see a form on the code that you posted... Edit: also you are using session_is_registered..which is deprecated..change to session_start(); if(isset($_SESSION['username'])){ header("location:../index.php"); }
  13. I would start by not posting like a 13 year old girl. well CV, what if she is a 13 year old girl?
  14. if the answer to the question that I asked is a yes, then yes post the new code please
  15. 1. what error(s) are you receiving in you error.log? 2. have you tried a simple test such as mail('email@test.com','test','a test message'); to isolate the SMTP server as the culprit?
  16. your isset condition needs to be met in order for the query to run, is it being met and this is happening?
  17. yeah you can use the line that has the or die(mysql_error()) to debug your query, just remove the first line so there is only one query being executed ..
  18. the main issue that I see here is that you are running your delete query twice, which will cause an error since it won't be able to find that id twice.. $result = mysql_query("DELETE FROM users WHERE id='$user_id'"); //you run it here $return = mysql_query($result) or die(mysql_error()); //and again here remove one of these 2 lines..
  19. $query = "select distinct fldCategory from games ORDER BY fldCategory DESC, ORDER BY fldDate DESC";
  20. you are using a variable in your mysqli query with improper syntax..
  21. you can look around the jquery site for what you need, this doesn't necessarily need to be done with jquery, but they have cool effects and such and make it easier on the code to use javascript with there functions.. http://jquery.com/ as for the javascript method, you can simply good something like "javascript disable link"
  22. I would store a row for each id, stating the locations of each..so you would have a row of id 3, and the fields would be the location of that id Edit: refer to Abra's post, basically same thing I am saying, with table structure examples etc...
  23. no problem, please mark this as solved..
  24. is_int will not work when checking for a $_GET value..everything sent to the $_GET array from the query string is in string format.. with the code that dragon_sa posted...you will always invoke the else condition...i would recommend changing to is_numeric instead...which checks for integers or string numbers
×
×
  • 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.