alin19 Posted February 8, 2008 Share Posted February 8, 2008 Fatal error: [] operator not supported for strings in c:\program files\easyphp1-8\www\login\vizualizare date.php on line 262 i have records like: ian,feb,mar....,dec if ($r=mysql_query($query)) { while ($row = mysql_fetch_array($r)) { $zile[]=$row['zi']; $cupoane[]=$row['nr.cupoane']; $luna[]=$row['luna']; echo " "; } } what can i do here? Quote Link to comment Share on other sites More sharing options...
aschk Posted February 8, 2008 Share Posted February 8, 2008 Have you defined $luna somewhere else in your script as a string? Quote Link to comment Share on other sites More sharing options...
alin19 Posted February 8, 2008 Author Share Posted February 8, 2008 if (isset ($_POST['Luna'])) $luna=$_POST['Luna']; if (isset ($_POST['ziua'])) $zi=$_POST['ziua']; yes i had this; solved it now, 10x Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.