Re: [PHP-DB] mysql_num_rows == 0

2011-05-30 Thread Nazish
Peter 2011/5/30 Peter Lind peter.e.l...@gmail.com 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

Re: [PHP-DB] mysql_num_rows == 0

2011-05-30 Thread Nazish
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

Re: [PHP-DB] Submitting data to MySQL database using HTML/PHP form

2011-02-21 Thread Nazish Zafar
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 danbr...@php.net wrote: On Sun, Feb 20,

[PHP-DB] Submitting data to MySQL database using HTML/PHP form

2011-02-20 Thread Nazish Zafar
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