The time now is Sat May 17, 2008 7:54 pm
All times are GMT
|
Yuripro84
Joined: 02 Apr 2007 Posts: 2
|
Posted: Mon Apr 02, 2007 2:25 am Post subject:
phpBannerExchange2.0 Banner Error
Subject description: mysql_real_escape_string
|
|
|
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 |
|
 |
|
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
|
| Link to this Page |
|
If you want to link to this page you can use the following URL:
Example:
|
|
| The PHP Web-Ring Community
Sign-up to receive daily news on PHP by email.
|
|