![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.php archiveRe: My function returns true but my code does not execute
From: John Moore <nobody@nomail.com>
Date: Mon Oct 31 2005 - 15:43:07 CET
On 31 Oct 2005 05:46:12 -0800, in comp.lang.php "Ian B"
>Try something along the lines of
Thanks Ian,
I just tried your suggestion, calling the query like this:
$result = mysql_query($query) or die("<br>Could not run query $sql
But the script didn't die, the function continued to execute, and no
>($result = mysql_query($query)) will always return true even if the
I tested the result like this:
if ($result) {
Here is the current version of this function:
function new_category2($category_id=null) {
if (create_category($_SESSION['cat_name'])) {
$result = mysql_query($query) or die("<br>Could not run query $sql
I'm going to try this under a different operating system. I'm just not
What kills me is that the update_cat_total() function updates a
Thanks again,
J Moore
|