User Profile

Collapse

Profile Sidebar

Collapse
hnmcc
hnmcc
Last Activity: Aug 24 '10, 07:47 AM
Joined: Aug 23 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • hnmcc
    replied to Can't make INSERT into MySQL work...
    in PHP
    Thanks guys

    Thanks guys!

    Quoting table and field names with back-ticks (I'd never even noticed such a thing existed!) did the trick.

    I had already tried unquoting the table name, which didn't work; but just now I unquoted table name and field names - which I hadn't tried yesterday - and that worked too.

    Thanks again.
    See more | Go to post
    Last edited by hnmcc; Aug 24 '10, 07:47 AM. Reason: The header doesn't appear

    Leave a comment:


  • hnmcc
    started a topic Can't make INSERT into MySQL work...
    in PHP

    Can't make INSERT into MySQL work...

    I don't know whether this belongs here or in the MySQL section.

    I'm trying to write a couple of values from a search page to a database: but no matter how I tweak the code, I always end up with "Error, insert query failed"...

    The code is:

    Code:
    <h3><?php echo $_SESSION['SESS_MEMBER_ID']," ",$query; ?></h3>
    <?php
    	$link = mysql_connect('localhost','root','EC4SPvRn');
    ...
    See more | Go to post
No activity results to display
Show More
Working...