Re: [PHP] error handling

2005-04-12 Thread Petar Nedyalkov
On Wednesday 13 April 2005 08:46, Cima wrote: > hi, > > im working with php 4 and postgresql 8 and i would like to know how to > handle certain errors generated. in postgresql, i've written a stored > function that selects a record from a table and in case no record is found > i 'raise an exceptio

Re: [PHP] Defined constant in mysql_query - Question.

2005-04-12 Thread Petar Nedyalkov
On Wednesday 13 April 2005 04:37, Labunski wrote: > Hi, > Can I use Constant in mysql query like this: > > > define("LANG", "eng"); > mysql_query("SELECT * FROM data WHERE col = 'articles' ORDER BY > subjectLANG"); You can use: mysql_query("SELECT * FROM data WHERE col = 'articles' ORDER BY sub

<    1   2