Jump to content

mapleleaf

Members
  • Posts

    250
  • Joined

  • Last visited

    Never

Everything posted by mapleleaf

  1. Is this the right question? I have a mysql database, and i'm figuring this has something to do with tables, columns, and php, but I really have no idea how to approach this. Good Entertainment though!!
  2. I am using jquery ui and need to check if an element is visible. Normally if (document.getElementById("bonuses").style.display = "none") { //do whatever } would be what I need but the function runs regardless of whether the element is displayed or not. Using jquery ui slider Basically how do I check to see an elements style status in jquery? In this case it might be position or opacity that is being altered but somehow I can't check the elements style. Any help much appreciated.
  3. Do it with MYSQL http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html
  4. You can turn them off: ini_set("magic_quotes_gpc", "0"); Also GoDaddy has some weird settings where they will rewrite urls in an odd way. If you have a choice don't use GoDaddy.
  5. This is being sent to anyone who submits: mail($clientTo, $subject, $message.$message_enq.$messagefooter, $emailheaders); You need to put it inside the condition like: if (empty($Name)) { mail($clientTo, $subject, $message.$message_enq.$messagefooter, $emailheaders); print "<h1>Thank you. Email sent!</p>"; exit; } else { if (mysql_num_rows($resource) == 0){ mail($clientTo, $subject, $message.$message_enq.$messagefooter, $emailheaders); } You also need to add an onclick to your button so it does something
  6. I would use $Name in your query but otherwise what is going wrong?
  7. I would have it all in one table. You can always join the other table that has info for the level. It really depends on how many levels and how much other info.
  8. Still think some code will help. It will have more to do with the HTML and CSS than any PHP.
  9. if (!$tpost) { might work better if it was if ($tpost) { assuming i understood what you are trying to do
  10. you need a $row = mysql_fetch_array($result); in there for starters
  11. I think you are looking for MYSQL time functions: http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_date-add
  12. what format are you storing the date and what does the table look like?
  13. Can you explain what you mean by self posting as you can easily make a form with the number of inputs put in the first form with a loop. But why would you want that to self post as you don't have anything inputted till the user adds something?
  14. Hope your boss understands the implications of storing SSNs in a database that can be accessed from the internet. I wouldn't do it without some serious security protocols.
  15. <textarea name='whatever'><?php echo $row->whatever;?></textarea>
  16. if(strstr($_POST['avatar'],'mafiakillerz')) { echo 'No'; }
  17. simply insert the $_POST['textareaname'] in the database. Is there something else that you mean? You might want the MYSQL forum.
  18. Are you looking at it locally without php set up on your machine??
  19. It looks like you need a WHERE statement in your update query. $sql = "UPDATE test SET id='$id'"; // you need to add a WHERE id = $id if that is what you are trying to do.
  20. and close the </form> tag after the Upload(submit) button
  21. Your submit is a link and not part of your form
  22. <?php //$_POST['transdate'] replaces the date in the explode $date = explode('/','14/01/1970'); echo date("Y-m-d", mktime(0, 0, 0, $date[1], $date[0], $date[2])); ?>
  23. I think what you are looking for is an onblur call to your database using ajax. Something like a username check that you see on some sites. Like here http://medalsdirect.com/live/register.php When you tab out of the username field the page checks if the username is available.
×
×
  • 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.