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? Link to comment https://forums.phpfreaks.com/topic/90047-solved-array-for-string/ 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? Link to comment https://forums.phpfreaks.com/topic/90047-solved-array-for-string/#findComment-461677 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 Link to comment https://forums.phpfreaks.com/topic/90047-solved-array-for-string/#findComment-461678 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.