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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
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.

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now