Solved

Why i received error message:Warning: implode() [function.implode]: Invalid arguments passed in C:\wamp\www\test.php on line 489

Posted on 2008-06-10
1
3,442 Views
Last Modified: 2013-12-13
PHP
Why i received error message:Warning: implode() [function.implode]: Invalid arguments passed in C:\wamp\www\test.php on line 489

i have this code

if my select output is empty would  it display this message?
function getStock()
{
$query =mysql_query("SELECT MAX(TEST1.DAILYSTOCK.STOCKREFILLDATE) AS STOCKREFILLDATE, TEST1.DAILYSTOCK.BARCODE
         FROM TEST1.DAILYSTOCK JOIN TEST2.ITEM ON TEST1.DAILYSTOCK.ITEMID = TEST2.ITEM.ITEMID
         WHERE TEST2.ITEM.SUPPLIERID = "15466654"
         GROUP BY TEST1.DAILYSTOCK.BARCODE");
 
  while($row = mysql_fetch_array($result))
	 {
      $this->GetstockReturn[$i]  = array($row['STOCKREFILLDATE'],$row['TEST1.DAILYSTOCK.BARCODE']); 
	  $i++;
	 }
 }
 
function readgetstock()
{
foreach( $this->GetstockReturn as $stock)
{
$this->arrayreadgetstock_value[] .= implode("|", $stock);
}
}

Open in new window

0
Comment
Question by:firekiller15
1 Comment
 
LVL 36

Accepted Solution

by:
Loganathan Natarajan earned 250 total points
ID: 21756575
are you sure that ""$this->GetstockReturn[$i] has "| " to implode ..,

simple example at, http://www.w3schools.com/php/func_string_implode.asp
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question