View Single Post
Old 06-04-2008, 11:57 PM   #1 (permalink)
pipesportugal
The Contributor
 
pipesportugal's Avatar
 
Join Date: May 2008
Location: Oporto-Portugal
Posts: 32
Thanks: 11
pipesportugal is on a distinguished road
Default Fatal error: [] operator not supported for strings in /....

Hello there,

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:
===========================
include("include/dbconnect.php");
$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'];
}
===========================
pipesportugal

Last edited by pipesportugal : 06-04-2008 at 11:59 PM. Reason: mistake
pipesportugal is offline  
Reply With Quote