Find Jobs
Hire Freelancers

build a simple php function

£20-250 GBP

Closed
Posted about 9 years ago

£20-250 GBP

Paid on delivery
Write a piece of coding that will look like this, in this format, because we only know it like this! function GetSiteStatsAll() { $sql = "SELECT COUNT(id) as socials547 FROM events WHERE id='547' "; $query = mysql_query($sql); $stats['socials547'] = mysql_result($query,0,socials547); } We have have 300 areas of the UK with users in each area. The table 'users' has their details including their user_id and city_id referring to their area. Each user can create a social to be held in their area and this is saved in a table called 'events', . But this table does not store the city_id of where the event takes place, it does record their user id. We need to be able to know how many socials are taking place in an area. So the code has to match the user_id in 'events' to the 'users' table and get the city_id. Then count how many users in events have the same city_id. The page where these statistics are seen will show all 300 areas and their number of events. So we would copy and replace the function 300 times changing the city_id !
Project ID: 7582262

About the project

17 proposals
Remote project
Active 9 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
17 freelancers are bidding on average £120 GBP for this job
User Avatar
Hello, Looking forward to work with you right away. Lets start this real quick. Thanks much & kind regards
£63 GBP in 0 day
5.0 (182 reviews)
9.0
9.0
User Avatar
A proposal has not yet been provided
£206 GBP in 5 days
5.0 (294 reviews)
8.3
8.3
User Avatar
Hi I would like to participate in developing your project. I think I have experience in php projects. I have already developed several websites running on php servers. You might have read this in my profile. Anyhow, I would like to finish your project in a few days as quickly as possible. Please accept my bid. Of course, I will do my best. Thanks in advance.
£157 GBP in 1 day
5.0 (40 reviews)
7.5
7.5
User Avatar
Sir, i can build this function, i m am very good in mysql, and willing to do this job, waiting to start now, thanks.
£77 GBP in 0 day
5.0 (210 reviews)
7.0
7.0
User Avatar
Hi, We have designed and built websites for various types of businesses very successfully. We work with all of our clients individually to easily synchronize and to keep track of the requirements and scope. We fulfill your vision of getting the website built with the desired productivity. We recommend long term reliable and valuable solutions to all our clients meeting their exact requirements. We have an integrated team of web consultants, innovative design professionals to get your website done on time. We wish to request you to open a PMB to discuss in detail about the precise requirements. We show our clients work-in-progress via a private web address on our server for entire satisfaction and assured quality. Looking forward to hear from you. Best Regards - CrystalWebTechs *__*
£111 GBP in 3 days
4.8 (81 reviews)
6.3
6.3
User Avatar
HI SIR AWARD ME RIGHT NOW I M 100% CONFIDENT FOR THIS PROJECT!!! I am ready to start this immediately. I am extremely eager and ready to go. I am all of the following; attentive, detailed, creative, dedicated, efficient and effective. I can follow instructions extremely well and am very focused on providing only the best outcome - after all my work for you is a representation of myself and it must be 110%!! experts here, ready to start right now. Fluent English and always available on to discuss project specs. Why waste your time with anyone else?
£184 GBP in 3 days
4.7 (183 reviews)
6.6
6.6
User Avatar
Hi, your requirement is so simple, you only need to join two tables which i can do it for you in a few minutes. so accept the bid and you will get it in now time. Regards Haris
£55 GBP in 3 days
4.9 (25 reviews)
6.4
6.4
User Avatar
Hello. Many users can create event with the same event id, am I right? For sample 300 users created events with id 547. And you wanna know how much users created event 547 live in the city with some city_id. Is it correct? If yes, you need no to perform 300 queries, you task can be solved in 1 query with JOIN and GROUP BY clauses. Moreover it will be possible to get the result in form "city_id - count" for all cities by only 1 query
£50 GBP in 1 day
4.9 (40 reviews)
5.5
5.5
User Avatar
HI i have more than 3 years of experience in php development aand willing to help you to do this in a quick and accurate manner.
£55 GBP in 1 day
4.9 (8 reviews)
3.1
3.1
User Avatar
Hello, I have analysed your requirements and wold like do the work in a hour or two. But I will need some additional infos, please contact me. Best regards, Viktor.
£55 GBP in 1 day
5.0 (2 reviews)
2.4
2.4
User Avatar
Hi, I am Php and MySql expert. I can make it one query. Please give me mysql connection. Feel free to contact me Thank you
£53 GBP in 0 day
0.0 (1 review)
0.0
0.0
User Avatar
Easy. Pick me and i will sure you get q proffesional grade solution. I recommend nog using The deprecated MySQL_* functions but instead go with a database abstraction later like Doctrine2 or just usr The PDO.
£150 GBP in 3 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED KINGDOM
United Kingdom
0.0
0
Member since Dec 18, 2014

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.