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 11-22-2012, 12:30 PM   PM User | #1
Jimbolgs
New Coder

 
Join Date: Nov 2011
Posts: 32
Thanks: 15
Thanked 0 Times in 0 Posts
Jimbolgs is an unknown quantity at this point
expects parameter, boolean given

Hello,

An elderly gentleman has asked me to get an old PHP/MYSQL site working, he supplied it on CD. I've uploaded it to my server, made a new database and imported his old one with new user / password etc etc.

It's a VERY dated site and I'm going to persuade him to have a new one but when I make a selection from the pull-downs on the left I get this, plus other errors:

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/ncapc605/public_html/mintinbox/config/functies.php on line 298

Have a look at: http://mintinbox.leemingdesign.co.uk/

Ps... man who made original site was Dutch and is now dead so there's not much chance of any help from him.

He's set on having this up an running, so is it worth investigating a solution to this error or what?
Jimbolgs is offline   Reply With Quote
Old 11-22-2012, 12:35 PM   PM User | #2
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,667
Thanks: 45
Thanked 456 Times in 444 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
What that means is that instead of being supplied with a mysql resource such as a result set, the function was supplied with a true or false instead (which is called a boolean).

There is nothing we can do to help without seeing the source code. Giving us the url means nothing as we can only see html but naturally in a php forum..
__________________
Please don't be rude: Put your php code in [php][/php] tags. It is a sticky topic at the top of the forum and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.
tangoforce is offline   Reply With Quote
Users who have thanked tangoforce for this post:
Jimbolgs (11-22-2012)
Old 11-22-2012, 12:51 PM   PM User | #3
Jimbolgs
New Coder

 
Join Date: Nov 2011
Posts: 32
Thanks: 15
Thanked 0 Times in 0 Posts
Jimbolgs is an unknown quantity at this point
The PHP is approx 1,300 lines — do you want it all or just the lines producing the errors?
Jimbolgs is offline   Reply With Quote
Old 11-22-2012, 01:14 PM   PM User | #4
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,667
Thanks: 45
Thanked 456 Times in 444 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
The forum won't let you post that amount so if I were you, just the relevant code.

I'm puzzled though as to why this is an issue if you're going to make a new site anyway?
__________________
Please don't be rude: Put your php code in [php][/php] tags. It is a sticky topic at the top of the forum and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.
tangoforce is offline   Reply With Quote
Old 11-22-2012, 01:27 PM   PM User | #5
Jimbolgs
New Coder

 
Join Date: Nov 2011
Posts: 32
Thanks: 15
Thanked 0 Times in 0 Posts
Jimbolgs is an unknown quantity at this point
The guy is nearly 70 and I'd like to be able to tell him why it's not working rather than just trying to sell him a new site.

Don't worry about it, thanks for your help but the site's probably not worth bothering with.
Jimbolgs is offline   Reply With Quote
Old 11-22-2012, 01:33 PM   PM User | #6
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,667
Thanks: 45
Thanked 456 Times in 444 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
Quote:
Originally Posted by Jimbolgs View Post
Don't worry about it, thanks for your help but the site's probably not worth bothering with.
? Whats with the sudden change?

Post the code, we'll have a look.

I suspect it's one of two things:
1) Database connection failure
2) Bad query / database isn't intact.
__________________
Please don't be rude: Put your php code in [php][/php] tags. It is a sticky topic at the top of the forum and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.
tangoforce 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 04:38 PM.


Advertisement
Log in to turn off these ads.