Echo number of records in a database based on multiple criteria
$10-30 USD
Betales ved levering
Hi There,
I have a web form that some fields can be filled like google search suggestions.
Ex If I start typing in a field it will give me suggestions based on the data inside the database, and then I can choose the name I want, that works for First Name , Last Name and Second Last Name.
When this Fields are filled I want to be able to count how many rows are with that name in the database and echo the number of rows that match that criteria.
ex: First Name : Sara Lastname: Underword SecondLastname: Collins
So I want to echo how many Rows containing Sara Underwood Collins there are,
I was thinking of something like this:
$query = "SELECT COUNT(*) c FROM Table WHERE FirstName = 'valueontheform' and LAST Name = 'valueonthefom 'and Second Last Name ='valueontheform' ;
$result = mysql_query($query);
$row = mysql_fetch_assoc($result);
echo $row['c']; //Here is your count
Prosjekt-ID: #25765642
Om prosjektet
Tildelt til:
12 frilansere byr i gjennomsnitt $25 for denne jobben
Hello Sir am expert In mysql queries I can do it perfectly please message to me wish to work for you Thank You
Hi, I am a Full stack developer in Microsoft technologies. My area of expertise is web application development (Web API, ASP.Net web forms, MVC, classic ASP), web services (SOAP & RESTFul), MySql & Sql Server as back Mer
Hello, I am a fullstack developer using PHP and bootstrap. I can help you auto search and get the values from the database. Come over the chat we discuss more. Thank you
Hi, I hope you doing well. I have 8 year experience in Web and Database Administration. Yes we can get the count based on condition. I have hands off experience in the following * RDBMS * Index * Join * Union * Aggr Mer
Dear client, Greeting. I am expert at PHP,MYSQL And also I can start right now I am Software Engineer out of Bangalore.I have 5 years experience in mostly in PHP,several PHP frameworks,Algorithms and data structure, Mer
Hi, I have 4 years experience with PHP, Javascript & MySql. Based on my understanding, you are having issues with database query only. Just to understand it better, I have given thin problem 2 days. Looking forwar Mer
Hello, I can tell you without any project award that all you need to do is use the mysqli_num_rows() function. If you need help implementing this in your code, let me know. Thanks!
Sure, We have already helped many organizations with in-depth reports and dynamic parameters too. Let's connect and discuss using chat.