When I have my paypal button set so that is redirects to http://empiremarketing.ca/order.php,it works just fine. But when I change the redirect URL to something like: http://empiremarketing.ca/order.php?link=7, it all of a sudden does not work. How can I fix this?
I did not create this page, but I am trying to get it to work so that it redirects to this page: http://empiremarketing.ca/order.php?link={$redirlink}
I know there is supposed to be some magic happening, but it is not. Any ideas?
Here is the page PHP code:
Code: <?php
$newprice = $_GET['np'];
$ordertotal = $_GET['tt'];
$redirlink = $_GET['redir'];
require_once ("config.php");
$con = mysql_connect($hostname, $dbuser, $dbpass) or die(mysql_error());
$select = mysql_select_db ($selectdb, $con) or die(mysql_error());
$update = "UPDATE linkcount SET price = '$newprice' WHERE id = 1";
$result = mysql_query($update, $con) or die (mysql_error());
#Create PHP Session for the number of link boxes to be shown after paypal payment
session_start();
session_register();
$_SESSION['link_number'] = $redirlink;
?>
<html>
<head>
<title>Empire Marketing - SEO Services: Pre-Order Form</title>
</HEAD>
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" bgcolor="#ffffff" background="images/bg.jpg"><center>
<table border="0" height="100%" width="916" cellpadding="0" topmargin="0" cellspacing="0" background="images/bg2.jpg">
<tr>
<td align="center" valign="top"><img src="images/header.jpg"><BR><img src="images/header2.jpg">
<table width="800" border="0" cellspacing="0" cellpadding="8">
<tr>
<td align="justify">
<font face="Verdana">
<div align="center">
<h1>Order Confirmed</h1>
<?php
echo ("<a href="https://www.paypal.com/xclick/business=me@mygreatempire.com&undefined_quantity=0&item_name={$redirlink}MthlyURL&amount=$ordertotal¤cy_code=USD&return=http://empiremarketing.ca/order.php">Click here to pay via PayPal.</a>
");
?>
</div>
<br />
<br />
</font>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center" valign="bottom">
<img src="images/footer.jpg">
</td>
</tr>
</table>
</center>
</body>
</html>
php calculate
this code echoes correctly the sum but the inserted result is 0??Code:
Batch update record with Pagination
Hoping someone can help me with this issue I'm having, im trying to batch update records from a result set with pagination. The first page results (first 10 records) will update with the batch, but
Insert to MySQL inside foreach
Hey.I am parsing some html, and putting inside an html db.I need to create a randomized integer to be a unique identifier, and i chose just to use time().But I foreach the results, and inside here i
multiple recipients + dbuser mail recall
Hello,I am building a php login script.When the user registers the script will send him a confimation email using this codemail($usr_email, "Login Details", $message, "From:
How to get variable value on next page
Hello friends i am working on payentry page ..there i have this code......... Code: $str="select MAX(PSRN) from paymajor";$result=mysql_query($str) or
PHP Thumbnail Creation
Ok so i use this function to create thumbnails:Code: [Select]function createthumb($name,$filename,$new_w,$new_h){ $system=explode('.',$name); $src_img=imagecreatefrompng($name);
please help me... my password gets encrypted but not able to get in database
hai guys, please help me... in the following function my password gets encrypted but not able to get in database.is any error in the query please help me...... <?php $email =
Undefined offset when using a flat file with pipe symbols
Hi, I've got a flat file/text file which I'm currently using as a member database for my site (not advisable I know.. but still learning here).In a section of code I need to separate the fields to
extract data
Code: <div class="post hentry uncustomized-post-template"> <div id="post-title-wrapper"> <a
Using system() and bringing back the results
I am aware that you can use system() within PHP to execute system commands, but I was wondering if there was a reasonable way to bring back the results every second.For example, I want a web based