RingsWorld.com RingsWorld.com [Have a Blog? Submit It!new] [Create your Site-Ring Community]

PHP - phpBannerExchange2.0 Banner Error

:(: Messages Boards, Forums and Discussions :):
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri Nov 20, 2009 10:18 pm
All times are GMT
Board.RingsWorld.com » Internet » Webmaster Community » Programming » PHP
phpBannerExchange2.0 Banner Error
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
RSS Feed Add to My MSN Add to My Yahoo! Add to Google
Global Discussions
Author Message
Yuripro84



Joined: 02 Apr 2007
Posts: 2
PostPosted: Mon Apr 02, 2007 2:25 am    Post subject: Note phpBannerExchange2.0 Banner Error
Subject description: mysql_real_escape_string
Reply with quote

Hey guys, this script is nice (phpBannerExchang2.0), and I have big plans for it, but the banner exchange part doesn't want to work! What I mean is, when you try to add the banner code on a site, it comes up with loads of errors. I came here wondering if anyone knows what the heck is wrong with it! I didn't mess with the view.php file, but I think this is where the error is. :/ Am I supposed to do something to it though?

In the IFram created by the code, where the banner is, shows loads of errors. I went to that page, and this came up:
Code:

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/exchange/public_html/view.php on line 43

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /home/exchange/public_html/view.php on line 43

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/exchange/public_html/view.php on line 44

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /home/exchange/public_html/view.php on line 44
Invalid Banner Code!


Here was the code that was inputed into the site:
Code:
<!--Begin BannerXchange code -->
<center><iframe align=top width=468 height=60 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no src="http://bexchange.hastyhost.com/view.php?uid=1&cat=0"><ilayer align=top width=468 height=60 src="http://bexchange.hastyhost.com/view.php?uid=1&cat=0"></ILAYER> </iframe>
<!--End BannerXchange code -->


So, I am almost certain it's the view.php page, no? It says there's something wrong with lines 43 and 44. Here is the code on those two lines:
Code:
$uid=mysql_real_escape_string($uid);
$cat=mysql_real_escape_string($cat);


Although I'm not sure what 'cat' stands for, I can tell you that UID is used for determing the User's ID. If you need the rest of the page's code, look here:
http://scripts.ringsworld.com/exchanges/phpbannerexchange2.0/exchange/view.php.html

Also, to see exactly what I mean, I tried adding the code to a template a friend and I were creating for my site. Look at the bottom of this page, you'll see it gives errors in an IFrame:
http://bexchange.hastyhost.com/chris/index2.php

Thanks in advance for any help! If I did not provide enough information, please tell me what you may need, but that should be enough, I'd think.
Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
Board.RingsWorld.com » Internet » Webmaster Community » Programming » PHP
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
PHP: Latest Discussions
Missing openssl
by phpwizard01 - 896 days ago
Need a good captcha generating php script
by danielus - 928 days ago
Glossary and Dictionary Script
by GLOSSARYSCRIPT - 942 days ago
phpBannerExchange2.0 Banner Error
by Yuripro84 - 963 days ago
phpbannerexchange2.0 urgent
by Yuripro84 - 963 days ago
php hit counter
by kwayug - 969 days ago
php codes for downloading and uploading a folder/directory
by kwayug - 969 days ago
comments script on webpage
by osterhas - 988 days ago
Problem with PHP & MySql Database
by rice_Jacob - 1011 days ago
Php developers community
by rice_Jacob - 1011 days ago
Free PHP Scripts
by coguy11 - 1014 days ago
CMS
by Urban Legend - 1030 days ago

Link to this Page

If you want to link to this page you can use the following URL:


Example:
 
The PHP Web-Ring Community
The PHP Web-Ring Community
The purpose of this Ring is to link together the best sites and resources on the PHP programming language. Everyone with a quality site is welcome to join. (tutorials, documentation, tips, help, forums,...)
(14 members)

» Submit your site and Join The PHP Web-Ring Community

 
 

External Links
 

PHP NewsLetter

0.089148044586182