?
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
Medium Priority
?
3,486 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 500 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

649 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