Thread: Newbiee Gah
View Single Post
Old 12-05-2007, 05:55 AM   #4 (permalink)
Tanax
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

Quote:
Originally Posted by Swordbeta View Post
First of all,you keep repeating <?php,you need to use this one.
I can't really say what's wrong since I don't speak your language but this is at least what I can say:
PHP Code:
if(isset($_POST['submit'])){ 
And I'm also not sure about the query:
PHP Code:
$query mysql_query("  INSERT INTO `protocol` SET `p_who` = '$who',`p_meeting` ='$meeting',`p_protocol` ='$protocol'"); 
Thanks, but it shouldn't be a problem, since checking for $_POST['submit'] is the same as checking if it's set o.O

THe query was no problem :) It's working

Quote:
Originally Posted by Wildhoney View Post
In addition to Swordbeta's post, I don't see a session_start() call in that script:

php Code:
<?php

/**
 * @author Tanax
 * @copyright 2007
 */


    session_start();

    include('config.php');
    include('header.php');
   
    mysql_connect('localhost', 'root', '');
    mysql_select_db('lemons')

    ...
OFCOURSE!!! It works now :D:D Wieee, thanks Adam! <3
Tanax is offline  
Reply With Quote