wama_mms's Profile User Rating: -----

Reputation: -1 Dishonored
Group:
Active Members
Active Posts:
54 (0.06 per day)
Joined:
06-May 12
Profile Views:
631
Last Active:
User is offline Feb 11 2013 02:30 PM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   wama_mms has not set their status

Posts I've Made

  1. In Topic: error Array to string conversion while inserting array

    Posted 2 Feb 2013

    View PostDormilich, on 02 February 2013 - 02:57 PM, said:

    $id is already an array and putting that into an array (line #13) you donít loop over your array data, but the original array (which returns the string "Array" when dumped into a string).

    thanks :) i solved it by using the $id instead of putting into array
  2. In Topic: error Array to string conversion while inserting array

    Posted 2 Feb 2013

    View Postandrewsw, on 02 February 2013 - 02:55 PM, said:

    I don't know about the rest of the code, but you need curly brackets when quoting an array element:

    mysql_query("INSERT INTO names (`mail`) VALUES ('{$array_data[$i]}')");
    


    The mysql library is deprecated - use mysqli or PDO instead.
    Use prepared statements.

    same problem and the inserted value in the is Array no the actual value
  3. In Topic: error Array to string conversion while inserting array

    Posted 2 Feb 2013

    View PostDormilich, on 02 February 2013 - 02:53 PM, said:

    well, it depends how you set up your checkboxes.

    there is the code of each checkbox
     <?php echo '<td><input type="checkbox" name="id[]" value='.$row['id'].'></td>' ?> 
    
  4. In Topic: get data from child window to the parent

    Posted 28 Jan 2013

    View Postandrewsw, on 27 January 2013 - 08:35 PM, said:

    // give your popupdata-input an id:
    document.getElementById("popupdataid").value = window.opener.document.getElementsByName("initialdata")[0].value;
    


    In fact, give "initialdata" in the main page an id as well - after all, there is only one of them.

    thanks it works now :) thanks for your help

My Information

Member Title:
D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Click here to e-mail me

Friends

wama_mms hasn't added any friends yet.

Comments

wama_mms has no profile comments yet. Why not say hello?