could not be converted to string - Visavi.net
https://visavi.net/
RSS - Visavi.nethttps://visavi.net/assets/img/images/logo_small.pngRSS - Visavi.net
https://visavi.net/
[email protected] (admin)[email protected] (admin)Sun, 30 Jun 2024 11:04:43 +0300В гугле ничего не нашел, возможно плохо искал. Спасибо всем. К сожалению, не могу изменять авторитет.
https://visavi.net/topics/29774/514743
could not be converted to string МагаSun, 26 Feb 2012 22:30:51 +0400Сообщенияhttps://visavi.net/topics/29774/514743неужели так трудно загулить?<br>
while ($stmt->fetch()) {<br>
echo $fio;<br>
}
https://visavi.net/topics/29774/514646
could not be converted to string АлександрSun, 26 Feb 2012 21:19:15 +0400Сообщенияhttps://visavi.net/topics/29774/514646Жду ответа
https://visavi.net/topics/29774/514623
could not be converted to string МагаSun, 26 Feb 2012 20:58:12 +0400Сообщенияhttps://visavi.net/topics/29774/514623Все равно только одну строку выводит...
https://visavi.net/topics/29774/514399
could not be converted to string МагаSun, 26 Feb 2012 15:03:26 +0400Сообщенияhttps://visavi.net/topics/29774/514399ORDER BY id ASC сверху внизу, ORDER BY id DESC снизу вверх
https://visavi.net/topics/29774/514391
could not be converted to string TRAILSun, 26 Feb 2012 14:44:53 +0400Сообщенияhttps://visavi.net/topics/29774/514391<pre class="prettyprint">
<?
$load = new mysqli("localhost","req","maga94","req");
$stmt = $load->prepare("SELECT * FROM NOTVIEWED ORDER BY `ID`");
$stmt->execute();
$stmt->bind_result($id, $login, $pass, $fio, $bdate, $pasport, $pdate, $podr, $adr, $job, $jadr, $vklad, $comp, $year, $opyt, $sport,
$tel, $mail, $nam, $desc, $status);
$stmt->fetch();
echo $fio;
?>
</pre> выводит только одну строку из базы...
https://visavi.net/topics/29774/514388
could not be converted to string МагаSun, 26 Feb 2012 14:34:22 +0400Сообщенияhttps://visavi.net/topics/29774/514388Очень надеюсь на вашу помощь.
https://visavi.net/topics/29774/514331
could not be converted to string МагаSun, 26 Feb 2012 10:07:02 +0400Сообщенияhttps://visavi.net/topics/29774/514331Разобрался. Подскажите, как вывести строки из базы по убыванию поля ID? Т.е. с последних записей.
https://visavi.net/topics/29774/513242
could not be converted to string МагаSat, 25 Feb 2012 10:24:51 +0400Сообщенияhttps://visavi.net/topics/29774/513242<pre class="prettyprint">
<?
$stmt = $load->query("SELECT MAX(`ID`) FROM NOTVIEWED");
?>
</pre>
Выводит Catchable fatal error: Object of class mysqli_result could not be converted to string, может мне кто-нибудь объяснить, почему? Вроде должен выводить максимальное значение поля ID...
https://visavi.net/topics/29774/513234
could not be converted to string МагаSat, 25 Feb 2012 10:13:09 +0400Сообщенияhttps://visavi.net/topics/29774/513234Все ясно, спасибо.
https://visavi.net/topics/29774/512856
could not be converted to string МагаFri, 24 Feb 2012 20:35:38 +0400Сообщенияhttps://visavi.net/topics/29774/512856тогда printf($stmt->error);
https://visavi.net/topics/29774/512848
could not be converted to string АлександрFri, 24 Feb 2012 20:19:59 +0400Сообщенияhttps://visavi.net/topics/29774/512848Fatal error: Call to undefined method mysqli_stmt::errorInfo()
https://visavi.net/topics/29774/512834
could not be converted to string МагаFri, 24 Feb 2012 20:03:48 +0400Сообщенияhttps://visavi.net/topics/29774/512834в конце кода print_r($stmt->errorInfo());
https://visavi.net/topics/29774/512826
could not be converted to string АлександрFri, 24 Feb 2012 19:54:39 +0400Сообщенияhttps://visavi.net/topics/29774/512826Жду ответа...
https://visavi.net/topics/29774/512788
could not be converted to string МагаFri, 24 Feb 2012 18:31:45 +0400Сообщенияhttps://visavi.net/topics/29774/512788Действительно, дело оказалось в char, более 255 не поддерживается, спасибо. Другая проблема, код ниже не хочет записывать в базу<br>
<pre class="prettyprint">
<?
$stmt = $load->prepare("INSERT INTO NOTVIEWED (LOGIN, PASS, FIO, BDATE, PASPORT, PDATE, PODR, ADR, JOB, JADR, VKLAD, COMP, 5YEAR, OPYT, SPORT, TEL, MAIL, NAME,
DESCRIPT) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)");
$stmt->bind_param('sssssssssssssssssss', $login, $pass, $fio, $bdate, $pasport, $pdate, $podr, $adr, $job, $jadr, $vklad, $comp, $year, $opyt, $sport, $tel, $mail,
$name, $desc);
$login=$_POST['login'];
$pass=$_POST['pass'];
$fio=$_POST['fio'];
$bdate=$_POST['bdate'];
$pasport=$_POST['pasport'];
$pdate=$_POST['pdate'];
$podr=$_POST['podr'];
$adr=$_POST['adr'];
$job=$_POST['job'];
$jadr=$_POST['jadr'];
$vklad=$_POST['vklad'];
$comp=$_POST['comp'];
$year=$_POST['5year'];
$opyt=$_POST['opyt'];
$sport=$_POST['sport'];
$tel=$_POST['tel'];
$mail=$_POST['mail'];
$nam=$_POST['nam'];
$desc=$_POST['desc'];
echo $fio;
$stmt->execute();
?>
</pre>
https://visavi.net/topics/29774/512159
could not be converted to string МагаThu, 23 Feb 2012 22:11:59 +0400Сообщенияhttps://visavi.net/topics/29774/512159