Jump to content

Vivid Lust

Members
  • Posts

    456
  • Joined

  • Last visited

Posts posted by Vivid Lust

  1. Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3

     

    Hi, i was wondering if someone could help me with this error please? I've been trying for 30 mins to get it sorted out but can't seem to, here is the code:

     

    <?php
    ...
    $sql = "INSERT INTO `films` (`name`, `director`, `releaseDate`, `type`, `genre`,
    `translation`, `length`, `synopsis`, `image`, `downloadLink`, `megavideoLink`, `embeddLink` ) 
    VALUES ('$name', '$director', '$releaseDate', '$type', '$genre', '$translation', '$legnth', '$synopsis', '$image', '$downloadLink', '$megavideoLink', '$embedLink'";
    mysql_query($sql,$connection) or die(mysql_error());
    ...
    ?>
    

  2. Hi all,

     

    This mysql query is finding no  rows when used in a php file BUT does find a row when used in phpMyAdmin - this happens ONLY when there is a foreign character is in the phrase to be matched with a prhase that doesnt have a foreign character either , such as: á,ú,í,ó,é.

     

    Here is the query:

     

    SELECT * FROM films WHERE name=''Luna nueva, La saga Crepúsculo"

     

    Could anyone please help? Find the row in phpmyadmin but not in php file?

     

    Thanks.

     

    This is the query

  3. Hi all,

     

    I would like you to critic a website which i have recently turned from a french/english pen pal site, to a worldwide language penpal site. I'm not going to tell you much about it, as I don't want this to influence how you navigate, understand the content, etc.

     

    If you are looking for a penpal, feel free to post a message, I would be very grateful as this would help you, the world and the site as a whole.

     

    Here is the link: http://www.penpalamis.info/

     

    Thank you all, I look forward to any criticisms

     

    Jake.

  4. I have an ajax script getting values from a database, the php script which gets the values displays the pound sign correctly, however the page which uses ajax to get this page displays it as the question mark. Any ideas on how i can resolve this? Thanks.

×
×
  • 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.