Find Jobs
Hire Freelancers

Fix invalid argument

$10-30 USD

Closed
Posted almost 5 years ago

$10-30 USD

Paid on delivery
Hello, I need to fix an Invalid argument supplied for foreach() Below is the code. Server is using php 7.3 $result1 = sql_query($db, "SELECT `date`,`rank` FROM `games` WHERE `ip` = " . $game['ip'] . " AND `port` = " . $game['port'] . " GROUP BY `date` DESC"); $rows1 = array(); $table1 = array(); $table1['cols'] = array( array( 'label' => 'date', 'type' => 'string' ) , array( 'label' => 'rank', 'type' => 'number' ) ); foreach($result1 as $r1) { $temp1 = array(); $temp1[] = array( 'v' => (string)date('m-d ga', strtotime($r1['date'])) ); // Values of the each slice $temp1[] = array( 'v' => $r1['rank'] ); $rows1[] = array( 'c' => $temp1 ); } $table1['rows'] = $rows1; $jsonTable1 = json_encode($table1);
Project ID: 19598682

About the project

34 proposals
Remote project
Active 5 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
34 freelancers are bidding on average $24 USD for this job
User Avatar
Hi there, Quick and easy. Just need FTP access. I have a 99% project completion rate and a 4.99 reputation (out of max 5.0!) from more than 1150 projects from a period of 12 years. Thanks. I look forward to hearing from you! Best Regards, Rajesh Soni.
$20 USD in 1 day
5.0 (1016 reviews)
8.8
8.8
User Avatar
Hi, Let me fix the invalid arguments for you, I have vast experience, ready to start and look forward to work with you..thanks!
$35 USD in 1 day
5.0 (889 reviews)
8.3
8.3
User Avatar
I am experienced php developer and web designer with the depth knowledge related to MySQL,Laravel,WordPress,MSSQL,JSON,JAVASCRIPT,AJAX,XML,jQuery,CSS,HTML5,Material Designing with the integration of web technologies. I have worked as Php & Web developer in industry and now i am full time freelancer and having the experience of huge and live projects. I can design the web pages with the backend of php and I have also experience of query optimization. I am finding one startup like you so i can provide my skills to IT market and I can give you 100% surity for quality work in minimum time sir. I have also launched eCommerce Product for pharmacy industry and launched android app on play store as well , I have great control in android with backend of php webservices and api generation with JSON integration. I can work at anytime with the great satisfactions,quality output and result in your hand with the fulfilling your requirements for sure. Waiting for your positive response , so we can start the work soon ...
$25 USD in 1 day
5.0 (547 reviews)
7.8
7.8
User Avatar
Hello, i am ready to help you on fix the invalid argument error on your website, i want to discuss to start right now after having the full required details,i have four year experince in web development and maintaining the websites. thanks
$17 USD in 0 day
5.0 (641 reviews)
7.3
7.3
User Avatar
Hi! I have experiences for 15+ years about IT programming. I have done your proposal quickly and then u will show good result. I want your detailed schedule. Thanks.
$25 USD in 1 day
5.0 (80 reviews)
6.8
6.8
User Avatar
hello sir i am expert in wordpress,MySQL, PHP, SQL i am able to do this work you will satisfy with my work i can do this work asap thank you
$30 USD in 0 day
4.9 (236 reviews)
6.9
6.9
User Avatar
Hello Sir. Hope you are doing well! Thanks for sharing your project requirement with us. It will be our great pleasure to work on your project. I have checked your requirement, yes we can do it, because we already work on similar requirement in past. We have right skills to work on this assignment. We will complete the work as per your requirements. Please get me more details about work so I can understand well and do it for you. I look forward to your response. Thank you.
$20 USD in 1 day
4.8 (152 reviews)
7.2
7.2
User Avatar
Hey there, Got it, Let me fix this PHP invalid arguments error right away. Ping me to get start this job. Thanks.
$35 USD in 1 day
4.9 (128 reviews)
6.7
6.7
User Avatar
Hi we could fix the code, could you send me ftp access and the link where it is being executed so we could check the error on run time as well.
$35 USD in 2 days
4.7 (181 reviews)
7.2
7.2
User Avatar
Hi I am software engineer and full stack PHP developer your project is looking very interesting and I am looking forward to your message
$25 USD in 1 day
4.9 (121 reviews)
6.5
6.5
User Avatar
Hi There, I can Fix invalid argument.I have read your job description and assure you that I am a perfect fit for the job. My Expertise:- =========== > PHP, HTML, CSS, javascript/jquery, API integration,WordPress, Magento, Prestashop, Joomla, Cakephp, Codeigniter, YII, Laravel and MYSQL for handling database operations. > UI/UX Design, Landing Page Design, Wireframes Design, Template design, Responsive Designs, Banner Design, Brochures design, Logo Design, Backgrounds, Mockups etc. > CSS3, HTML5, xHTML, XML, Angular JS, JScript, jQuery, jQuery Parallax, Ajax, Twitter Bootstrap, Web 2.0 styles, Table-less CSS designs, HMVC & MVC Design Patterns, etc The communication is a key to business relationships and successful projects, so can we schedule a call/meeting to discuss everything in details? Looking forward to hearing from you soon and develop a healthy long term business relationship. Thanks
$30 USD in 0 day
5.0 (33 reviews)
6.0
6.0
User Avatar
Hi, I am a PHP developer. I can fix the invalid argument issue
$10 USD in 0 day
4.8 (190 reviews)
6.3
6.3
User Avatar
Hey, employer. I already have read your description carefully. I have 5+ years enough experience in website development. My major skill are HTML5, CSS3, JavaScript, JQuery, Bootstrap, MySQL etc. I am reliable freelancer you want. Now I am free, I will start to work in your project immediately. Get in touch me. Let me know more details via chat now. Waiting for your positive response. Regards ANKIT
$25 USD in 1 day
4.8 (64 reviews)
6.3
6.3
User Avatar
Hi I can fix your issues on this query and display. Need your database or that table only from where you want to show data. I can complete your project on time and within your budget. I have more than 8 years experience on this platforms Wordpress, PHP, CodeIgniter and custom application development. Cheers
$50 USD in 1 day
4.8 (70 reviews)
6.2
6.2
User Avatar
Hi, From PHP7 we can’t put foreach if argument is not an array or object. It means your query not returning an array. Put this before your foreach statment If($result1 && (gettype($result1)==‘array’) || gettype($result1($result1)==‘object’)) Or you can use mysqli_num_rows() If you still face issue & want me to solve it plz send message. Thanks
$15 USD in 1 day
5.0 (28 reviews)
5.5
5.5
User Avatar
Hi I am a Dedicated Senior .Net Developer/ Database Administrator and System Administrator with 20 years of experience in Web/ Windows and Android Developments, Administration, Project Management System analysis, and Database Developments. Delivering quality solutions to business problems within scope, budget and tight schedules whilst meeting strict specifications both functional (for users ) and technical (for Developers) , from project planning, estimating to delivery. Please See my profile and the Reviews I would like to discuss the project in details with you for a better understanding of the requirements. SKILLS AND ABILITIES • Web | Windows Developments | API | Web Services| Automations • .NET | C# | Vb.Net | ASP.Net | VBA | MACROS • SQL Server | MY SQL | EXCEL | MS ACCESS | PostgreSQL |Sybase • MVC| | Web Forms | Win Forms| Java scripts | JQuery | Json • HTML | PHP | CSS | Bootstrap |Graphic Design • IIS | Windows Server | DNS | Server Security • Crystal Reports | iText Sharp • XML | XLT | CSV • Payment Gateway Integration • Android Developments APPLICATION DEVELOPMENTS • Web Applications / Windows Applications • Automated email Tools • Document scanning tools • Imail API integration • Sage / XERO Accounting Integration tool • Web Services API's • Google Map integration • E-POS System • General Ledger System • Payroll & Time Attendance System • Help Desk System • Cost Management System • Fixed Asset System • Budget Control System
$29 USD in 1 day
5.0 (21 reviews)
5.6
5.6
User Avatar
Hi there. Thanks for using Freelancer com. My name is Sergio and I am a software developer dedicated 100% here in the marketplace. I can help you correcting that Invalid argument exception thrown by your code. Please ping me and we can get started. Best, Sergio
$20 USD in 1 day
4.7 (49 reviews)
5.7
5.7
User Avatar
Hi problem is NOT in the code you provided in this case. Problem is, there are no results returned from DB. I will need FTP access to fix this issue. Thanks for reading.
$25 USD in 2 days
4.9 (109 reviews)
5.2
5.2
User Avatar
Hi I can fix this . I have got 5 years experience in php. lets start. Thank you. _
$30 USD in 1 day
4.6 (59 reviews)
5.2
5.2
User Avatar
Dear Sir/Madam, I fully understand your requirements. Ready to start ***************************************************************
$25 USD in 1 day
5.0 (18 reviews)
4.9
4.9

About the client

Flag of UNITED STATES
rockwall, United States
5.0
24
Member since Feb 5, 2018

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.