Jump to content

Network_ninja

Members
  • Posts

    94
  • Joined

  • Last visited

    Never

Everything posted by Network_ninja

  1. Would you mind posting also your form? What is the method of your form? post or get? You can access the value of your form using $_POST or $_GET depending of the method you set in your form.. If you set it to post then your $_GET has no value at all... <form method='post' action=''>
  2. what do you mean replicate? if you have 5 recepients then you also have 5 mail() functions? You can make your form fields as an array then from there you can just loop the value of the email addresses...
  3. What i wanted to achieved is I want to set an expiration for my site.. say 60 mins of inactivity the user will be logged out. but the count only starts when the user is idle.. so if he is scrolling(probably he's reading something) or he's moving his mouse around the count will not start... tnx
  4. Is there an event or a way in javascript to detect of find if the user has activity.. such as scrolling or moving the mouse around?
  5. Thanks for the very quick reply... Now it's working.. that's what im totally missing... tnx
  6. so you mean i just need to do it like this? mysql_error($this->conn) ???
  7. Hey guys need help.. I am new in Php OOP programming I am making my connections and queries as OOP here is my code: class_lib.php <?php class Mysql_conn { var $conn; function __construct($hostname,$dbuser,$dbpword,$dbname) { $this->conn = mysql_connect($hostname,$dbuser,$pword,true); mysql_select_db($dbname,$this->conn); } function query($query){ $result = mysql_query($query,$this->conn)or die('error getting data:'.mysql_error()); return $result; } } ?> And here is my index.php $db1 = new Mysql_conn("localhost","root","","databasename1"); $db2 = new Mysql_conn("localhost","root","","databasename2"); $query = $db1->query("SELECT * FROM tablename"); if the query encounter an error such as field name not present,mispelled name or logical error it will not return any error messagge that i have a hard time debugging were the error is... but if I have only one database it works fine but in that case that i have two databases that's when the problem occur.... tnx in advance
  8. You have a point.. but i am already setting the font size to 16px.. i think it's quite enough for the majority of the population of my company to be able to read the letters...
  9. You can try out this one if you love to: $query = mysql_query("SELECT pid,epid,title FROM shows"); if(mysql_num_rows($query) > 0) { while($ds = mysql_fetch_array($query)) { echo(' <ul id="' . $ds['pid'] . '" title="' . $ds['title'] . '"> '); $res = mysql_query('SELECT episodes.pid,episodes.ptid FROM episodes JOIN shows ON episodes.epid="'. $ds['epid'] .'" ORDER BY episodes.ptid'); while($ds1 = mysql_fetch_array($res)){ echo(' <li><a href="#' . $ds1['pid'] . '#_video">' . $ds1['ptid'] . '</a></li> '); } echo "</ul>"; } }
  10. In order for the mail function to work out you have to have a Mail Server or Mail Agent Transport such as sendmail. If your system is already uploaded to the internet you have to call your webhost to make it available for you.... Hope this help...
  11. Yep... exactly.. You cannot encounter that kind of notice when the version of your php is below 5.0
  12. does it only happens in your ads_title? or it also goes with some other field? ads_image........etc..
  13. Try doing this in all your input type field: <input type="text" value="<?php echo str_replace('"',""",$row['lastname']);?>" class="editable" name="lastnames[<?php echo $row['athlete_id'];?>]" />
  14. If i cannot make the javascript work out i don't have any other option maybe but to use element. But it's just that i don't need the full screen or maximize windows because i only display minimal data. Here is the Sample Output: TIME RECORD: DATE TIME IN TIME OUT LEAVE LATE ABSENT UNDERTIME 6/20/2011 0830 1730 0.00 0.00 6/19/2011 0820 1800 0.00 0.00 etc...
  15. so there is no way to do it using javascript? "modal" are you referring with jquery?
  16. I don't think you need to obfuscate the id when you already have an encrypted password.
  17. sorry dude... im a total beginner in programming world... It's just that i wanted to have a window browser that have a specific width and height that i specified above and the user cannot resize or maximize the window. Do you have such a good code for doing it so? I will gladly appreciate any help...
  18. nope... that is my code but it does't working well. in IE it works fine but you still need to confirm before the parent window close, in some other browser FF,chrome the user can adjust the width and height of the new window and the parent window will not close...
  19. Need help... is there a way to fully control the width and height of your window browser? I mean something like this. index.php <script type="text/javascript"> window.open('login.php','Record','width=600,height=500,toolbar=no, location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no'); window.close(); </script> when you open the index.php it will open another window that has fixed withd and height and i will not allow the user to resize the window. tnx in advance
×
×
  • 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.