Suljettu

Fix invalid argument

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

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

rajeshsonisl

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)
8.7
GetReal

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)
7.9
FASTGuru

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 https://www.freelancer.com/u/FASTGuru.html and discuss details in message. thank y Lisää

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

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)
7.3
mahamadali

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)
7.1
shahid864

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)
6.9
techwelfare

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)
7.1
Creativeartbd

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)
6.6
aradadiya163

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)
6.3
kipdev13

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)
6.5
yuansun235

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)
5.9
vuetech8

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)
5.9
caciocode

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

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

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)
6.0
surender6789

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)
5.8
HadiDar786

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)
5.6
sergioeliot3

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)
5.5
dainiuxus

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)
5.2
dunglexuan2018

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)
4.9
gracefulwork

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)
5.0