Jump to content

[SOLVED] Session


emediastudios

Recommended Posts

Hi everyone

I have this code that i want to only run if the session is registered.

<?php
include_once('includes/include.php');

$themename=$_POST['themename'];
$query = "INSERT INTO theme SET themename='$themename'";
$result = mysql_query($query) or die(mysql_error());
header("Location: admin.php"); 


?>

what code would i put at the top of the file to stop anyone running this script, sorry but im a newbe.

Link to comment
https://forums.phpfreaks.com/topic/137129-solved-session/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.