thedigicraft / Atom.CMS

Atom.CMS
56 stars 52 forks source link

Admin Video : 44 Issue With User #141

Open thedubz opened 9 years ago

thedubz commented 9 years ago

I can edit the details displayed on the left, except the USER part. Even when I type in new details, and I select the entered details on the left side, It won't select the user, what's wrong with that ...

My code are here...


<?php

Start the Session

session_start();

if(!isset($_SESSION['username'])){

header('Location: login.php');

    }

?>

<?php include("config/setup.php"); ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

``` <?php echo $page_title.' | '.$site_title; ?> ``` ```

Admin Dashboard

Page was added!

'; }else { $message = '

Page could not be added because '.mysql_error($dbc); $message .= '

'.$q.'

'; } } ?>
```
creptor commented 9 years ago

It's because you're in the users selecting the opened[id] for the page not the user id in the page

thedubz commented 9 years ago

Now what am I suppose to do

creptor commented 9 years ago

I can fix your code but I need my computer and I don't have it.

To fix it yourself just change the inside of the opened[] to the name of the table you gave to the page for the users.... Like opened['user-id']

creptor commented 8 years ago

Did you fix this? or do you need my help with the code?