what seems to be wrong here?

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
gillypogi
Forum Newbie
Posts: 2
Joined: Mon Jul 12, 2010 7:40 pm

what seems to be wrong here?

Post 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 :)
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: what seems to be wrong here?

Post by califdon »

Read your code closely. msql is not the same as mysql.
Post Reply