Jump to content

really need help in counting entered name in mysql for php


kinesh18

Recommended Posts

Here is an example

 


//select info from database
$sql = "SELECT * FROM tableName  some condition ";
// error if you have a problem
$resultSet = mysql_query($sql) or die (mysql_error());

// Check if info exists in database
if(mysql_num_rows($resultSet) > 0) {

// if selected info exists
while($row = mysql_fetch_array($resultSet))
{
echo "$row[fieldName]";
}

 

Hope it helps

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.