more help please Sugapablo

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • MSM

    more help please Sugapablo

    Hello, Thank you for your response Sugapablo

    you responded to me by saying:

    You should go into your database directly, and create the table there.
    Use the PHP code to INSERT ot UPDATE data into the table.

    The form's ACTION should point to a .php page that executes the
    following:

    1) Reads the data from the form. Either $_POST or $_GET.
    2) Opens a connection to your database.
    3) Constructs a SQL statement to INSERT or UPDATE a table.
    4) Queries the database.

    OK here is where my Action points to showen below
    I am not sure what you mean by going into my database
    directly and creating my tables there. This my sound silly but where
    Do I create my DB. I thought that whats below was my db

    ie

    <?php
    $first=$_POST['first'];
    ?>

    for connecting to the db do i just place
    the @mysql_connect statement just above the code below.

    any help you could be would be wonderful. thanks so much.


    //

    <html>
    <head>
    <title>Title here!</title>
    </head>

    <body bgcolor="#fffff f" text="#654000" link="#cbda74" vlink="#808040"
    alink="#808040" >
    <br>
    <?
    print " <b> ".date("F d, Y")." <br>
    <br>
    ";
    ?>

    <?php
    $first=$_POST['first'];
    $last=$_POST['last'];
    $add=$_POST['add'];
    $city=$_POST['city'];
    $province=$_POS T['province'];
    $phone=$_POST['phone'];
    $phone2=$_POST['phone2'];
    $phone3=$_POST['phone3'];
    $make=$_POST['make'];
    $model=$_POST['model'];
    $year=$_POST['year'];
    $color=$_POST['color'];
    $cost=$_POST['cost'];
    $towing=$_POST['towing'];
    $subcontract=$_ POST['subcontract'];
    $enviromental=$ _POST['environmental'];
    $taxes=$_POST['taxes'];
    $date=$_POST['date'];
    $time=$_POST['time'];
    $lname =$_POST['lname'];
    $lname2=$_POST['lname2'];
    $total=$_POST['total'];
    $p_effort=$_POS T['effort'];

    ?>
    </body>
    </html>
Working...