In order to put elements of a text from the table into array i deploy the following code
[CODE]
$sql=mysql_query(“select * from sitecon where konu=’key_kavram'”) or die(mysql_error());
$row=mysql_fetch_object($sql);
$h1a=explode(“@”, $row->icerik);
It works as it supposed and it insert all the elements separated with “@” into the $h1a array
When i try to get those element randomly i use the following code
[CODE]
$sql=mysql_query(“select * from sitecon where konu=’key_kavram'”) or die(mysql_error());
$row=mysql_fetch_object($sql);
$h1a=explode(“@”, $row->icerik);
$ck=count($h1a)-1;
$ck3=rand(ceil($ck/6), ceil($ck/1.5));
$h1=array_rand($h1a,$ck3);
$h1 array is filled with numbers not those expected elements from $h1a.
How i can resolve this matter?