Hi, There are at least two errors in your script: $query="insert into dene (day,start_time) values ("2003.09.25","22:30") " ; should be $query="insert into dene (day,start_time) values ('2003.09.25','22:30') " ; And if ($result)) should be if ($result) regards Henrik Hornemann > -----Oprindelig meddelelse----- > Fra: Mücella Erdem Efe [mailto:efe@boun.edu.tr] > Sendt: 26. september 2003 00:52 > Til: php-db@lists.php.net > Emne: parse error. > > > I am a new programmer of PHP4.3.3 an MySql 3.23 . > > When below script is executed > "Parse error: parse error, unexpected T_DNUMBER in c:\program > files\apache group\apache\htdocs\ilkdeneme21.php on line 17" > is being seen. > > This may be very simple but I could not solve it.Could you > help me for this > error? > Thanks for your attention.... > efe@boun.edu.tr > > > <? > $dbname = 'mycmpe'; > > mysql_connect("localhost","username"); > if (mysql_select_db($dbname)) > { echo "connected";} > else > { echo "not connected";} > > $query="insert into dene (day,start_time) values > ("2003.09.25","22:30") " ; > $result=mysql_query($query); > if ($result)) > { echo "data girildi";} > else > { echo "data girilemedi"; > exit;} > > ?> > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php