Gnome-shell and compiz
Compiz and gnome-shell do not go hand-in-hands together... Third heading in the link provides more insight about it: https://live.gnome.org/GNOME3Myths
Also the mailing list post about compiz and gnome-shell might be of interest for you:
http://www.mail-archive.com/[email protected]/msg15602.html
So as far as I know, you can't get effects equivalent to those provided by compiz in gnome-shell... You might try to look for the gnome-shell extensions with similar functionality.
Related videos on Youtube
ralliart2004
Updated on September 18, 2022Comments
-
ralliart2004 over 1 year
I am trying to display 25 rows of data from my db.table in an html table using a php while loop to loop for 25 rows. Currently I do not have the 25 rows limiter just wanting to get data displayed at the moment. Here is what I have.
<table> <td><strong>User Name</strong></td> <td><strong>User Email</strong></td> <td><strong>Is User an Admin</strong></td> <td><strong>Is User Active</strong></td> <?php $sql = 'SELECT name, login, is_admin, active FROM db.users'; $result = db_exec_prepared_stmt($sql); while($rows = mysql_fetch_assoc($result)) { $user_name = $rows['name']; $user_email = $rows['login']; $user_admin = $rows['is_admin']; $user_active = $rows['active']; echo '<tr> <td>' . $user_name . '</td> <td>' . $user_email . '</td> <td>' . $user_admin . '</td> <td>' . $user_active . '</td> </tr>'; } ?> </table>
I know that mysql_fetch_assoc() will not work here but I am needing help to get functioning code.
Here is the db_exec_prepared_stmt() function.
function db_exec_prepared_stmt($sql, $params=array(), $query_type='select') { $types = ''; foreach($params as $p) { if( is_numeric($p) && ($p <= 2147483647) && (numberOfDecimals($p) === 0) ) $types .= 'i'; else $types .= 's'; } $db = db_open_connection(); if($stmt = $db->prepare($sql)) { if($types != '') { $binds = array_merge( array($types), $params ); call_user_func_array( array($stmt, 'bind_param'), makeValuesReferenced($binds) ); } switch($query_type) { case 'select': $results = db_fetch_assoc($stmt); break; case 'insert': $stmt->execute(); $results = $db->insert_id; break; default: $stmt->execute(); $results = null; break; } if('' != $stmt->error) printf("Error %s: %s.\n", $stmt->errno, $stmt->error); } else { printf("Error %s: %s.\n", $db->errno, $db->error); $results = null; } db_close_connection($db); return $results; }
-
Mitch almost 12 yearshave you tried Gnome Shell?
-
Sanju Sony Kurian almost 12 yearsim using gnome shell
-
Tyson of the Northwest about 11 yearsThis looks to be a homework like question. Also what are you using to connect to your db? mysql_connect_db?
-
ralliart2004 about 11 yearsnew MySQLi(); Your answer below helped me figure it out. The connection and function db_exec_prepared_stmt() are all legacy code that does function properly. This is for my job. Dev in training.
-
Tyson of the Northwest about 11 yearskeen, and remember
echo"<pre>";var_dump($i);
is your friend, especially when you are getting unexpected results from SELECT queries.
-
-
Sanju Sony Kurian almost 12 yearsi did.. but compiz settings wont work in gnome-shell. any alternatives for compiz with features like wobbly windows?
-
Tinellus almost 12 yearsOK, you could also consider using gnome classic, same look and feel as in Lucid and with all the features of compiz (even the wobbly windows ;-))
-
Sanju Sony Kurian almost 12 yearsThanks. I saw that. was just looking fr someone with links to gnome-shell extentions that provide similar customizions of wobbly window.
-
ralliart2004 about 11 yearsThank you much!! I used the foreach and it worked beautifully!! Upvote (as soon as I can upvote lol) and accepted answer. Thanks again.