You are here: last inser id query « PHP Language « IT news, forums, messages
last inser id query

Posted by Ashok on 12/21/05 03:49

How to make a statement where I have to query db and select all from table
where id = last insert id? I have to use the rows info to redirect to page
with this info.
Something like $query_rsRedirect = "SELECT * FROM table WHERE id =
LAST_INSERT_ID()";
and redirectpage will be
subcat.php?catid={rsRedirect.catid}&subcatid={rsRedirect.subcatid}

It shows a blank page, although data is inserted.

Ashok.

 

Navigation:

[Reply to this 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

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