Jump to content

PEAR DB Abstraction


last_trace

Recommended Posts

I'm on my dev server right now but..

I keep getting an error "DB Error: syntax error"
[code]<?php
$sql = "INSERT INTO `links` (`email`, `website`, `website_name`, `button`, `accepted`) VALUES('$email','$website','$website_name','$button','0')";

        $result = $db->query($sql);

            if (DB::isError($result))
            {
                die ($result->getMessage());
            }
            else
            {
            echo 'You have successfully applied and I will review your submission.';
            }
?>[/code]

any ideas?
Link to comment
https://forums.phpfreaks.com/topic/31035-pear-db-abstraction/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.