Page 1 of 1

How do I get rid off dubble code???

Posted: Thu Aug 31, 2023 7:32 pm
by GudB
Pleas see the exemple below.
It shows in my HTML page view.
the second session_start is not needed.
-----------------------------------------------------------------------------------------------------------
<?php
if (session_id() == "")
{
session_start();
}
require_once("wb.mysql.crud.php");
session_start();
if (!isset($_SESSION['username']))

----------------------------------------------------------

I dont know how it get there, but it should not.

please help.

Re: How do I get rid off dubble code???

Posted: Thu Aug 31, 2023 7:35 pm
by Pablo
It looks like you have multiple scripts on the same page.
It is difficult to say where it is coming from without knowing what you have done.