session en sql-update foutje
- SanThe -
17/01/2007 22:58:00Tip: Zet de error reporting helemaal vooraan. In de eerste paar regels kunnen namelijk ook errors zitten. Direct daarna de session starten.
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
<?php
ini_set ('display_errors', 1);
error_reporting (E_ALL);
session_start();
include('includes/config.php');
require('includes/auth.php');
$sess_id = $_SESSION['id'];
// etc.
?>
ini_set ('display_errors', 1);
error_reporting (E_ALL);
session_start();
include('includes/config.php');
require('includes/auth.php');
$sess_id = $_SESSION['id'];
// etc.
?>