www.webdeveloper.com
Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19

Thread: NEED PHP MYSQL HELP!!! - Thank you :)

  1. #16
    Join Date
    Aug 2007
    Location
    Leeds, Yorkshire, England
    Posts
    387
    Have you got phpMyAdmin?

    If so run your query through that to test.

  2. #17
    Join Date
    Oct 2009
    Posts
    7
    sorry, this is what ive got:

    PHP Code:
    $query "INSERT INTO MESSAGES (RECIPIENT, SENDER, DATE_1, SUBJECT, MESSAGE, STATUS, TYPE)
    VALUES ('
    $_POST[RECIPIENT]', '$_POST[SIGNATURE]', '$cur_date', '$_POST[SUBJECT]', '$_POST[MESSAGE]', 1, 2)";

    $result mysql_query($query) OR die(mysql_error());

    header'Location: /?sent=1' ) ; 
    it works, thank you for your help

  3. #18
    Join Date
    Oct 2009
    Posts
    658
    Don't forget to mark as resolved

  4. #19
    Join Date
    Aug 2007
    Location
    Leeds, Yorkshire, England
    Posts
    387
    Excellent.

    We'll send you the bill - lol

    Don't forget to read up about sql injection (as previously mentioned).

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles