Fermé

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

Compétences : MySQL, PHP, SQL

en voir plus : 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

Concernant l'employeur :
( 10 commentaires ) rockwall, United States

Nº du projet : #19598682

44 freelance font une offre moyenne de $24 pour ce travail

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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(971 Commentaires)
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!

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(743 Commentaires)
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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(205 Commentaires)
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

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(208 Commentaires)
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. Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(346 Commentaires)
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 Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 0 jours
(451 Commentaires)
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.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(168 Commentaires)
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.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(117 Commentaires)
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

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 0 jours
(150 Commentaires)
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.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(64 Commentaires)
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[ Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(45 Commentaires)
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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(49 Commentaires)
5.9
caciocode

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

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 0 jours
(105 Commentaires)
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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(34 Commentaires)
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 Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 0 jours
(29 Commentaires)
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

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(71 Commentaires)
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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(47 Commentaires)
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.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(109 Commentaires)
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

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(36 Commentaires)
4.9
gracefulwork

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

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(46 Commentaires)
5.0