Jump to content

Sturm

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Sturm's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Notice: Undefined index: submit in /home/www/vazov.net/php2/insert_into_database.php on line 4 No data was passed in red,this is your way,it gave me an error
  2. Warning: mysql_query() [function.mysql-query]: Access denied for user 'anastasov'@'82.197.131.40' (using password: NO) in /home/www/vazov.net/php2/insert_into_database.php on line 10 Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/www/vazov.net/php2/insert_into_database.php on line 10 Query failed: Access denied for user 'anastasov'@'82.197.131.40' (using password: NO) it gives me this error,with the semicolon red,you're way,didnt work either.it gave me an error.sorry... can somebody please help me with this...? :-\ thanks to everybody,keep triyng...
  3. Semicolon...? write it for me
  4. <?php include('config.php') // needed for db connection. if (isset($_REQUEST['submit'])) { $number = $_REQUEST['number']; $comment = $_REQUEST['comment']; $date = $_REQUEST['date']; $query = "INSERT INTO databse(number,comment,date) VALUES('$number','$comment','$date')"; $result = mysql_query($query) or die('Query failed: ' . mysql_error()); } else { die('No data was passed in'); } ?>
  5. Parse error: syntax error, unexpected T_IF in /home/www/vazov.net/php2/insert_into_database.php on line 4 ??? :'( ??? :'(
  6. http://www.vazov.net/php2/insert_into_database.php it gives me this error,everything else works like a charm.please help for this error.
  7. snowdog,i have only 1 question.the submit button has to put them in the TABLE,in the DATABASE.and i have config.php with all the info fot my MYSQL_HOST,PASS,ACC etc.dont i have to put include in the html so it knows what the server and username etc. are? :-\
  8. hi everybody.i need help with a submit button.i want to have 3 submit fields,and a submit button,please tell me how to do this.my other question is how to connect this submit button info,to be written in a table in my Database.i have 3 fields in the table in my DB-"number", "comment" and |"date",if this could be of any help.please justt tell me the code,because i have very little time to do this,my computer is at stake! :'( if i had more time,i wouldn't have asked you. if you have any other questions,write here Thank you VERY MUCH!
  9. hello everybody.i have a couple of problems that need urgent solving.first of all- I AM A TOTAL NOOB at PHP! how can i make information from a submit button e.g. | 0123456789 | test1| 2007-99-99| |SUBMIT| get written in a table that is in my MySQL.Please write the code and where i have to replace stuff.
×
×
  • 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.