How to get variable value on next page


Posted on 16th Feb 2014 07:03 pm by admin

Hello friends
i am working on payentry page ..there i have this code.........

Code: $str="select MAX(PSRN) from paymajor";
Did you know?Explore Trending and Topic pages for more stories like this.
$result=mysql_query($str) or die(mysql_error());
while($row=mysql_fetch_assoc($result))
{
$psrn=$row['MAX(PSRN)']+1;
}
i need to print $psrn value in the success page......for that i am using
header ('Location: http://localhost/bitssap/success.php');

but after success its showing this meassage
Data entered successfully. The PSRN generated is $psrn

i am not able to print the value of psrn on success page
can anybody suggest me how to do this...
No comments posted yet

Your Answer:

Login to answer
218 Like 32 Dislike
Previous forums Next forums
Other forums

How do I know when getBounds Method is ready to be called.
I have an application that changes out stylesheets client side. Once I change stylesheet the browse

imap: how to save a copy of sent emails to sent elements
Hello my friends,

I am writing an online emailing application with inbox outbox/sent elements

mail with attachment problems
Hi. I have the following code:
Code: else if(file_exists("site".$timp.".zip")

Getting number of affected rows in SQLPLUS..
Hi everyone,
I have a shell script where i am invoking sqlplus, running a query and saving t

Pulling out some result data from MYSQL
Hey Guys,

I've built a PHP page that has a for just imagine something like registration form

Last Weeks sDate and eDate.
sDate - Start Date
eDate - End Date

I need to pull two dates for "Last Week" whi

Keeping track of php uploads
Hello all.

I was looking at the way PHP handles file uploads.
It seems that PHP uses a tem

breaking a text file into paragraphs based on strings
I have a text file of email addresses that is all squished together. It looks like this:

abc

wav to mp3 + goDaddy
I need to convert wav files to mp3s. From what I have found so far one way to do it is to have my PH

While Problem
i am having a problem with a while statement here is the code
Code: [Select]<?php
sess

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash