Jump to content

jkewlo

Members
  • Posts

    329
  • Joined

  • Last visited

About jkewlo

  • Birthday 01/07/1986

Contact Methods

  • AIM
    bledtilldeathvoc
  • MSN
    jkewlo@hotmail.com
  • Website URL
    http://Eve-lounge.com

Profile Information

  • Gender
    Male
  • Location
    Farmville Va

jkewlo's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  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
×
×
  • 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.