I know this is long, but posted in another section and no response and having issues with tables. Does anybody have a good demo (see front and back end code) / walk through for tables and dealing with reports and members data. My organization has used an access database in the past for user info and reports, but with the migration to websitebaker I would like to be able to move away from the access database all together. If nobody has anything once I get the help I'll post some power point / word documents on how-to do a few things after I am done.
I have tried several mods, but no luck to what I am really wanting...
Some success: User Extend, DataTable, and DynamicTable
User Extend is table name I want and seems to be nice, however I cannot add or remove columns. Would like to be able to incorporate this with DataTable.
I liked DataTables (and will use if needed) but wanted to know if there was any way to define the name of the table that is used vs let the program pick wb1_mod_datatable20
8 (it picks number) datatable and a number doesn't define the table enough for me. Ideal would be able to use this
DynamicTable is nice and quick, but can't change the table id.
LibraryAdmin Looks good, but I get:
Fatal error: Class 'PDO' not found in \\NAWINFS03\home\users\web\b1283\rh.jla\baker\modules\wblib\wbDatabase\class.wbDBBase.php on line 30
I checked out
http://www.websitebakers.com/pages/libs/libraryadmin.php like another topic states, but
there isn't any help there. Just info on each upgrade.
Finally.... I have played with SQL and PHP in the past, but can't seem to get everything to work out.
Depending on the user that is logged in I would like the user to be able to see his info.
Would like to join the wb1_users, wb1_groups(show group name vs #) , and wb1_user_extend
Parse error: syntax error, unexpected '"' in \\NAWINFS03\home\users\web\b1283\rh.jla\baker\modules\code\view.php(32) : eval()'d code on line 5
if (isset($_SESSION['USER_ID']) && is_numeric($_SESSION['USER_ID'])) {
// get login data of actual user from database
$sql = 'SELECT `wb1_users` . * , `wb1_groups` . * , `wb1_user_extend` . * '
. ' FROM wb1_users , wb1_groups , wb1_user_extend '
. ' WHERE `wb1_users` "." `user_id` = '" . $_SESSION['USER_ID'] . "';
$results = $database->query($sql);
if ($results && $data = $results->fetchRow()) {
echo "<b>----------------</b><br>";
echo "<b>Basic info:</b><br>";
echo "<b>----------------</b><br>";
echo "Name : ".$data['display_name']."<br>";
echo "user_name : ".$data['username']."<br>";
echo "user_id : ".$data['user_id']. "<br>";
echo "group_id : ".$data['group_id']."<br>";
echo "Status : ".$data['name']."<br>";
echo "e-mail : ".$data['email']."<br>";
echo "login when : ".date('F j, Y, g:i a',$data['login_when'])."<br>";
echo "login ip : ".$data['login_ip']."<br>";
echo "active : ".$data['active']."<br>";
echo "<b>----------------</b><br>";
echo "<b>Extra info:</b><br>";
echo "<b>----------------</b><br>";
echo "<u>User-Status:</u> ".$data['status']." <u>Club:</u> ".$data['association']."<br>";
echo "<u>Full Name:</u> ".$data['title']." ".$data['first_name']." ".$data['surname']." <b><u>Displayed as:</u></b>".$data['display_name']."<br>";
echo "<u>Address:</u> ".$data['street_nr'].", ",$data['street']." - ".$data['suburb']." / ".$data['town']." <u>p/c:</u> ".$data['country']."<br>";
echo "<u>Place of Birth:</u> ".$data['birthplace']." - ".date('F j, Y',$data['birthday'])." - <u>Gender:</u> ".$data['gender']."<br>";
echo "<u>Contact - Phone:</u> ".$data['telephone']." <u>email:</u> ".$data['email']." <u>Passport:</u> ".$data['passport']."<br>";
echo "<hr>";
}
}
Thanks in advance for any help..