Fatal error:  operator not supported for strings in /....
I started getting this message out of nothing.
Well, I've changed the hosting server for the website.
I already made many many tests and none of them sucessfull in order to solve this problem.
Can someone help, please?
This is the code:
$query = "SELECT * FROM tabela_vendedores";
$result = mysql_query($query, $db);
while ($row = mysql_fetch_array($result))
$cod_vendedor = $row['cod_vendedor'];
$nome_vendedor = $row['nome_vendedor'];
The problem seems to have something to do with PHP assuming you're assigning an array reference to a string - I don't know if this will work, but what if you tried initializing the two arrays before using them in the while loop?
I initialized the 2 arrays as per Your first suggestion and it solved the problem right away.
I guess that somehow I must have used this variables somewhere back (I did not go and check...) because there are a lot of includes and this subroutine was also an include itself.
I think the most important here is that the problem is solved.
I appreciated Your help. Thank You.
|All times are GMT. The time now is 09:03 AM.|
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0