Results 1 to 16 of 16

Thread: [RESOLVED (thanks)] Strange PHP/MYSQL problem?

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2002
    Location
    midewest u.s.
    Posts
    275

    [RESOLVED (thanks)] Strange PHP/MYSQL problem?

    I am having a really difficult time figuring out a problem I am having.

    I am trying to help a friend with his website, and on one of the pages I need to add a record to a database.

    I run the query with mysql

    PHP Code:
    print $query;
    $result mysql_query($query$conn) or die(mysql_error()); 
    and it dies without showing me what the problem was.

    I figured it might have been my query, so I opened up the phpmyadmin for the webserver and pasted the exact query posted and it saves just fine.

    I thought there might be a problem with my host/name/password or something so I copied over it with one from a query I know works and I get the same issue.

    Has anyone encountered a problem where they could select data, but run into problems while adding? And, the page does NOT display any mysql_error() like it does with all the select statements if there is a problem. Is there a special thing I could put in the die() that actually will show me the error for an insert statement?

    Thanks in advance
    Last edited by Tool; Sep 15th, 2005 at 07:58 PM. Reason: Resolved

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width