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,455 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

730 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