Why this error? mysql php

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

    Why this error? mysql php

    hi. My name is Bob and i'm from Brazil.

    i'm having a problem with my PHP code. Ok! I'll explain:

    post.php
    -------------
    users fill the form and press SUBMIT and sends data for put.php

    put.php
    -------------
    here i get the data with $_REQUEST. I put the data on the database
    table (mysql).
    Then i want to send an email for a group of people with a link that
    contains an 'id', like www.site.com/read.php?id=32
    This 'id' was automaticly generated when inserted data on the
    database(AUTOIN CREMENT). But i can't get this just added 'id'.

    So, the steps are:
    get data from form (OK)
    put data on database (OK)
    get the 'id' of this insert on database (FAIL)
    send email to a group of people (OK)
    How can i do this?
    Thank you for your time.

  • naixn

    #2
    Re: Why this error? mysql php

    fzmaster wrote :
    hi. My name is Bob and i'm from Brazil.
    >
    i'm having a problem with my PHP code. Ok! I'll explain:
    >
    post.php
    -------------
    users fill the form and press SUBMIT and sends data for put.php
    >
    put.php
    -------------
    here i get the data with $_REQUEST. I put the data on the database
    table (mysql).
    Then i want to send an email for a group of people with a link that
    contains an 'id', like www.site.com/read.php?id=32
    This 'id' was automaticly generated when inserted data on the
    database(AUTOIN CREMENT). But i can't get this just added 'id'.
    >
    So, the steps are:
    >get data from form (OK)
    >put data on database (OK)
    >get the 'id' of this insert on database (FAIL)
    >send email to a group of people (OK)
    >
    How can i do this?
    Thank you for your time.
    >


    --
    Naixn

    Comment

    Working...