PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
flintman
New Member
New Member


Joined: Jan 09, 2007
Posts: 13

PostPosted: Tue Jan 09, 2007 5:42 am Reply with quote Back to top

Hello all i made a center block to display some pics and a price. Now when i run this my right blocks disapper. I have checked the coding and everything looks ok. I tested this on the right and left side and everything works. But as soon as i put it in the middle i loose my right hand blocks
Code:
<?php


if (eregi("block-4sale", $_SERVER['PHP_SELF'])) {

    Header("Location: index.php");

    die();

}

$content = "";

$content .= '<table width="50%" border="0" align="center" cols="10" cellpadding="0" cellspacing="0"><tr>';

$hostname="********";
$username="****";
$password="*******";
$dbname="********";
mysql_connect($hostname,$username, $password) OR DIE ("Unable to connect to database! Please try again later.");
   mysql_select_db($dbname);

$query = "SELECT * FROM pic ";
$result = mysql_query($query);
$row = mysql_fetch_array($result);
extract ($row);
 $content .= '<td align="center" valign="baseline"><a href="/np/index.php?trl='.$id.' "><img src=/np/pics/'.$location .' HEIGHT=50 Width= 75 </img><br />' . $price . '</a></td>';
while ($row = mysql_fetch_array($result))
  {
    extract ($row);
    $content .= '<td align="center" valign="baseline"><a href="/np/index.php?trl='.$id.' "><img src=/np/pics/'.$location .' HEIGHT=50 Width= 75 </img><br />' . $price . '</a></td>';

 }
$content .= '</tr><tr align="center"><td colspan="10" valign="baseline"></td></tr></table>';



?>


Does anyone know why??


Last edited by flintman on Tue Jan 09, 2007 4:24 pm; edited 1 time in total
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Tue Jan 09, 2007 9:50 am Reply with quote Back to top

please change your topic title to something that addresses your problem.
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

PostPosted: Tue Jan 09, 2007 10:56 am Reply with quote Back to top

Is this for an older and unpatched version of nuke?

If it is for a fully patched nuke try replacing
Code:
if (eregi("block-4sale", $_SERVER['PHP_SELF'])) {

    Header("Location: index.php");

    die();

}
 

with
Code:
if(!defined('NUKE_FILE') && !defined('BLOCK_FILE')) { die("You can't access this file directly..."); }
View user's profile Send private message Send e-mail Visit poster's website
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Tue Jan 09, 2007 2:53 pm Reply with quote Back to top

not to mention the double quotes trashes the place...
escape " by \"
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Tue Jan 09, 2007 3:07 pm Reply with quote Back to top

The double quotes are fine inside single quotes.
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Tue Jan 09, 2007 3:17 pm Reply with quote Back to top

yeah i missed that...
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Tue Jan 09, 2007 3:21 pm Reply with quote Back to top

im not realy sure but i think its the html part that breaks it although it seems to be ok..
View user's profile Send private message
flintman
New Member
New Member


Joined: Jan 09, 2007
Posts: 13

PostPosted: Tue Jan 09, 2007 4:28 pm Reply with quote Back to top

i tried what you suggested with no luck. It is version 7.0 im going nuts trying to figure this out thanks for the help BTW
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Tue Jan 09, 2007 4:30 pm Reply with quote Back to top

7.0 of nuke ?
View user's profile Send private message
flintman
New Member
New Member


Joined: Jan 09, 2007
Posts: 13

PostPosted: Tue Jan 09, 2007 4:34 pm Reply with quote Back to top

ya
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Tue Jan 09, 2007 4:37 pm Reply with quote Back to top

does the platinum has error reporting ?
View user's profile Send private message
flintman
New Member
New Member


Joined: Jan 09, 2007
Posts: 13

PostPosted: Tue Jan 09, 2007 4:40 pm Reply with quote Back to top

I do have error reporting and not displaying anything.
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Tue Jan 09, 2007 4:45 pm Reply with quote Back to top

well i think im almost right on the reason..
if im wrong i apologize,but ive played a lot on my testsite and seen right sides disapear cause of the usage of quotes,double quotes...

To rule that out i would try to replace the ' with " and escape \"
you can try that with a duplicate block...
View user's profile Send private message
flintman
New Member
New Member


Joined: Jan 09, 2007
Posts: 13

PostPosted: Tue Jan 09, 2007 4:50 pm Reply with quote Back to top

ill give it a shot after supper ill let you know
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Tue Jan 09, 2007 4:52 pm Reply with quote Back to top

ok ...good luck....i hope that will fix it...
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Tue Jan 09, 2007 5:29 pm Reply with quote Back to top

I just noticed your image tags aren't closed correctly.

Try writing them like either:

<img ..... />

OR

<img ... ></img>
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Tue Jan 09, 2007 5:58 pm Reply with quote Back to top

nice...lol
i didnt saw that....
but as he says that all works its even more weird.
so <img src=/np/pics/'.$location .' HEIGHT=50 Width= 75
has to be <img src=/np/pics/'.$location .' HEIGHT=50 Width=75>

as far as development goes it doesnt need a img closing tag..
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Tue Jan 09, 2007 6:07 pm Reply with quote Back to top

Maybe his theme is messed up. I remember when I created my first center block I discovered my theme didn't have a themecenterbox() coded for it. Nuke had some code like "if !function_exists('themecenterbox')" and supplied a default implementation for that function. But of course it had the typical crazy stupid FB errors in it. You might want to look at your theme's themecenterbox() (see if you even have one).
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Tue Jan 09, 2007 6:08 pm Reply with quote Back to top

It maybe be useful to post a snippet of the generated HTML on and around your center block too.
View user's profile Send private message
flintman
New Member
New Member


Joined: Jan 09, 2007
Posts: 13

PostPosted: Tue Jan 09, 2007 6:09 pm Reply with quote Back to top

i did close my img. thanks gremmie didn't notice. Hitwalker I went with Your suggestion still the same problem
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Tue Jan 09, 2007 6:13 pm Reply with quote Back to top

and maybe a link to the site....
could help if we could see it...
View user's profile Send private message
flintman
New Member
New Member


Joined: Jan 09, 2007
Posts: 13

PostPosted: Tue Jan 09, 2007 6:18 pm Reply with quote Back to top

Well it's on my home pc i make the sites then upload when happy with it.
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Tue Jan 09, 2007 6:37 pm Reply with quote Back to top

another question that pops into my head...
can you try another theme....?
see if its the same...
View user's profile Send private message
flintman
New Member
New Member


Joined: Jan 09, 2007
Posts: 13

PostPosted: Tue Jan 09, 2007 6:47 pm Reply with quote Back to top

same with different theme
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Tue Jan 09, 2007 6:47 pm Reply with quote Back to top

Again, it maybe be useful to post a snippet of the generated HTML on and around your center block too. Display the page, then do a "view source" in your browser. Post a chunk of code around your center block.
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum