I'm having trouble with the implode function and need some help here.
I've been reading at php.net but that didn't solve my problem.
I'm having the below code:
$query = "SELECT top1, top2, top3, top4, top5, top6,
top7, top8, top9, pricesmall, pricelarge
FROM esperia
WHERE productnumber = '$bestil'";
include "connection.inc ";
$row = @ mysql_fetch_row ($result);
$original = implode(", ", $row);
that keeps on crashing on me.
"Warning: implode() [function.implod e]: Bad arguments"
But I can't seem to locate my error at all.
It happens once in a while using single words, but mostly breaks of when the
value is space seperated double words or words with special danish
characters.
I've tried to locate it and fix it, but my knowledge of PHP limits me a lot.
I've attempted to locate some MySQL syntax that allows me to perform the
above operation - checking for a special value in a specific MySQL row -
but haven't found anything that can do that easily.
Any ideas ?
I'm running linux mandrake 9.1, with PHP 4.3.1, apache 1.3.27. No funny
business with my PHP.ini, just default settings, register_global s off.
/Andreas
--
Registeret Linux user #292411
I've been reading at php.net but that didn't solve my problem.
I'm having the below code:
$query = "SELECT top1, top2, top3, top4, top5, top6,
top7, top8, top9, pricesmall, pricelarge
FROM esperia
WHERE productnumber = '$bestil'";
include "connection.inc ";
$row = @ mysql_fetch_row ($result);
$original = implode(", ", $row);
that keeps on crashing on me.
"Warning: implode() [function.implod e]: Bad arguments"
But I can't seem to locate my error at all.
It happens once in a while using single words, but mostly breaks of when the
value is space seperated double words or words with special danish
characters.
I've tried to locate it and fix it, but my knowledge of PHP limits me a lot.
I've attempted to locate some MySQL syntax that allows me to perform the
above operation - checking for a special value in a specific MySQL row -
but haven't found anything that can do that easily.
Any ideas ?
I'm running linux mandrake 9.1, with PHP 4.3.1, apache 1.3.27. No funny
business with my PHP.ini, just default settings, register_global s off.
/Andreas
--
Registeret Linux user #292411
Comment