1
Each column is composed of names, Fulano, Ciclano, Beltrano etc. I want to select all names that are different. If there is a Joaquin in two columns, you must return one to me. But the problem is not there, it is in the name of the columns that contains point col.A col.B col.C I do not know if this is allowed, I have not read anything against but the case is that it does not funf neither without [ ] nor with [ ].
Nevertheless , the reason for the question is to know if there is any specification against or any way to run with dot in the names of the columns
$result = mysql_query("SELECT DISTINCT [col.A] FROM stabela UNION SELECT DISTINCT [col.B] FROM stabela UNION SELECT DISTINCT [col.C] FROM stabela");
while($row = mysql_fetch_array($result)){
$nome=$row['col.A'];
}
Warning: mysql_fetch_array(): supplied argument is not a Valid Mysql result Resource in .... on line 58
Line 58 is (while($Row = mysql_fetch_array($result)))
Would not be
\
Col.A`,
`Col.B`,
`Col.C`, ao invés de entre
[ ]`?– Inkeliz
have tried nickname? type [col.A] as colunaA, [col.B] as colunab..?
– Israel Zebulon
Inkeliz that’s right, it worked!! The thing is to put in inverted quotes (the crase of our keyboard).
– user60252