Page 1 of 1

what seems to be wrong here?

Posted: Tue Jul 13, 2010 7:53 pm
by gillypogi
newbie here! i dont know how to debug this problem. will somebody please help me out? :)

Code: Select all

$con = mysql_connect("localhost","root","");
	if (!$con)
	  {
	  die('Could not connect: ' . mysql_error());
	  }
	mysql_select_db("internalsurvey", $con);
	
	//SQL function to get new respondent number
	$Resp = msql_query("SELECT COUNT(respondentNo) FROM Answers");
	$Resp = $Resp + 1;.
I get a message that says:
Fatal error: Call to undefined function msql_query()

i hope someone can help me. thanks :)

Re: what seems to be wrong here?

Posted: Tue Jul 13, 2010 8:01 pm
by califdon
Read your code closely. msql is not the same as mysql.