Hi,

I see, you are correct.

Sincerely,
Mike
--
Mike Brandonisio                 *    IT Planning & Support
Tech One Illustration            *    Database Applications
tel (630) 759-9283               *    e-Commerce
[EMAIL PROTECTED]  *    www.techoneillustration.com


On Apr 19, 2006, at 8:14 AM, Pete wrote:

> In message <[EMAIL PROTECTED]>, Mike
> Brandonisio <[EMAIL PROTECTED]> writes
>> Hi,
>>
>> You have a double ; in your $check at the end.
>>
>>  //check if the username is taken
>>   $check = "SELECT id from registration WHERE username =
>>   '".$POST ['username']."';";
>>
>> I think it should be:
>>
>>       '".$POST ['username']."'";
>
> If username is fred, then the line
>>>   $check = "SELECT id from registration WHERE username =
>>>   '".$POST ['username']."';";
> will make $check contain
> "SELECT id from registration WHERE username = 'fred';"
>
> so I see nothing wrong with that line.
>
>
> Your example would give
> "SELECT id from registration WHERE username = 'fred'"
> which would normally work just as well.
>
>
>>
>> Sincerely,
>> Mike
>> -- 
>> Mike Brandonisio                 *    IT Planning & Support
>> Tech One Illustration            *    Database Applications
>> tel (630) 759-9283               *    e-Commerce
>> [EMAIL PROTECTED]  *    www.techoneillustration.com
>>
>
>>>  //check if the username is taken
>>>   $check = "SELECT id from registration WHERE username =
>>>   '".$POST ['username']."';";
>
> --
> Pete Clark
>
> Free advertising for your website, business, or organisation at:
> http://www.hotcosta.com/resources.php
>
>
>
>
> Community email addresses:
>   Post message: [email protected]
>   Subscribe:    [EMAIL PROTECTED]
>   Unsubscribe:  [EMAIL PROTECTED]
>   List owner:   [EMAIL PROTECTED]
>
> Shortcut URL to this page:
>   http://groups.yahoo.com/group/php-list
> Yahoo! Groups Links
>
>
>
>
>
>
>
>



Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list




SPONSORED LINKS
Php mysql Job postings


YAHOO! GROUPS LINKS




Reply via email to