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,458 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
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 look for a specific file type in a local or remote server directory using PHP.

728 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