Can somebody straighten this out for me?

I can't get the update to work.  I'm sure the variables are being
passed to the code.  Thanks!

if ($postaction==edit)
                echo "it fired<Br>";
        // process form

                        $db = mysql_connect("myhost, "myuname",


                        $sql = "UPDATE mytable SET
caption=$caption where id = $id";

                        $result = mysql_query($sql);
                        echo "<center>";
                        echo "Thank you! Information entered.\n";
                        echo "</center>";

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to