CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Retrieve database last record value

Print topic Send  topic

Author Message
profmysd

Posts: 3
Posted: 07/13/2005, 12:29 AM

I'm having a problem on retrieve database value.

Table:work_request
Field:req_id, req_no, req_date,...

How am I going to retrieve the req_id last record value? req_id is a primary key for this table.

When I used, retrieve control value it just take the first value in the record???

Please, need help. Thanks.
_________________
profmysd
View profile  Send private message
dsafar
Posted: 07/13/2005, 4:57 AM

If you are using mysql use this php function - mysql_insert_id (use the
after insert event) . If you're using other databases, google it with
database name and last inserted record..
"profmysd" <profmysd@forum.codecharge> wrote in message
news:542d4c2f51152b@news.codecharge.com...
> I'm having a problem on retrieve database value.
>
> Table:work_request
> Field:req_id, req_no, req_date,...
>
> How am I going to retrieve the req_id last record value? req_id is a
> primary
> key for this table.
>
> When I used, retrieve control value it just take the first value in the
> record???
>
> Please, need help. Thanks.
> _________________
> profmysd
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.