Version of script: 2.0
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
Write your message below:
Instead of the input box (for name) when create a new ticket. I created a selection menu (copied the mysql code from the category selection menu), which is linked to the database, where I created a new table.
The selection menu works, but now everything below the category selection menu isn't showing anymore.
Does this had to do with copying the code.
Here is the code I use for the name selection menu.
Code: Select all
<?php
require(HESK_PATH . 'inc/database.inc.php');
hesk_dbConnect();
$sql = 'SELECT naam FROM `'.$hesk_settings['db_pfix'].'names`';
$result = hesk_dbQuery($sql);
while ($row=hesk_dbFetchAssoc($result))
{
if ($_SESSION['c_name'] == $row['id']) {$selected = ' selected="selected"';}
else {$selected = '';}
echo '<option value="'.$row['id'].'"'.$selected.'>'.$row['naam'].'</option>';
}
?>
Any idea?