This is my dbconnect.php;

 <?
include("include/config.php");
$db = mysql_connect("$dbserver", "$dbuser",
"$dbpass");
mysql_select_db("$dbname",$db);
  ?>

The config.php has the details for the server, dbname,
table name, dbuser name and password. I trust that
both config.php and dbconnect.php are fine because I
get access to the db and even get output from other
scripts that communicate with the db. It's only this
one, for entering (inserting) values that is failing.

--
dk wema 

--- Ian Bambury <[EMAIL PROTECTED]> wrote:

> As you say, it would appear that you have a problem
> elsewhere and that this
> code is not being executed at all.
>  From what you have posted, the script must be dying
> in dbconnect.php
>  If you'd like to post that, I'll have a look.
>  Ian
> 
>  On 18/11/05, D. K. Wema <[EMAIL PROTECTED]> wrote:
> >
> > I am sorry, Ian, I'm quite new in this. OK, I
> tried
> > echo $sql; but got no output. However, when I used
> the
> > hardcoded insert without using the form, I got the
> > following output:
> >
> > Information entered into address book.
> >
> > INSERT INTO addressbook (firstname, lastname,
> cpeyear,
> > city, country, workplace, email, comments) VALUES
> > ('Peter','Long','1986','Leeds','United
> > Kingdom','Wallmart,'[EMAIL PROTECTED]','We just
> echoed
> > the field information into the value attribute of
> the
> > each element, which was fairly easy')
> >
> >
> > I suspect that the error could be somewhere in my
> > form, but I cannot get it.
> >
> > --
> > dk wema
> >
> > --- Ian Bambury <[EMAIL PROTECTED]> wrote:
> >
> > > What I meant was, can you put a line in of:
> > > echo $sql;
> > > and see what you get
> >
> >
> >
> >
> > __________________________________
> > Yahoo! FareChase: Search multiple travel sites in
> one click.
> > http://farechase.yahoo.com
> >
> >
> > Community email addresses:
> > Post message: [email protected]
> > Subscribe: [EMAIL PROTECTED]
> > Unsubscribe: [EMAIL PROTECTED]
> > List owner: [EMAIL PROTECTED]
> >
> > Shortcut URL to this page:
> > http://groups.yahoo.com/group/php-list
> >
> >
> >
> > SPONSORED LINKS
> >   Php
>
mysql<http://groups.yahoo.com/gads?t=ms&k=Php+mysql&w1=Php+mysql&w2=Job+postings&c=2&s=33&.sig=FLGkJVBUdDMln4PBO26sng>
> Job
> >
>
postings<http://groups.yahoo.com/gads?t=ms&k=Job+postings&w1=Php+mysql&w2=Job+postings&c=2&s=33&.sig=cV3rp9pSpCxahJy7imon_w>
> >  ------------------------------
> > YAHOO! GROUPS LINKS
> >
> >
> >    - Visit your group
> "php-list<http://groups.yahoo.com/group/php-list>"
> >    on the web.
> >     - To unsubscribe from this group, send an
> email to:
> >   
>
[EMAIL PROTECTED]<[EMAIL PROTECTED]>
> >     - Your use of Yahoo! Groups is subject to the
> Yahoo! Terms of
> >    Service <http://docs.yahoo.com/info/terms/>.
> >
> >
> >  ------------------------------
> >
> 
> 
> [Non-text portions of this message have been
> removed]
> 
> 



                
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/HKFolB/TM
--------------------------------------------------------------------~-> 

Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to