append data in serialized array with php
<p>I am writing a php script for creating serialized array as follow:</p>

<pre><code>$x=Array();
  $x[0]=$_GET['fname'];
  $x[1]=$_GET['lname'];
  $str=serialize($x);
  print $str;
  $y=$_GET['hf'];
  $con = mysql_connect("localhost","root","");
    if (!$con)
    {
    die('Could not connect: ' . mysql_error());
    }

    mysql_select_db("formdemo", $con);
    $sql="update rohit set data='$str' where fid='$y'";
</code></pre>

<p>now I want to append more data on this array. what should I do for that </p>

<p>Thanx</p>
