Current location - Recipe Complete Network - Food world - There is a syntax error near line 1:' =' of the. net program startup prompt, but I really can't find the error! Urgent solution! !
There is a syntax error near line 1:' =' of the. net program startup prompt, but I really can't find the error! Urgent solution! !

there are two problems with this error report: the value of 1. Request["name"] is empty. 2. In the database, name is a string type, so there is something wrong with your sql statement. Take this statement to the database and it will be like this: select * from meishi where name= food name. So the sql statement should be written like this: String sqlstr = "select * from meishiwhere name ='"+request ["name"]+"'