Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~296 People Reached
Favorite Forums
Favorite Tags
php x 4
Member Avatar for ericxye

I am looking for a button that inside a php table. I tried [CODE]echo "<td bgcolor='#FFFFFF'><center>" . '<input type="button" name="Activate" value="Activate" class="form" onClick="activate_user_id('.$rows['username'].','.$rows['loginid'].','.$rows['activated'].')">' . "</center></td>"; [/CODE] I know people said i have to use AJAX to make it work. but i dont know AJAX at all, Can anyone show me …

Member Avatar for ericxye
0
207
Member Avatar for ericxye

function edit_user($username){ if ( $username == 'admin' ) { $query = "SELECT * FROM login WHERE username != 'admin'"; $queryResult = mysql_query($query) or die (mysql_error()); echo "<table border='1'> <tr> <th>Loginid</th> <th>username</th> <th>email</th> <th>activated</th> <th>Edit User</th> <th>Delete user</th> </tr>"; while($rows = mysql_fetch_array($queryResult)) { //Todo: Here is a problem //probably use mysql_num_array …

Member Avatar for ericxye
0
89