Jump to content

jkewlo

Members
  • Posts

    329
  • Joined

  • Last visited

Everything posted by jkewlo

  1. Ahhhh poopies seems like a lot of my post got purged

    1. PFMaBiSmAd

      PFMaBiSmAd

      By default, the search for posts/topics under your profile, only goes back 1 year. If you actually perform a search using the search box, it should find your posts.

  2. Now this is what I got from a earlier backup http://www.cloudleasing.com/playground/ if you notice this one just sits here and loads
  3. I dont think so. There is data in october stored in the database. thats why I am boggled by this. I dont understand why the months nav is disappearing and event are not displayed
  4. I am using a plugin for wordpress, I have tried to get help form the publisher with no luck he is mind boggled by this as well I have uploaded the plugin in here : http://www.mediafire.com/download.php?caj9p8oc5jauv9t this is what the problem is, and the reason I am using this plugin version I started on this project after I took over the position of a old co worker. The Event Calendar is a plugin developed by Luke Howell. I have been in contact with him but he has no idea what is going on. the problem is. when you go to view different months the events do not display and the months at the bottom to browse disappear as well. Luke was telling me that it is a JQuery/Javascript problem. that's why I am here. any help would be very appreciated.
  5. Just real fast call the mysql record with the path normally my paths are like img/img hardcoded like and for the record I have the image name.. say jkewlo.png <img src=\"". $row['img_path'] ."\">
  6. You could just query a database record with there name or even there ID number and have it the input field value set to the proper record and do a call fdrom there maybe even have ajax drop down menu with pre written messages that will fill in the body area.. could even have some php in the body to include the name of the person and other client information.
  7. Hey I was wondering how soundcloud went about getting the soundwave of a song.. is there a specifics with php to do this or are thye using another language to get the sound wave to show??
  8. What would you say a good thing is to do??
  9. Do I need to add the isset to the change_Agents function?
  10. and with my luck there is no luck
  11. How does this look?? function edit_Agents(){ $id = $_REQUEST['id']; $sql="SELECT * FROM users WHERE id = '". $id ."'"; $result=mysql_query($sql) or die(mysql_error()); $rows=mysql_fetch_array($result); echo " <table width=750 border=0> <tr> <form method=post action=> <input type=hidden name=action value=change_Agents> <td width=100 height=100><img src=". $rows['path'] ." width=100 height=100></td> <td width=244 valign=top>Username: <input type=text value=". $rows['username'] ." name=uname><br> <td width=244 valign=top>First Name: <input type=text value=". $rows['Firstname'] ." name=fname><br> Last Name: <input type=text value=". $rows['Lastname'] ." name=lname><br> Admin Level: <input type=text value=". $rows['level'] ." name=adminlevel><br> Email: <input type=text value=\"". $rows['email'] ."\" name=email><br><input type=submit value=\"Edit ". $rows['Firstname'] ." ". $rows['Lastname'] ."'s Profile\" name=edituser></td> <td width=331></a> </tr> </table></form>"; } function change_Agents(){ $username = $_POST['username']; $fname = $_POST['fname']; $lname = $_POST['lname']; $email = $_POST['email']; $level = $_POST['level']; $sql="UPDATE users SET username='". $username ."', Firstname='". $fname ."', Lastname='". $lname ."', level='". $level ."', email='". $email ."'"; $result=mysql_query($sql) or die(mysql_error()); header("Location: editagents.php?"); }
  12. Ok, Going to mess with it now and see what I can come up with..
  13. This is my function.class.php <?PHP session_start(); require_once("../class/connect.php"); $id = $_SESSION['id']; function get_Name(){ $id = $_SESSION['id']; $sql="SELECT * FROM users WHERE id='". $id ."'"; $result=mysql_query($sql) or die("get_Name()". mysql_error() .""); $row = mysql_fetch_assoc($result); echo "<b>Welcome: ". $row['Firstname'] ." ". $row['Lastname'] ."</b>"; } function get_Picture(){ $id = $_SESSION['id']; $sql="SELECT * FROM users WHERE id='". $id ."'"; $result=mysql_query($sql) or die("get_Picture()". mysql_error() .""); $row = mysql_fetch_assoc($result); echo "<img src=". $row['path'] ." width=100 height=100 >"; } function show_SessionId(){ echo "Session ID".session_id(); } function get_Username(){ echo "Username: ".$_SESSION['username']; } function show_Agents(){ $sql="SELECT * FROM users ORDER BY id ASC"; $result=mysql_query($sql); while($rows = mysql_fetch_array($result)){ echo "<table width=650 border=0> <tr> <td width=100 height=100><img src=". $rows['path'] ." width=100 height=100></td> <td width=244 valign=top>First Name: ". $rows['Firstname'] ."<br> Last Name: ". $rows['Lastname'] ."<br> Admin Level: ". $rows['level'] ."<br> Email: ". $rows['email'] ."</td> <td width=331><a href=editagents.php?id=". $rows['id'] .">Edit ". $rows['Firstname']. " ". $rows['Lastname'] ."</a> </tr> </table>"; } } function edit_Agents(){ $id = $_REQUEST['id']; $sql="SELECT * FROM users WHERE id = '". $id ."'"; $result=mysql_query($sql) or die(mysql_error()); $rows=mysql_fetch_array($result); echo " <table width=750 border=0> <tr> <form method=post action=> <input type=hidden name=action value=change_users> <td width=100 height=100><img src=". $rows['path'] ." width=100 height=100></td> <td width=244 valign=top>First Name: <input type=text value=". $rows['Firstname'] ." name=fname><br> Last Name: <input type=text value=". $rows['Lastname'] ." name=lname><br> Admin Level: <input type=text value=". $rows['level'] ." name=adminlevel><br> Email: <input type=text value=". $rows['email'] ." name=email><br><input type=submit value=\"Edit ". $rows['Firstname'] ." ". $rows['Lastname'] ."'s Profile\" name=edituser></td> <td width=331></a> </tr> </table></form>"; } function change_Agents(){ if ?> then we have my editagents.php <?php session_start(); require_once('../class/function.class.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Gantt Insurance Agency Admin Controll Panel</title> <link href="../css/adminstyle.css" rel="stylesheet" type="text/css" media="screen" /> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js" type="text/javascript"></script> <script type="text/javascript"> //<![CDATA[ function ShowHide(){ $("#slidingDiv").animate({"height": "toggle"}, { duration: 1000 }); } //]]> </script> <style> .login { width: 100%; margin: 10px auto; background-color:#CCC; color: #000; padding: 15px; } .cornertopleft { /* Border Radius Style */ border-top-left-radius: 30px; /* Mozilla Firefox Extension */ -moz-border-radius-topleft: 30px; } .cornertopright { /* Border Radius Style */ border-top-right-radius: 30px; /* Mozilla Firefox Extension */ -moz-border-radius-topright: 30px; } .cornerbottomleft { /* Border Radius Style */ border-bottom-left-radius: 30px; /* Mozilla Firefox Extension */ -moz-border-radius-bottomleft: 30px; } .cornerbottomright { /* Border Radius Style */ border-bottom-right-radius: 30px; /* Mozilla Firefox Extension */ -moz-border-radius-bottomright: 30px; } .login2 { width: 120px; height: 120px; margin: 10px auto; background-color: #fff; color: #000; } .cornerall { /* Border Radius Style */ border-radius: 60px; /* Mozilla Firefox Extension */ -moz-border-radius: 60px; } </style> </head> <body> <div id="wrapper"> <div id="header" class="login "> <img src="../img/smalladvyne.png" /> <div id="details"> <?PHP echo get_Name() ."<br>"; echo show_SessionId() ."<br>"; echo get_Username() ."<br>"; echo "<a href=logout.php><b>Log Out!</b></a>"; ?> </div><!-- DETAILS --> </div> <!-- HEADER --> <div id="left"> <a onclick="ShowHide(); return false;" href="#">Add/Edit Agents</a> <div id="slidingDiv"> -<a href="admin.php?action=Edit_Agents">Edit Agent</a><br /> -<a href="admin.php?action=Add_Agents">Add Agent</a> </div> </div> <div id="content"> <?php echo edit_Agents(); ?> </div> <div id="footer"></div> </div> </center> </body> </html>
  14. So, I will try and go with the first one you showed.. seems I am confusing myself reading this This is the function where I added <form method=post action=> <input type=hidden name=action value=change_users> function edit_Agents(){ $id = $_REQUEST['id']; $sql="SELECT * FROM users WHERE id = '". $id ."'"; $result=mysql_query($sql) or die(mysql_error()); $rows=mysql_fetch_array($result); echo " <table width=750 border=0> <tr> <form method=post action=> <input type=hidden name=action value=change_users> <td width=100 height=100><img src=". $rows['path'] ." width=100 height=100></td> <td width=244 valign=top>First Name: <input type=text value=". $rows['Firstname'] ." name=fname><br> Last Name: <input type=text value=". $rows['Lastname'] ." name=lname><br> Admin Level: <input type=text value=". $rows['level'] ." name=adminlevel><br> Email: <input type=text value=". $rows['email'] ." name=email><br><input type=submit value=\"Edit ". $rows['Firstname'] ." ". $rows['Lastname'] ."'s Profile\" name=edituser></td> <td width=331></a> </tr> </table></form>"; } Then I create my function change_Agents and add $func = isset($_GET['action']) ? $_GET['action'] : 'edit_agents'; if(function_exists($func)) { $func(); } now Where do I go from here?? Sorry.
  15. have you tried any joins?? http://dev.mysql.com/doc/refman/5.0/en/join.html
  16. Ok, I just said screw it and made a editagent.php page. and just run it threw that.. I am now wondering if this is possible function edit_Agents(){ $id = $_REQUEST['id']; $sql="SELECT * FROM users WHERE id = '". $id ."'"; $result=mysql_query($sql) or die(mysql_error()); $rows=mysql_fetch_array($result); echo " <form method=post action=". change_Users() ."> <table width=750 border=0> <tr> <td width=100 height=100><img src=". $rows['path'] ." width=100 height=100></td> <td width=244 valign=top>First Name: <input type=text value=". $rows['Firstname'] ." name=fname><br> Last Name: <input type=text value=". $rows['Lastname'] ." name=lname><br> Admin Level: <input type=text value=". $rows['level'] ." name=adminlevel><br> Email: <input type=text value=". $rows['email'] ." name=email><br><input type=submit value=\"Edit ". $rows['Firstname'] ." ". $rows['Lastname'] ."'s Profile\" name=edituser></td> <td width=331></a> </tr> </table></form>"; } This is in my function.class.php and I was wondering could you pass a form with the action like this?? being that th function change_User(); is in the same file as this function?? and for editagents.php I have just called the information with edit_Agents(); Hope this makes some sort of sense..
  17. Hello, I am working on a Content Management System and I am trying to keep the pages down to a minimum. I am not good at wording things so sorry if it is hard to understand. you have a url EX mywebsite.com/index.php?action=Edit_Agent&do=Edit&id=1 I am doing if statements like $action = $_REQUEST['action']; if($action == ""){ echo "Welcome to aDVYNE Content Management System."; } if($action == "Edit_Agents"){ echo show_Agents() ."<br>"; } now what I am trying to do is get the &do &id as well now I might just be confusing myself as I have been working on this for about 12 hours straight. so can I do it like if($action == "Edit_Agents" && $do == "Edit" &id == $_SESSION['id']){ } but this didnt work.. Any tips I dont want someone to do the code for me.. unless you are bored and just want to help out.. but a few points would help
  18. I feel really noob I have not touched any code in a while so excuse me for being a dumbass lol IDK where to put your code PaulRyan, I put it in the foreach loop with no luck
  19. Thats the thing. I am not good with array's so how would I do that??
  20. Hello, I got a simple script to show how many user's are online for a game. It is showing the user's but in a ARRAY like this Array ( [0] => Rchsingram34 [1] => killgorekiller [2] => jasonry25 [3] => suburbanite09 [4] => Torn2010 [5] => Xacktar [6] => The5thExotic [7] => Pledgemonkey [8] => Mystikilla [9] => luge [10] => tbtregenza [11] => dffidel [12] => xaanit [13] => mrxCIC [14] => vobilli [15] => cyberbullet [16] => porkycain [17] => Doombringer721 [18] => Ishaye [19] => CkGordon [20] => Mahngiel [21] => dj_de1337ed ) Here is my code <?php define("NL", "\n"); class Minequery { function __construct($server, $port = 25566) { $this->socket = fsockopen($server, $port, $erno, $erst, 5); if ($this->socket == FALSE) { trigger_error("Could not connect to the remote server", E_USER_ERROR); die(); } else { $this->query(); } } private function query() { $query = "QUERY\n"; $buffer = ""; fwrite($this->socket, $query); while (!feof($this->socket)) { $buffer .= fgets($this->socket, 1024); } $this->query = explode("\n", $buffer); } public function port() { $port = explode(' ', $this->query[0]); return $port[1]; } public function player_count() { $count = explode(' ', $this->query[1]); return $count[1]; } public function max_players() { $max = explode(' ', $this->query[2]); return $max[1]; } public function player_list() { $list = explode(' ', $this->query[3], 2 ); $list = trim($list[1], '[]'); $list = explode(',', $list); foreach ($list as $player) { $player_list[] = trim($player); } return $player_list; } } ?> and the useage is pretty simple print_r($status->player_list()); but I cant for the life of me not get it to print Array ( ) I would like to just get the user names without Array and the Array numbers to it.. any help would be great.
  21. Ok I got it, I did not see $this->files_arr= array_values($this->files_arr);//re-index in your post. Topic Solved
  22. I dont see why I am hacing such a challenge with this
  23. Ok, so it took me pretty much back to square 1. with natsort
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.