header(); na mysql query doen.

Overzicht Reageren

Sponsored by: Vacatures door Monsterboard

Senior, Medior and Junior SAP HANA Developer

Vacature details Vakgebied: Software/IT Opleiding: Medior Werklocatie: Veldhoven Vacature ID: 12696 Introductie Our client is the world's leading provider of lithography systems for the semiconductor industry, manufacturing complex machines that are critical to the production of integrated circuits or chips. Our purpose is “unlocking the potential of people and society by pushing technology to new limits”. We do this guided by the principles “Challenge”, “Collaborate” and “Care”. Wat verwachten we van jou? SAP Certified Application Associate - SAP HANA Cloud Modeling (training and/or certification) Bachelor degree or higher Excellent understanding of SAP HANA (2.0 / Cloud), Data Modelling and writing

Bekijk vacature »

Matshofman

matshofman

07/01/2008 18:51:00
Quote Anchor link
Hallo,

Is het mogelijk om header(); of een variate die ook naar een andere pagina door linkt en die je niet in de html head hoeft te zetten te gebruiken

maar nadat je een mysql query hebt verzonden?
 
PHP hulp

PHP hulp

27/04/2024 02:53:05
 
Joren de Wit

Joren de Wit

07/01/2008 18:55:00
Quote Anchor link
Dat is zeker mogelijk. Nadat jij gecontroleerd hebt of een query gelukt is, kun je de gebruiker gewoon doorsturen:
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
8
9
10
11
12
<?php
$sql
= "Je query";

if(!$res = mysql_query($sql))
{

    trigger_error(mysql_error().'<br />In query: '.$sql);
}

else
{
    header('Location: anderepagina.php');
}

?>
 
Matshofman

matshofman

07/01/2008 19:09:00
Quote Anchor link
Ik heb nu dit ingevuld maar hij stuurt me niet door, hij doet de query wel goed uitvoeren

Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
8
9
10
<?php
$query
= "UPDATE leden SET pp='".$_POST["code"]."' WHERE naam='".$_SESSION["naam"]."'";
if(!$result = mysql_query($query))
{

    trigger_error(mysql_error().'<br />In query: '.$sql);
}

else
{
    header('Location: index.php');
}
?>







EDIT: -----------------------------

ik heb het nu met een javascriptje gedaan:

Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
<?php
echo("<SCRIPT LANGUAGE='JavaScript'> window.location='index.php'; </script>");
?>
Gewijzigd op 01/01/1970 01:00:00 door matshofman
 



Overzicht Reageren

 
 

Om de gebruiksvriendelijkheid van onze website en diensten te optimaliseren maken wij gebruik van cookies. Deze cookies gebruiken wij voor functionaliteiten, analytische gegevens en marketing doeleinden. U vindt meer informatie in onze privacy statement.