Results 1 to 3 of 3
  1. #1

    substr() and strip_tags() error

    What is following error on this site and how can resolve?
    Its a cpanel/whm server:

    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/aliborzc/public_html/company_index.php on line 612

    Warning: Wrong parameter count for strip_tags() in /home/aliborzc/public_html/listings.php on line 942


  2. #2
    Join Date
    May 2009
    Whatever you're feeding into mysql_fetch_array isn't a valid MySQL query. Check that the query is correctly escaped and isn't calling any non-existent tables or columns. - Playing the best music from the 70s, 80s, 90s, 00s, and more...
    Commercial free, high quality 192kb/s, and firewall friendly port 80!
    Look for us in the iTunes Radio directory under Adult Contemporary

  3. #3
    Join Date
    Dec 2010
    In your mysql you are getting errors.

    Use this statement to get the error:
    $query = mysql_query("YOUR QUERY")or die(mysql_error());

Similar Threads

  1. MySQL Error : Got error -1 from storage engine Error Number : 1030
    By Linkdatacenter in forum Programming Discussion
    Replies: 2
    Last Post: 05-25-2008, 04:16 AM
  2. substr an array
    By -Edward- in forum Programming Discussion
    Replies: 4
    Last Post: 09-26-2007, 02:38 PM
  3. "internal 500 error" is it server error or script error??
    By americanahost in forum Web Hosting
    Replies: 6
    Last Post: 05-08-2007, 02:37 PM
  4. Replies: 7
    Last Post: 10-13-2005, 03:14 AM
  5. PHP: substr() and strrpos() probs, plz help...
    By SpeedFreak in forum Programming Discussion
    Replies: 3
    Last Post: 07-27-2003, 10:11 AM

Posting Permissions

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