wirenut Posted April 19, 2006 Share Posted April 19, 2006 I'm using Frontpage 2003, with Godaddy host. I'm not sure if it is Frontpage or godaddy host but I've copied some script and tried them and I keep getting Parse errors:The insert program below keeps getting the error Parse error: parse error, unexpected $ on line 27Can someone help? I'm looking for insert and select scripts that would be easy to modify<?php /* Make connection to database *///Connect To Database$hostname="**************";$username="*********";$password="**********";$dbname="***********";$usertable="*****";$$logon = "****";$pass = "*****";mysql_connect($hostname,$username, $password) OR DIE ("Unable to connect to database! Please try again later.");mysql_select_db($dbname);$query = "INSERT INTO $usertable (user,password) values ('$logon','$pass');$result = mysql_query($query); ?> Quote Link to comment Share on other sites More sharing options...
Dobakat Posted April 19, 2006 Share Posted April 19, 2006 You are forgetting a " in:[code]$query = "INSERT INTO $usertable (user,password) values ('$logon','$pass');[/code]it should be as:[code]$query = "INSERT INTO $usertable (user,password) values ('$logon','$pass')";[/code] Quote Link to comment Share on other sites More sharing options...
wirenut Posted April 20, 2006 Author Share Posted April 20, 2006 Thank You DobakatI've went over and over this program and never seen the quote missing.It works now thanks to youThanks again. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.