locke2005
asked on
related questions
One person said:
We don't have an ARRAY datatype in MySQL. When sending the variable to the MySQL server
through the SQL command, you should cast that array to a type accepted by MySQL. If you
don't the text "array" will be inserted in the SQL statement.
Another person said:
$list="SELECT * FROM IDs WHERE ID != $ID";
$rows=mysql_query($list);
$row=mysql_fetch_assoc($ro ws);
$table_name=$row["field_na me"];
$rank="SELECT * FROM $table_name ORDER BY vote DESC";
If $table_name is one row instead of an array of rows, how can $table_name be ordered???
We don't have an ARRAY datatype in MySQL. When sending the variable to the MySQL server
through the SQL command, you should cast that array to a type accepted by MySQL. If you
don't the text "array" will be inserted in the SQL statement.
Another person said:
$list="SELECT * FROM IDs WHERE ID != $ID";
$rows=mysql_query($list);
$row=mysql_fetch_assoc($ro
$table_name=$row["field_na
$rank="SELECT * FROM $table_name ORDER BY vote DESC";
If $table_name is one row instead of an array of rows, how can $table_name be ordered???
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER