Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-12-2013, 11:41 AM   PM User | #1
vchosting
New to the CF scene

 
Join Date: Sep 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
vchosting is an unknown quantity at this point
mysql_fetch_array Error

Ok so I'm stuck.

This is the site on its current server

www.police-information.co.uk

When we transfer it to the new server we get a constant list of errors.

Temp domain where all errors appear www.vc-hosting.net

The same error appears throughout the site,

Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in/home/policein/public_html/includes/popup_ad.html on line 5

If I look at the code for this file;

PHP Code:
<?php
$uri 
$_SERVER['REQUEST_URI'];
$q "SELECT cms_area7 FROM pages WHERE uri = '$uri'";
$r mysql_query($q);
$row mysql_fetch_array($r);
$c $row['cms_area7'];


$q "SELECT content FROM content WHERE content_id = '$c'";
$r mysql_query($q);
$row mysql_fetch_array($r);
echo 
$row['content'];
?>
All the errors relate to the exact same line of code that is present throughout all the files which is this one

PHP Code:
$row mysql_fetch_array($r); 
Any help would be greatly received.

Thanks
vchosting is offline   Reply With Quote
Old 01-12-2013, 11:48 AM   PM User | #2
vchosting
New to the CF scene

 
Join Date: Sep 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
vchosting is an unknown quantity at this point
Its ok - I have resolved this thank you
vchosting is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:59 AM.


Advertisement
Log in to turn off these ads.