You are here: Re: showerror() vs mysql_error() ..... difference « PHP Programming Language « IT news, forums, messages
Re: showerror() vs mysql_error() ..... difference

Posted by user on 01/17/07 16:31

Thanks to both of you.

Kimmo Laine wrote:
> "user" <someone@someplace.org> wrote in message
> news:6ogrh.739663$QZ1.371372@bgtnsc04-news.ops.worldnet.att.net...
>
>>Could someone give me the quick difference betweeen the 2 error functions
>>and why one should use one or the other.
>>
>>
>>
>>if (!mysql_select_db($database, $connection))
>>showerror();
>>
>>$connection = mysql_connect('mysql_host', 'mysql_user', mysql_password')
>>or die('Could not connect: ' . mysql_error());
>
>
>
> mysql_error is a built-in function, comes in the package, and showerror is
> something used only in the php project you are working with. Ask the person
> who wrote the script, it's not a common php function. It's possible that it
> has more sophisticated error handling than what mysql_error provides.
>

 

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

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