ok some how this is not working i am not sure what i am doing wrong here but what this does is when the user goes to Secret-Codes.php they get a menu and when they pick the phone they want to view it then displays it as expl www.bhawap.com/Secret-Codes?phone=Nokia but i some how am doing something wrong here is my code
Code: <?php
$ShowBookmark = "False";
include 'Include/Header.php';
if($_GET['phone'] == True) {
GetCodes();
}else {
Show_Form();
}
function Show_Form() {
$thedate = date('l dS F Y');
echo '<div class="hd2"><font color=#666666><strong><center>Mobile Secret Codes</center></strong></font></div>
';
echo '<center><font face="Verdana" size="2" color="#3366ff"><u>' .$thedate. '</center></u></font>';
echo '<table id="" border="0" style="font-size:9pt;width:100%;">';
echo '<tr style="font-color:#85859c;"><td style="width:10px;"><img src="Images/Logos/tools.gif"></td><td>';
echo '<font face="Verdana" size="2"><b><a href="Secret-Codes.php?phone=BenQ">BenQ</b></font></a>
';
echo '</td></tr>';
echo '<tr style="font-color:#85859c;"><td style="width:10px;"><img src="Images/Logos/tools.gif"></td><td>';
echo '<font face="Verdana" size="2"><b><a href="Secret-Codes.php?phone=Nokia">Nokia</b></font></a>
';
echo '</td></tr>';
echo '<tr style="font-color:#85859c;"><td style="width:10px;"><img src="Images/Logos/tools.gif"></td><td>';
echo '<font face="Verdana" size="2"><b><a href="Secret-Codes.php?phone=Lg">Lg</b></font></a>
';
echo '</td></tr>';
echo '<tr style="font-color:#85859c;"><td style="width:10px;"><img src="Images/Logos/tools.gif"></td><td>';
echo '<font face="Verdana" size="2"><b><a href="Secret-Codes.php?phone=Sharp">Sharp</b></font></a>
';
echo '</td></tr>';
echo '<tr style="font-color:#85859c;"><td style="width:10px;"><img src="Images/Logos/tools.gif"></td><td>';
echo '<font face="Verdana" size="2"><b><a href="Secret-Codes.php?phone=Motorola">Motorola</b></font></a>
';
echo '</td></tr>';
echo '<tr style="font-color:#85859c;"><td style="width:10px;"><img src="Images/Logos/tools.gif"></td><td>';
echo '<font face="Verdana" size="2"><b><a href="Secret-Codes.php?phone=Samsung">Samsung</b></font></a>
';
echo '</td></tr>';
echo '<tr style="font-color:#85859c;"><td style="width:10px;"><img src="Images/Logos/tools.gif"></td><td>';
echo '<font face="Verdana" size="2"><b><a href="Secret-Codes.php?phone=Sony-erricson">Sony-erricson</b></font></a>
';
echo '</td></tr>';
echo '<tr style="font-color:#85859c;"><td style="width:10px;"><img src="Images/Logos/tools.gif"></td><td>';
echo '<font face="Verdana" size="2"><b><a href="Secret-Codes.php?phone=Sagem">Sagem</b></font></a>
';
echo '</td></tr>';
echo '</table>';
echo '<center><font face="Verdana" size="2"><?php echo $GLOBALS["Advert03"]; ?></font></center>';
echo '<table id="" border="0" style="font-size:9pt;width:100%;">';
echo '<tr style="font-color:#85859c;"><td style="width:10px;"><img src="Images/Logos/Logo_Back.gif"></td><td>';
echo '<font face="Verdana" size="2"><b><a href="index.php">Back</b></font></a>
';
echo '</td></tr>';
echo '</table>';
echo '<hr>';
include 'Include/Footer.php';
Show_Buttons("True", "index.php?Cmd=100","True");
}
function GetCodes() {
if($_GET['phone'] == "Sagem"){
$getMyDataFrom = phone-codes/sagem.txt
}
if($_GET['phone'] == "Lg"){
$getMyDataFrom = phone-codes/lg.txt
}
if($_GET['phone'] == "Motorola"){
$getMyDataFrom = phone-codes/motorola.txt
}
if($_GET['phone'] == "Nokia"){
$getMyDataFrom = phone-codes/nokia.txt
}
if($_GET['phone'] == "Samsung"){
$getMyDataFrom = phone-codes/samsung.txt
}
if($_GET['phone'] == "Sharp"){
$getMyDataFrom = phone-codes/sharp.txt
}
if($_GET['phone'] == "Sony-erricson"){
$getMyDataFrom = phone-codes/sony-erricson.txt
}
if($_GET['phone'] == "BenQ"){
$getMyDataFrom = phone-codes/benq.txt
}
if(!isset($_GET['page'])){
$page=0;
} else {
$page=$_GET['page'];
}
$numsent=8; //number of sentences per page
$lines = file(' .$getMyDataFrom. ');
$startnum=$page*$numsent;
$endnum=$startnum+$numsent;
$numpartsinstring=count($lines); //counts number of lines in string
for($i=0;$i<$startnum;$i++){
unset($lines [$i]); //kills parts before
}
for($j=$endnum;$j<$numpartsinstring;$j++){
unset($lines [$j]); // kill parts after
}
$newstring=implode($lines,'
');
$i=0;
$upper = 60;
while ($i <= $upper) {
$newstring = str_replace($i, '<font face="Verdana" color="red">' . $i . '</font>', $newstring);
$i++;
}
$newstring = str_replace('#', '<font face="Verdana" color="red">#</font>', $newstring);
$newstring = str_replace('-', '<font face="Verdana" color="red">-</font>', $newstring);
$newstring = str_replace('*', '<font face="Verdana" color="red">*</font>', $newstring);
print ' <div class="hd2"><center><font color=#666666><strong>BenQ Secret codes</strong></font></center></div>
'."n";
print '<font face="Verdana" size="2">' .$newstring. '</font>';
print "
";
$numpages=ceil($numpartsinstring/$numsent);
for($i=1;$i<=$numpages;$i++){
$actualstart=$i-1;
if($actualstart!=$page) {
print "<A href='BenQ.php?page=$actualstart'>$i</a> ";
} else {
print "$i ";
}
}
}
?>
<center><font face="Verdana" size="2"><?php echo $GLOBALS["Advert03"]; ?></font></center>
<table id="" border="0" style="font-size:9pt;width:100%;">
<tr style="font-color:#85859c;"><td style="width:10px;"><img src="Images/Logos/Logo_Back.gif"></td><td>
<font face="Verdana" size="2"><b><a href="secret-codes.php">Back</b></font></a>
</td></tr>
</table>
<hr>
<?php
include 'Include/Footer.php';
Log_Hit("secret-codes");
?>
Blogging s/w
heya frndz!!! i want to start a blog.... m looking for a s/w like oscommerce which is thr for e-comm websites... so can u please suggest me some s/w through which i can set up the blog... thnx in
SAP Project Module
I have seen in the SAP Project Module,plan cost and budget are not equal and even difference is significal for e.g Plan cost is 112 million where as budget is 136 million. In this situation what will
selection tool on raster image
Hi!I have to implement in my app a selection tool which lets users to select region of any shape in raster image (in graphics aplication it is called "free shape selection tool" or lasso). Anybody
check_changed_data - I can't get data from the called method event
I use check_changed_data to trigger my event method.
Error with login script
I am getting an error with my login script:Error:Code: Warning: Cannot modify header information - headers already sent by (output started at /home/bucket/public_html/inc/config.php:7) in
How to refresh a parent page from a modal popup
Hi,I have a modal popup in which I need to upload a file and store in the database should give a message to the user that file is uploaded and update the parent page when I close the
Help with email validation please...
Hi, Please could you help. I have a register.php login page where users register, the details are then logged into a temporary database, the user receives an email to verify their email address and
need to apply an if/else statement to Tim Thumb script
Not sure how to work this. I essentially want to call a variety of image sizes based on which stylesheet a user chooses from the administration backend of a wordpress theme. The sizes of the images
Is STL important?
I'm just starting programming and I've made it until the Standart Template Library. But the chapter seems incredibly boring, daunting and complicated, it looks so awful that I haven't yet read it so I
Not "Just Another" MMORPG - text based.
Hello,I've been learning MySQL and PHP for the last 2-3 years.Though, I've had long pauses and months without touching PHP.Now, I started at a new school this autumn, and I found that some of my old