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";
$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

dropdown menu
Hello everbody,

I am php newbie.
I need to develop a program that once click the drop do

An odd assignment statement. Can someone explain this assignment to me?
What purpose is served by the bit of code between the two equal signs in the $installurl set? Is th

check comment for html
hi, I just wanted to check if a comment a user posts contains HTML, and if it does, to not allow it

Weird problem with SELECT command..Help!
Hi!

It seems I'm having a really weird problem with SQL SELECT command....I have table into a

upload image name with extension using php
hi frds..

<input id="file1" type="file" name="file[]" &a

Facebook status update API
Hello,

So, I'm trying to create my first Facebook application with PHP.

Basic ideas fo

max() problem
I have a while loop to get image names.
Code: $imagequery = mysql_query("SELECT * FROM ad_i

How to replace search button with link?
hi to everbody.
i have a search submit form and button like this :

<form id="f

How to add advertisment on top of videos
Hello,
I was told that i should find the answer for this problem in this forums.
I searched a

what are '%S%', '%E%'
for example when i see Code: [Select]printf("Hello %srn", $name);
what does %s means

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