Current location: Hot Scripts Forums » Programming Languages » PHP » print '<?php code here! ?>


print '<?php code here! ?>

Reply
  #1 (permalink)  
Old 05-13-05, 08:42 PM
keeM keeM is offline
New Member
 
Join Date: May 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
print '<?php code here! ?>'

PHP Code:

<?php

                session_register
('rank');
if(isset(
$_SESSION['esports'])) {
if(
$_SESSION['rank'] == 1) { print '1'; } elseif($_SESSION['rank'] == 2) { print '2'; } elseif($_SESSION['rank'] == 3) { print '3'; } elseif($_SESSION['rank'] == 4) { print '4'; }
} else {
print 
'<table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0" class="includes">
  <tr>
    <td><form action="index.php?map=system&page=login_check" method="post" name="login" id="login">
        Username:<br>
        <input name="username" type="text" id="username" size="25">
        <br>
        Password:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>(</b> <a href="index.php?map=system&page=lost_pw">?</a> <b>)</b><br>
        <input name="password" type="password" id="password" size="25">
        <br>
        <a href="javascript:login.submit()">Login</a> - <a href="index.php?map=system&page=register">Register</a><br></form></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><strong>MEMBERS</strong><br>
      <table width="100%"  border="0" cellpadding="0" cellspacing="0" class="includes">!!!!!!!!!!!!!!!!!!!!!!!!!!!!! HERE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!</table></td>
  </tr>
</table>'
; } ?>
i want this code there "!!!!!!!!!!!!!!!!!!!!!!!!!!!!! HERE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!" is
PHP Code:

<?php $query mysql_query("SELECT location FROM profile ORDER BY location DESC");

  while(
$get mysql_fetch_array($query))
      {
      
$total mysql_result(mysql_query("SELECT COUNT(*) as Num FROM profile WHERE location='$get[location]'"),0);
      print 
'<tr>
    <td width="10%" align="center"><img src="images/flags/'
.$get[location].'.png" width=13 height=13 alt=""></td>
    <td width="90%">'
.$total.'</td>
  </tr>'
;
      } 
?>
HOW ?!?!?

Last edited by keeM; 05-13-05 at 08:50 PM.
Reply With Quote
  #2 (permalink)  
Old 05-13-05, 10:07 PM
Sabu Sabu is offline
Junior Code Guru
 
Join Date: Sep 2004
Posts: 458
Thanks: 0
Thanked 0 Times in 0 Posts
try this
PHP Code:

<?php

                session_register
('rank');
if(isset(
$_SESSION['esports'])) {
if(
$_SESSION['rank'] == 1) { print '1'; } elseif($_SESSION['rank'] == 2) { print '2'; } elseif($_SESSION['rank'] == 3) { print '3'; } elseif($_SESSION['rank'] == 4) { print '4'; }
} else {
print 
'<table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0" class="includes">
  <tr>
    <td><form action="index.php?map=system&page=login_check" method="post" name="login" id="login">
        Username:<br>
        <input name="username" type="text" id="username" size="25">
        <br>
        Password:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>(</b> <a href="index.php?map=system&page=lost_pw">?</a> <b>)</b><br>
        <input name="password" type="password" id="password" size="25">
        <br>
        <a href="javascript:login.submit()">Login</a> - <a href="index.php?map=system&page=register">Register</a><br></form></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><strong>MEMBERS</strong><br>
      <table width="100%"  border="0" cellpadding="0" cellspacing="0" class="includes">'
;

$query mysql_query("SELECT location FROM profile ORDER BY location DESC");
  while(
$get mysql_fetch_array($query))
      {
      
$total mysql_result(mysql_query("SELECT COUNT(*) as Num FROM profile WHERE location='$get[location]'"),0);
      print 
'<tr>
    <td width="10%" align="center"><img src="images/flags/'
.$get[location].'.png" width=13 height=13 alt=""></td>
    <td width="90%">'
.$total.'</td>
  </tr>'
;
      }

print 
'</table></td>
  </tr>
</table>'
; } ?>
Reply With Quote
Reply

Bookmarks


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

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Classified Ads skipper23 Perl 3 11-22-05 02:22 AM
Mysql Search Output Question doveroh PHP 0 02-15-05 07:39 PM
formmail problem gscraper Perl 12 08-27-04 03:06 AM
Upload Script Problem!!! seanknighton Perl 0 03-21-04 09:54 PM
Classified Ads skipper23 Perl 2 12-30-03 03:43 AM


All times are GMT -5. The time now is 06:44 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.