Re: PHP / Mysql people question

2004-08-26 Thread Stuart Felenstein
ich has caused the "read > the manual" bar to > be pushed somewhat higher.] > > > -- Original Message -- > > From: Stuart Felenstein <[EMAIL PROTECTED]> > > To: [EMAIL PROTECTED], [EMAIL PROTECTED] > > Date: Thursday, August 26, 20

Re: PHP / Mysql people question

2004-08-26 Thread Stuart Felenstein
First let me say thank you for all the responses. Now, let me say I'm not sure what exactly I need to do. Explanation - Primarily I have absolutely no experience with PHP , but I can learn, so that's helpful :) The thing I'm trying to figure out is what I need to learn, because currently I'm develo

Re: PHP / Mysql people question

2004-08-26 Thread Dobromir Velev
Hi, First mysql_fetch_row() returns an array so it doesn't make much sense to compare it to 5. If you want to check tne number of records the query has returned you should use mysql_num_rows() - like this if(mysql_num_rows($result)>=5){ } or if you want to check the value returned by the query

Re: PHP / Mysql people question

2004-08-25 Thread jeffrey_n_Dyke
Thought earlier that I could get by on just plain SQL. > Php needed. I'm getting a parse error on the "if" > line. > This is supposed to be a trigger then before > transaction counts the number of rows , id already > inserted, if exceeded , kick back error message , halt > transaction. > Not s

PHP / Mysql people question

2004-08-25 Thread Stuart Felenstein
Thought earlier that I could get by on just plain SQL. Php needed. I'm getting a parse error on the "if" line. This is supposed to be a trigger then before transaction counts the number of rows , id already inserted, if exceeded , kick back error message , halt transaction. Not sure where I nee