On 30 May 2011 22:31, Nazish naz...@jhu.edu wrote:
Hi all,
I've run into a little barrier, and I'm wondering whether you have any
insights. I'm entering values into a MySQL database. Before running the
mysql_query, I'm checking if the value already exists (using mysql_num_rows
== 0). If the
try this instead..
if(mysql_num_rows($check) 0) {
//true
} else {
//false
}
and yes, Peter's right... please dont make everything die().
Karl
On May 30, 2011, at 3:43 PM, Peter Lind wrote:
On 30 May 2011 22:31, Nazish naz...@jhu.edu wrote:
Hi all,
I've run into a little
That did the trick: I was over-enthusiastic in my usage of die(mysql_error).
I initially used mysql_error to troubleshoot another problem (which has now
re-emerged), but that's a different question which is puzzling me. The error
message ($alert = Username already exists!;) displays on the page
Code runs smoothly now, thanks. It's always great to pick up diverse coding
tips through the conversations here.
2011/5/30 Nazish naz...@jhu.edu
That did the trick: I was over-enthusiastic in my usage of
die(mysql_error).
I initially used mysql_error to troubleshoot another problem (which