This statement:
  
  $qry = mysql_query ($check) or die ("Could not match data
  because '.mysql_error() );

  should read:
  
  $qry = mysql_query ($check) or die ("Could not match data
  because ".mysql_error() );

 

Gregory Fox <[EMAIL PROTECTED]> wrote:
  I think your problem could be here:

You have:

$query='INSERT INTO registration VALUES (",
  '$username','$email', '$password','$first', '$family','$gender',
  '$birth', '$address', '$city', '$state', '$country','$phone')";

Try:

$query="INSERT INTO registration VALUES ('',
  '$username','$email', '$password','$first', '$family','$gender',
  '$birth', '$address', '$city', '$state', '$country','$phone')";


Sincerely,
Greg
--
Gregory D. Fox * Liberty Web Hosting & Design
Toll Free: 866-269-0676 * Fax: 401-828-7057
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|    Providing Internet Solutions Since 1996      |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



  _____ 

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of Asif Ali
Sent: Wednesday, April 19, 2006 7:51 AM
To: [email protected]
Subject: Re: [php-list] Parse error: parse error, unexpected T_STRING in
/home/public_html/register.php on line 30


hi...
   i hope the problem is in this line
  
   $qry = mysql_query ($check) or die ("Could not match data
  because '.mysql_error() );

You are passing ur custom message and started with double codes and closed
with single code.
    I hope ur problem will be solved.
  
  Thanks
  
  
  Mohd Asif ali
  www.phptub.com
  
  
 
Olunkwa Ikechukwu <[EMAIL PROTECTED]> wrote:
  Hello Everyone
  It's me Iyke
  I need your help on a script, its supposed to collect user registration
and store in mysql database.
  but I get
  Parse error: parse error, unexpected T_STRING in
/home/public_html/register.php on line 30
  Here's the code
  ================================
  <?
  include ("password.php");
  include ("db_connect.php");
  $username=$_POST ['username'];
$email=$_POST ['email'];
$password=$_POST ['password'];
$first=$_POST ['first'];
$family=$_POST ['family'];
$gender=$_POST ['gender'];
$birth=$_POST ['birth'];
$address=$_POST ['address'];
$city=$_POST ['city'];
$state=$_POST ['state'];
$country=$_POST ['country'];
$phone=$_POST ['phone'];
 
//check if the username is taken
  $check = "SELECT id from registration WHERE username =
  '".$POST ['username']."';";
    $qry = mysql_query ($check) or die ("Could not match data
  because '.mysql_error() );
    $num_rows = mysql_num_rows ($qry);
    if ($num_rows !=0)
{
  // i think below shoul be the line 30
  echo "sorry, The Username $username is already
  taken.<br>";
  echo "<a href="" Again</a>";
exit;
}else{
   //insert data
    $query='INSERT INTO registration VALUES (",
  '$username','$email', '$password','$first', '$family','$gender',
  '$birth', '$address', '$city', '$state', '$country','$phone')";
    mysql_query($query);
  }
  mysql_close();
  echo "We will contact you with Your Account Information
  and Login Page";
?>

  ================================



I am a Sun, impatiently waiting for dawn.







           
---------------------------------
Blab-away for as little as 1¢/min. Make  PC-to-Phone Calls using Yahoo!
Messenger with Voice.

[Non-text portions of this message have been removed]



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

   
    Visit your group "php-list" on the web.
   
    To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
   
    Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

   
---------------------------------
 



                 
---------------------------------
Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.

[Non-text portions of this message have been removed]



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


     
*      Visit your group "php-list <http://groups.yahoo.com/group/php-list>
" on the web.
 

*      To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
 

*      Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> .


  _____ 




[Non-text portions of this message have been removed]



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

   
    Visit your group "php-list" on the web.
   
    To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
   
    Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

   
---------------------------------
 



           
---------------------------------
Love cheap thrills? Enjoy PC-to-Phone  calls to 30+ countries for just 2¢/min with Yahoo! Messenger with Voice.

[Non-text portions of this message have been removed]



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




Reply via email to