[英]Notice: Array to string conversion PHP 3
im getting this error : 即时通讯收到此错误:
( ! ) Notice: Array to string conversion in C:\\wamp64\\www\\gcm\\ind.php on line 14 (!)注意:第14行的C:\\ wamp64 \\ www \\ gcm \\ ind.php中的数组到字符串的转换
<?php
include 'config.php';
include 'db.php';
$com = new DbConnect();
$message=array();
$sql="select UTLR_UID from adm_utilisateurs where UTLR_LOGIN='groom' and UTLR_MDP='groomftw'";
$result=mysqli_query($com->getDb(),$sql);
$getID = mysqli_fetch_assoc($result);
$userID = $getID['UTLR_UID'];
$sqli = "SELECT AHIS_DATEHEURE,AHIS_DES_LN1 FROM alr_historiques WHERE UTLR_UID=$userID ";
$resulti = mysqli_query($com->getDb(),$sqli);
while($row=mysqli_fetch_assoc($resulti))
$message[]=$row['AHIS_DATEHEURE'].$row['AHIS_DES_LN1'];
//14 // 14
echo $message;
?>
void echo ( string $arg1 [, string $... ] )
echo
only able to output data of string
type , or other data that can be directly converted to string
,such as boolean
, int
, null
, float
. echo
仅能输出string
类型的数据,或可以直接转换为string
其他数据,例如boolean
, int
, null
, float
。
I just noticed that you are in php 3
, you can try this 我只是注意到您在
php 3
,可以尝试一下
foreach($message as $m){
//need to ensure that $m is a string type
echo $m;
}
see more : 查看更多 :
What is the difference between var_dump, var_export and print_r ? var_dump,var_export和print_r有什么区别?
I'm new to stackoverflow, Hope can help you. 我是stackoverflow的新手,希望能为您提供帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.