php - Get the number of rows -


I need to get the number of lines of studentID and then count if the count is greater than 10.

This is what I have written so far. But does not seem to work.

  $ findID = ID1231275; $ Gipct = mysql_query ("SELECT COUNT (studentID) to classFees where studentID = '" $ findID. "' '); If ($ gipct> 10) {echo ("$ gipct"); }    

  $ searchID = 'id 1231275'; $ Gipct = mysql_query ("SELECT COUNT (studentID) classrooms as students where studentID = '$ searchID'"); $ Line = mysql_fetch_object ($ gipct); If ($ line-> Students & gt; 10) {echo $ row-> student; }   

The BTW, mysql_functions have been deprecated and can be removed in future versions, I recommend you see the PDF statement or the MyScal_Functions function.

Comments

Popular posts from this blog

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -

sql server ce - Is there some way to make sqlce3.5 and 4.0 co-exist in the C# project -