Reply to Re: Why this error? mysql php

Your name:

Reply:


Posted by naixn on 12/03/06 21:13

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(AUTOINCREMENT). 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.
>

http://php.net/mysql-insert-id

--
Naixn
http://fma-fr.net

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация