Go Back   Novahq.net Forum > phphq.Net > phphq.Net Forums
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-29-2007, 01:09 AM
ShortChop is offline ShortChop
Registered User

Join Date: Jul 2007
Posts: 3

Script or MySQL

I'm trying to figure out if it's the script or the DB.

Here's the error I'm getting when I run the install.

I might have made a bad decision on the shoutbox I wanted but hey that's how we learn...by making mistakes. Either way take a look and tell me what you think:

Quote:
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in \phShoutBox\functions.php on line 87
Click here to install phShoutBox v1.5!
I can click on it and it looks like it installs but then it returns:
Quote:
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in phShoutBox\functions.php on line 87

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in \phShoutBox\functions.php on line 87
Can't connect to MySQL server on 'localhost' (10061)
When I go to the admin screen it says:
Quote:
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in \phShoutBox\functions.php on line 87

| phShoutBox Admin Home | Banned Ip's | Word Filter | More Scripts |

Banned Ip's
IP Remove

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in \phShoutBox\functions.php on line 87

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in \phShoutBox\functions.php on line 79
Just a courtesy FYI:I posted this same question on the another site that hosts this script/mod/hacks just in case you are very busy.

Any suggestions would be great!

TIA

-sc

P.S.

Quote:
function fetch($query="") {
$query=mysql_fetch_array($query);
return($query);
}

function query($query="",$sup="") {
If($sup) {
$query=mysql_query($query,$this->link);
} Else {
$query=mysql_query($query,$this->link);<---Line 87
}
return($query);
}

function rows($query="") {
$query=@mysql_num_rows($query);
return($query);
}
function free($query="") {

Last edited by ShortChop; 07-29-2007 at 01:44 AM.
Reply With Quote
  #2  
Old 07-29-2007, 04:52 AM
Lakie is offline Lakie

Join Date: Mar 2002
Posts: 5,540

Its probably that your sql connection info is wrong...
Reply With Quote
  #3  
Old 07-29-2007, 07:10 PM
ShortChop is offline ShortChop
Registered User

Join Date: Jul 2007
Posts: 3

Thanks mike I'll double check my settings.

Does the shoutbox require it's own DB or can it share w/ the PHPBB DB?

-sc
Reply With Quote
  #4  
Old 07-29-2007, 07:21 PM
Lakie is offline Lakie

Join Date: Mar 2002
Posts: 5,540

it can share the database, as long as there is no clashing tables, which shouldnt be a problem as i think phpbb prefixes table names with phpbb_ anyway...
Reply With Quote
  #5  
Old 07-29-2007, 10:22 PM
ShortChop is offline ShortChop
Registered User

Join Date: Jul 2007
Posts: 3

Cool

Got it resolved thanks~
Reply With Quote
  #6  
Old 07-29-2007, 11:20 PM
DevilDog#1 is offline DevilDog#1

Join Date: Jul 2002
Posts: 7,040

That's the reason before starting any DB you should normalize it. Just my humble opinion
__________________








Quote:
If I don't do that doesn't mean I can't - DD#1
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL 5.0 is out! DevilDog#1 Web design and Programming 4 01-14-2006 07:16 PM
MySql help Stu Web design and Programming 5 11-28-2004 05:25 AM
MySql Help -DFO-Ironic Web design and Programming 6 08-01-2004 10:16 PM
mysql help G.I.JOE*MFA* Tech Support 1 07-20-2003 09:22 PM
MySQL Kip Kilagan Web design and Programming 3 04-05-2003 10:34 AM


All times are GMT -5. The time now is 05:00 PM.




Powered by vBulletin®