Unstoppable Domains

Php echo help please

Spaceship Spaceship
Watch

alcapone

Established Member
Impact
0
Hello Everyone,


I need a little help with a php page were i want a page to show this text until a job is done.Im working on a game and this is for the job page.

when you look at the page it will say this

Complete jobs to gain experience, earn money, and level up.

Remember, the bigger your family, the more experience and money you'll receive. Unlock harder jobs by leveling up.
(Reach level 9 to unlock more jobs)

And in same area after you do the job i want the job done to appear in same area


here is the code im working with
PHP:
   <TD width="760" style="PADDING-RIGHT: 30px"><H1>
            
            <span class="paragraph2" style="PADDING-TOP: 5px"><?php
	if($error!="")
	{
	?> </span><?php echo $err = ErrorMessage($error);?>

	<?php
	}
	?>
            Complete jobs to <STRONG>gain experience, earn money, and level 
            up.</STRONG></H1>
              <P style="FONT-SIZE: 13px">Remember, the bigger your family, the more 
                experience and money you'll receive. Unlock harder jobs by leveling 
                up.</P> 
            <?php
		$level = $user["level"];
		$nextLevelRow = mysql_fetch_array(db_execute_return("Select level from jobs where level>".$level." Order by level DESC Limit 1;"));
	$nextLevel = $nextLevelRow["level"];
	
		?>
              <P style="PADDING-TOP: 5px" class=paragraph2>(Reach <?php echo "level " . $nextLevel = $level+1;?> to unlock more 
                jobs)              </P>
       
</TABLE>

now im sure i can echo it but im not sure on how to do it any help would be great
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
PHP:
   <TD width="760" style="PADDING-RIGHT: 30px"><H1>
            
            <span class="paragraph2" style="PADDING-TOP: 5px"><?php
    if($error!="")
    {
    ?> </span><?php echo ErrorMessage($error);?>

    <?php
    }
    ?>
            Complete jobs to <STRONG>gain experience, earn money, and level 
            up.</STRONG></H1>
              <P style="FONT-SIZE: 13px">Remember, the bigger your family, the more 
                experience and money you'll receive. Unlock harder jobs by leveling 
                up.</P> 
            <?php
        $level = $user["level"];
        $nextLevelRow = mysql_fetch_array(db_execute_return("Select level from jobs where level>".$level." Order by level DESC Limit 1;"));
    $nextLevel = $nextLevelRow["level"];
    
        ?>
              <P style="PADDING-TOP: 5px" class=paragraph2>(Reach <?php echo "level " . $level+1;?> to unlock more 
                jobs)              </P>
       
</TABLE>

Try without using '=' in the echo statements like above.
 
0
•••
try echoing like this:

<?=$Variable;?>

In the most cases it works.. depends on your php.ini configuration
 
0
•••
try echoing like this:

<?=$Variable;?>

In the most cases it works.. depends on your php.ini configuration

The use of short tage should be avoided in favour of the full tags especially if you have no control over the server ths script is to be run on.
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99
Appraise.net

We're social

Unstoppable Domains
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back