need help in php variable


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

i have a php variable on one page
Code: [Select]$lastId = mysql_insert_id($db);
echo $lastId;
i want to send this variable and the value in it to second page when i click on submit button

i already tried this but it is not working
Code: [Select]$lastId = $_POST["lastId"];
this displays this error

Code: [Select]Notice: Undefined index: lastId in D:wampwwwdynamicquiz2action.php on line 30
how can this be solved

238 Like 8 Dislike
Previous php-forum Next php-forum
Other php-forum

random generation
hi

i need help with generating this

numbers from 1-12

i want to generate in ran

Transferring session variables into MySQL
I am trying to transfer $_SESSION variables into MySQL. However there is an error in my MySQL statem

string to currency format
Hi guys...

Actually I chunk out some data from txtfile and one of the data contains amount va

php and downloading
I want to use a php script to create two files. Then I want it to redirect (or whatever) to have tho

quotes changing
hi all

in my content

opening quotes " changes to “

close qu

Parse XML
Good day,

I use oempro software and try to parse XMLReturn but it's not working for me, simpl

Help pulling in 'id' with "read more" link
I'm trying to create snippets of my articles in the cms I'm creating, and then have them redirect to

I need help on this PHP code
Hi everybody, I made some kind of mistake while editing the code below. As you see, at the 3 row my

xml
<?php

echo "<h1>XML Articles</h1>";

$home

Can't seem to capture a variable in a chained select
I'm *this* close to having a chained select running but for some reason it doesn't seem to be pickin

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