Reply to Re: Glitch in php or count() in mysql?

Your name:

Reply:


Posted by Ewoud Dronkert on 10/22/05 16:09

Schraalhans Keukenmeester wrote:
> $query = 'select count(*) from messagesdb;';
> $result = mysql_query ($query, $conn);
> $msgid = mysql_result ($result, 'count(*)') + 1;
>
> I know I could avoid the entire issue
> by autonumbering the messages

YES! (Btw, does the ; in the query not pose trouble?)

> but still there is something funny going on.

Concurrent updates perhaps.

--
E. Dronkert

[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

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