SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Nov 2007
    Posts
    219
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Red face <b>Warning</b>: implode() Error!!

    hello my friends,i got this error
    PHP Code:
    <b>Warning</b>:  implode() [<a href='function.implode'>function.implode</a>]: Invalid arguments passed in <b>/home/vozemet7/public_html/vozenow/mystique/new.php</bon line <b>103</b><br />
    Book_Image_Sources=new Array('',''); 
    and this is line 103
    PHP Code:
    <?php
     $js 
    sprintf("Book_Image_Sources=new Array('%s','');",implode("','','",$tmp));
     echo 
    $js;
    ?>
    and this is the code
    PHP Code:
    $query "select client_images_fotos from client_images where client_id='".$_SESSION['client_id']."' ";

    if (
    $result mysql_query($query)) {

        
    $tmp = array();

        while (
    $row=mysql_fetch_assoc($result)) {
        
    //print_r($tmp);
           
    $tmp[] = "Admin/".$row['client_images_fotos'];
        }


  2. #2
    SitePoint Enthusiast
    Join Date
    Apr 2008
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    shouldn't your implode function be implode(", ",$tmp) ? I think the first parameter you have passed to the implode function is incorrect.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •