php if error?
Hello again,
I have uploaded the file that I finally managed to create with DataAssist, and it seems that it has produced some erronus code?
I was getting an error about the session already being started and the headers already being sent.
This is what I believe caused the error:
<?php
//WA Database Search (Copyright 2005, WebAssist.com)
//Recordset: WADAgm_minutes;
//Searchpage: gm_minutes_Search.php;
//Form: WADASearchForm;
$WADbSearch1_DefaultWhere = "";
if (!session_id()) session_start();
if ((isset($_GET["Search_x"]) && $_GET["Search_x"] != "")) {
$WADbSearch1 = new FilterDef;
$WADbSearch1->initializeQueryBuilder("MYSQL","1");
//keyword array declarations
Should the following code not use braces?
if (!session_id()) session_start();
like this?
if (!session_id()) {session_start();}
Please advise.