[thelist] sql for mailing list verify

David Bindel dbindel at austin.rr.com
Thu Jul 25 21:43:01 CDT 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> -----Original Message-----
> From: NanHarbisonSmith at aol.com

> ........
> I don't use SQL for this, I use PHP:
>
> //see if the username is already in the db
> $Query1 = "SELECT USERNAME from $TableName where (USERNAME =
> '$username')"; ........

Nan, you must realize this:

The string that reads "SELECT USERNAME from $TableName WHERE ..." is
in fact............. SQL!!!

SQL stands for Structured Query Language, and that's exactly what
you're using even though you claim not to.  You are using SQL
commands everytime you call a PHP function that starts with "mysql_"
(like mysql_query, mysql_num_rows, mysql_fetch_array, etc., all of
which YOU USED IN YOUR PHP CODE!)  So yes, you do use SQL for it.

HTH,
David Bindel

-----BEGIN PGP SIGNATURE-----
Version: PGP 7.0.4

iQA/AwUBPUC2/bwc2umqeOxSEQLzPwCgh46H28xmg2OclZJVcuBnZW0nKCMAoKRt
UKa1+QRfqsqKXDzoBAVWln8+
=p3rg
-----END PGP SIGNATURE-----




More information about the thelist mailing list