Fix invalid argument


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(


'label' => 'date',

'type' => 'string'

) ,


'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);

Taidot: MySQL, PHP, SQL

Näytä lisää: failed to mount /system (invalid argument) twrp xiaomi, failed to mount /efs (invalid argument) s7, failed to mount /firmware (invalid argument), failed to mount /data (invalid argument) twrp s7, failed to mount vendor invalid argument lenovo k6 power, failed to mount data device or resource busy, failed to mount vendor invalid argument z2 plus, failed to mount /data (invalid argument) twrp, transaction refused invalid argument oscommerce, line error invalid argument, warning invalid argument supplied foreach adminedit_orders, invalid argument supplied foreach pathwayphp line error, invalid argument supplied foreach edit_ordersphp oscommerce, oscommerce invalid argument foreach edit_ordersphp, invalid argument supplied foreach edit_ordersphp, invalid argument supplied foreach joomla help, invalid argument supplied foreach oscommerce ordersphp, invalid argument supplied foreach joomla error, creloaded create order warning invalid argument supplied foreach, fix invalid security certificate webmaster

Tietoa työnantajasta:
( 10 arvostelua ) rockwall, United States

Projektin tunnus: #19598682

44 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön


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 Lisää

$20 USD 1 päivässä
(971 arvostelua)

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 1 päivässä
(743 arvostelua)

Hi Sir! I'm the expert [login to view URL] 6 years of experience I assure you the highest quality of the work. Please check the profile here and discuss details in message. thank y Lisää

$30 USD 1 päivässä
(205 arvostelua)

Greetings! I am a software engineer and ready to work with your project. Could we chat for more details? It’s my pleasure to co-operate this time. Best regards, Ha Nguyen

$30 USD 1 päivässä
(208 arvostelua)

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. Lisää

$25 USD 1 päivässä
(346 arvostelua)

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 Lisää

$17 USD 0 päivässä
(451 arvostelua)

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 2 päivässä
(168 arvostelua)

Hey there, Got it, Let me fix this PHP invalid arguments error right away. Ping me to get start this job. Thanks.

$35 USD 1 päivässä
(117 arvostelua)

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 0 päivässä
(150 arvostelua)

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 1 päivässä
(64 arvostelua)

Hello, It looks like you mistook sql. ip is string, isn't it? like [login to view URL] so `ip`='[login to view URL]' $result1 = sql_query($db, "SELECT `date`,`rank` FROM `games` WHERE `ip` = " . $game['ip'] . " AND `port` = " . $game[ Lisää

$20 USD 1 päivässä
(45 arvostelua)

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 exper Lisää

$50 USD 1 päivässä
(49 arvostelua)

Hi, I am a PHP developer. I can fix the invalid argument issue

$10 USD 0 päivässä
(105 arvostelua)

Hello, I have seen that you are looking for an expert web developer and designer to complete and launch your website and integrate all the features that you need and deliver you high-quality work. Please share Lisää

$25 USD 1 päivässä
(34 arvostelua)

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,WordPr Lisää

$30 USD 0 päivässä
(29 arvostelua)

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 1 päivässä
(71 arvostelua)

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 Lisää

$20 USD 1 päivässä
(47 arvostelua)

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 2 päivässä
(109 arvostelua)

Hello, I'm Alex here, I have 5 years of web development experience, so I can help you on this project. My business focus on php. Please contact to me ASAP. Best regards

$30 USD 1 päivässä
(36 arvostelua)

Hi I can fix this . I have got 5 years experience in php. lets start. Thank you. _

$30 USD 1 päivässä
(46 arvostelua)