It looks as if, in queries.php, any query sent to db_query is going to get lost, munged by this line:
$thisquery = ";";
Which is then being passed on to mysql_query in db/mysql.php as
$result = @mysql_query($thisquery);
Have I lost my mind?
I should say "any SELECT" query!
No... its a big switch statement... queries is included from db/mysql.php.
It then takes the $query parameter to the db_query function it is called from and runs the switch() statement on it.
These lines only run if you enter an invalid query tag:
$thisquery_type = "SELECT"; $thisquery = ";";
This will cause an error intentionally when queried, but only if the query tag is invalid.
For example, the last query listed is 'read_allowable_tags'. If you ran db_query('read_allowable_tags'). It would run that query.
Let me know if it still confuses.
Log in to post a comment.
It looks as if, in queries.php, any query sent to db_query is going to get lost, munged by this line:
$thisquery = ";";
Which is then being passed on to mysql_query in db/mysql.php as
$result = @mysql_query($thisquery);
Have I lost my mind?
I should say "any SELECT" query!
No... its a big switch statement... queries is included from db/mysql.php.
It then takes the $query parameter to the db_query function it is called from and runs the switch() statement on it.
These lines only run if you enter an invalid query tag:
$thisquery_type = "SELECT";
$thisquery = ";";
This will cause an error intentionally when queried, but only if the query tag is invalid.
For example, the last query listed is 'read_allowable_tags'. If you ran db_query('read_allowable_tags'). It would run that query.
Let me know if it still confuses.