Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
I want to redirect my page to another page with session values session have value but header is not working. When I var_dump header it's showing NULL. I also try by a javascript window.location.href=""; but it's not passing session values
Use the ob_start top of the page.header() get working.
ob_start();
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 days ago.
This post was edited and submitted for review 5 days ago.
Improve this question
<li> <?php echo $row['Name'];?></li>
Actually i want to use the data which is present in the the <li> tag so Anyone click on the href link then i can retrieve the data.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed last year.
Improve this question
Does a single php page contain more than 2 forms? If yes, how can we use it?
Php does not support multiple form action in one form. Instead we can use mltiple submit buttons with unique names so that in php section we can redirect to any page using that button name.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I am attempting to debug a php script I did not write. In order to check if a location already exists, they used the following:
$locTable = JTable::getInstance('Location', 'DPCalendarTable');
if ($locTable->load(array('latitude' => $data['latitude'],'longitude' => $data['longitude'])){
$_eventLocCache[$data['alias']] = (int)$locTable->id;
}
What is the purpose of "..->load(array..."?
Since you use Joomla it retrieves data from the table called Location
JTable::load() - Loads a row from the database and binds the fields
to the object properties.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
Helo there...
I inserted an Update Record form in Dreamweaver to update the category data on MySQL.
The line of coding below is what is giving me the problem.
<?php echo htmlentities($row_categoryedit['strdiscription'], ENT_COMPAT, 'uft-8'); ?>
If it is included the page gives me an internal server error.
If it is excluded the page works, but it dose not update the record.
Also when I preview it live it shows that there is errors on these 2 lines...
if (isset()) {
$varCategory_categoryedit = ;
Am I missing something or doing something wrong?
you must have a variable in isset() function.
example:
if(!isset($varCategory_categoryedit)){
$varCategory_categoryedit = "1";
}
http://php.net/manual/en/function.isset.php
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
I pass a variable called txt from one query on a web page to another web page using
<?php echo $_GET['txt'];?>
the problem some time the text will have a word like don't in it. the (') causes things to just stop. I need to output the variable as read from the database which would include any text that was in the field
When using $_GET you should use urlencode() and urldecode().