Current location: Hot Scripts Forums » Programming Languages » PHP » Anybody know whats wrong


Anybody know whats wrong

Reply
  #1 (permalink)  
Old 12-30-03, 08:22 PM
NerdRUS NerdRUS is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Talking Anybody know whats wrong

<?php

include('header.php');

$query2 = "select * from gangs";
$display2 = mysql_query($query2);
$row2 = mysql_fetch_array($display2);
$gname2 = $row2['gangname'];
$gangname = $result_ar['gangname'];
$username = $row['username'];
$search2 = mysql_query("select * from '$gangname' where gangmembers = '$username'");
$num_rows = mysql_fetch_array($search2);

echo '<td width="619" height="240" valign="top">';
echo '<table width="85%" height="144" border="1" align="center" bordercolor="#FFFFFF">';
echo '<tr>';
echo '<td height="23"><div align="center"><font color="#FFFFFF" size="1" face="Verdana, Arial, Helvetica, sans-serif">:. Record Agencies</font></div></td>';
echo '</tr>';
echo '<tr>';
echo '<td height="74"><p>&nbsp;</p>';
echo '<p><font color="#CCCCCC" size="1" face="Verdana, Arial, Helvetica, sans-serif"><center>';

if ($gangsid != $result_ar['gangname'])
{

echo '<table width="450" border="1" bordercolor="#FFFFFF" font size=1 color="#FFFFFF">';
echo '<tr>';
echo '<td>';
echo '<tr>';
echo '<td><font size=1 color="#FFFFFF"><center><b>:Agency ID:</b></center></font></td>';
echo '<td><font size=1 color="#FFFFFF"><center><b>:Record Agency Name:</b></center></font></td>';
echo '<td><font size=1 color="#FFFFFF"><center><b>:Agency Level:</b></center></font></td>';
echo '</tr>';

$result = mysql_query("SELECT * FROM gangs ORDER BY gangid") or die("error querying database");
$i = 0;

while($result_ar = mysql_fetch_assoc($result)){
echo '<tr>';
echo '<td><font size=1 color="#FFFFFF">';
echo '<center>';
echo $result_ar['gangid'];
echo '</center>';
echo '</font></td>';
echo '<td><font size=1 color="#FFFFFF">';
echo "<a href=\"listrecord.php?gangsid=".$result_ar['gangname']."\">";
echo '<center>';
echo $result_ar['gangname'];
echo '</center></a>';
echo '</font></td>';
echo '<td><font size=1 color="#FFFFFF">';
echo '<center>';
echo $result_ar['ganglevel'];
echo '</center></font></td></tr>';
$i+=1;
}
} else {
echo 'Its Not Set Up Yet But You Still Have Your Agency, Just Check Back Later';
echo '<br><a href="enter.php">[Go Home]</a>';
}

if ($gangsid == $gangname)
{
if ($num_rows > 0)
{
echo 'your in the gang and the pages will be updated later ~Masta D (Administrator)';
} else {
echo 'You are not the owner of this Agency or even a part of so just leave';
}
}
?>

<br>
</td>
</tr>
</table>
</center> </font></p>
<p></p>
<p>&nbsp;</p></td>
</tr>
</table></td>

<?php

include('footer.php');

?>
__________________
WEB: Prison City *Under Development* Not released to public yet.

Last edited by NerdRUS; 12-30-03 at 08:24 PM.
Reply With Quote
  #2 (permalink)  
Old 12-31-03, 06:37 AM
Stefan's Avatar
Stefan Stefan is offline
Junior Code Guru
 
Join Date: Jun 2003
Location: Utrecht, The Netherlands
Posts: 599
Thanks: 0
Thanked 0 Times in 0 Posts
it would be useful if you told us what error you are getting so we know where to start searching.
Reply With Quote
  #3 (permalink)  
Old 12-31-03, 11:39 AM
NerdRUS NerdRUS is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
my fault

it just that it dont run the page i want

www.page.com/page.php?action=$whatever

it dont got to the page whatever
__________________
WEB: Prison City *Under Development* Not released to public yet.
Reply With Quote
  #4 (permalink)  
Old 01-01-04, 11:11 PM
usman usman is offline
New Member
 
Join Date: Jul 2003
Location: Pakistan
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
well you are not redirecting the page anywhere in your code

to redirect the page to someother page you can use

<?php
$action = "destination.php";
header("location:$action");
?>
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
What have I done wrong now??? DAL Perl 4 11-24-03 06:26 PM
what am i doing wrong?? metamorphosis The Lounge 1 08-20-03 05:37 PM
help me determine whats wrong Cmrdrv The Lounge 6 08-12-03 11:57 AM
something wrong with this code superman PHP 3 07-06-03 10:55 PM
[RESOLVED]Forum time is wrong by 5 hours jrobbio HotScripts Site Bug Reports 1 06-07-03 10:46 PM


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