Activity Stream
48,167 MEMBERS
61032 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 10 of 33

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1.     
    #1
    OH GOD!!!!!
    Website's:
    HotNewHipHop.com
    #1064 - 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 '$x = mysql_query('SELECT * FROM fblike ORDER BY id DESC LIMIT 0,1')' at line 1
    bxflow Reviewed by bxflow on . MySQL Error Im installed some script but i get this errors Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/XXXXXXX/public_html/index.php on line 99 line 99: while ($y=mysql_fetch_assoc($x)) Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/XXXXXXX/public_html/index.php on line 80 Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Respected Developer
    Website's:
    wrzc.org
    Quote Originally Posted by bxflow View Post
    #1064 - 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 '$x = mysql_query('SELECT * FROM fblike ORDER BY id DESC LIMIT 0,1')' at line 1
    The only part you run in PHPmyadmin is
    Code: 
    SELECT * FROM fblike ORDER BY id DESC LIMIT 0,1


    Anyway a bit offtopic but you should escape this and make it safe:
    PHP Code: 
    $like=$_POST["like"]; 
    PHP Code: 
    $like=mysql_real_escape_string($_POST["like"]); 
    It will help prevent hacking and make your script safer.

    More info here http://php.net/manual/en/function.my...ape-string.php
    Tutorial How to SEO your Warez Site a guide to help you increase your organic traffic

    Huge list of Warez Sites and free Multiposter Templates

  4.     
    #3
    OH GOD!!!!!
    Website's:
    HotNewHipHop.com
    Quote Originally Posted by Mr Happy View Post
    The only part you run in PHPmyadmin is
    Code: 
    SELECT * FROM fblike ORDER BY id DESC LIMIT 0,1
    Anyway a bit offtopic but you should escape this and make it safe:
    PHP Code: 
    $like=$_POST["like"]; 
    PHP Code: 
    $like=mysql_real_escape_string($_POST["like"]); 
    It will help prevent hacking and make your script safer.

    More info here http://php.net/manual/en/function.my...ape-string.php

    thanx,


    #1064 - 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 ''SELECT * FROM fblike ORDER BY id DESC LIMIT 0,1' at line 1

  5.     
    #4
    Respected Developer
    Website's:
    wrzc.org
    Quote Originally Posted by bxflow View Post
    thanx,


    #1064 - 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 ''SELECT * FROM fblike ORDER BY id DESC LIMIT 0,1' at line 1
    Try it again. You have an extra ' before the SELECT that shouldn't be there. Probably an error copying and pasting it.

    PHPmyadmin checked for
    Code: 
    'SELECT * FROM fblike ORDER BY id DESC LIMIT 0,1
    when it should be
    Code: 
    SELECT * FROM fblike ORDER BY id DESC LIMIT 0,1
    Tutorial How to SEO your Warez Site a guide to help you increase your organic traffic

    Huge list of Warez Sites and free Multiposter Templates

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. MySQL Error
    By KINGTHE_ALI in forum Webmaster Discussion
    Replies: 4
    Last Post: 17th Nov 2011, 05:40 PM
  2. Database error-mysql error
    By saini in forum vBulletin
    Replies: 8
    Last Post: 8th Nov 2011, 06:54 AM
  3. MYSQL Error while Import via MYSQL Dumper (Error
    By desibreaker in forum Server Management
    Replies: 10
    Last Post: 5th Aug 2011, 07:26 PM
  4. MySQL Error
    By II AnDo II in forum Web Application/Script Support
    Replies: 2
    Last Post: 17th Aug 2009, 08:45 PM
  5. MySQL error
    By mash-e1 in forum Webmaster Discussion
    Replies: 2
    Last Post: 28th Mar 2009, 12:12 PM

Tags for this Thread

BE SOCIAL