Jump to content

JustLikeIcarus

Members
  • Posts

    430
  • Joined

  • Last visited

Everything posted by JustLikeIcarus

  1. You have two functions in your functions.pl script but you have nothing in there that is actually calling the functions. So when you load call functions.pl?select_degree=<whatever> nothing is actually happening since those sub's are just defining functions.
  2. Problem is facebox is not moving the content you display in a facebox but its making a copy of it. So therefore you have 2 instance of the textarea when it displays. If you change the click handler to the following it works. $(function() { $(".insert").live('click', function() { var desc = $(this).parent().find('textarea').val(); alert(desc); return false; }); });
  3. No sure. It should only hide #bookcart and its children. I would suggest using firebug to see what elements are getting modified when it runs.
  4. A call back function is just a function that you tell another function to run when it has completed. (Man I used function a lot.) So basically you just write a small function to do the update you want to be performed then supply the name of that as the callback function to greybox.
  5. SimpleXML will let you do that. http://www.php.net/manual/en/simplexml.examples-basic.php
  6. Take a look here at the GMarker API http://code.google.com/apis/maps/documentation/javascript/v2/reference.html#GMarker
  7. Sounds like what you want to do is set a callback function. You can send a js function as once of greybox's parameters when you call it. This should then get executed when greybox is closed. GB_show(caption, url, /*optional*/ height, width, callback_fn)
  8. I looked into it once but ended up going with http://datatables.net/ because it had a better feature set... My opinion anyway.
  9. Change it to this to keep it from looking inside the nested elements. var lastID = $(".stream > li:last").attr('id'); Pretty much the same, just added a ">"
  10. Take a look at this function. Should shed some light on your issue. http://php.net/manual/en/function.stripslashes.php
  11. $link = mysql_connect("localhost", "mysql_user", "mysql_password"); mysql_select_db("database", $link); $result = mysql_query("SELECT * FROM user u, subject s, test t, question q, answer a WHERE u.Use_ID = 1 AND t.Sub_ID = 1 AND s.Sub_ID = t.Sub_ID AND q.Que_ID = a.Que_ID", $link); $num_rows = mysql_num_rows($result); if($num_rows) { } else { }
  12. Looks like your trying to use MS-SQL on MySQL.
  13. Can you post the contents of you my.cnd config file?
  14. Use mysql's function DATE_ADD(CURDATE(),INTERVAL 7 DAYS)
  15. OK try changing mine to this. DELETE FROM log_April2010 USING log_April2010 INNER JOIN roster_April2010 WHERE log_April2010.user_id = roster_April2010.user_id AND roster_April2010.user_id = 1;
  16. How about this? DELETE FROM log_April2010, roster_April2010 USING log_April2010 INNER JOIN roster_April2010 WHERE log_April2010.user_id = roster_April2010.user_id AND log_April2010.user_id = 1;
  17. InnoDB is the engine which has to be used for a relational database. This is why you aren't getting those options.
  18. Why not just store the value as an actual mysql date instead of a unix timestamp?
  19. Ok if you need the www. for the site to work then your apache rewrite rule would be this. RewriteEngine On RewriteCond %{HTTP_HOST} ^domain.com$ [NC] RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
  20. Just create an .htaccess file in the web root. RewriteEngine On RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC] RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]
  21. You did define the tables as InnoDB correct?
  22. First thing you need to do is use the $mail->MsgHTML($body) to tell phpmailer you are generating an html body. This method does some automated handling of embeded objects.
  23. Your main issue is that you have duplicate id attributes. Meaning the left menu has an id="d7" and the related item in the right menu has id="d7". This is breaking your javascript since you can not have duplicate id attributes in a document.
  24. You really need to post all of the html/css, and also if you can a screenshot and link to the page.
  25. Also in the Welcome email for creating a My UPS Acct there should be some links on the left that look like this. You can use My UPS to: Ship Online Schedule a Pickup Open a UPS Account
×
×
  • 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.