Code runs smoothly now, thanks. It's always great to pick up diverse coding
tips through the conversations here.
2011/5/30 Nazish
> That did the trick: I was over-enthusiastic in my usage of
> die(mysql_error).
>
> I initially used mysql_error to troubleshoot another problem (w
just fine, this we know
already.
Moral: don't use ' or die();' for anything else than hands on debugging
purposes
Regards
Peter
2011/5/30 Peter Lind
> On 30 May 2011 22:31, Nazish wrote:
> > Hi all,
> >
> > I've run into a little barrier, and I'm wonde
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 value already exists in the database, the page will echo
Thanks! Even with the typo, the issue was resolved with your helpful
comments!
Thanks also for the pointer on using mysql_real_escape to 'sanitize' the
user input, it's definitely become a part of my coding.
On Mon, Feb 21, 2011 at 8:22 AM, Daniel Brown wrote:
> On Sun, Feb 20, 2011 at 16:43,
Hi there,
I am creating a login page for my website. The users' information will be
stored in a MySQL database. I have a registration form on my home page, and
a separate file called "login.php" to process the user values. However, the
entries are not going to the MySQL database (even though the v