Jump to content

JustLikeIcarus

Members
  • Posts

    430
  • Joined

  • Last visited

Everything posted by JustLikeIcarus

  1. Ok Sounds like you have a "My UPS" account but you dont have an UPS Shipping account. UPS will provide you with a specific shipper number etc.. So when you log in and go to request api there will be a link for create a ups account. This needs to be done as well and is different from My UPS.
  2. Here hopefully this will put you in the right direction. use a list for your menu: <ul id="nav"> <li><a href="memories/">Memories</a></li> <li><a href="aboutMe.php">About Me</a><li> </ul> Then I modified the css to account for the list. #nav{ width: 90%; margin: auto; padding:0px; list-style-type: none; } #nav a{ height: 25px; font-family: Zapf Chancery, cursive; text-decoration: none; font-size: 18px; color: #000000; margin: 0px 0px 0px 0px; } ul#nav li a{ display: block; } ul#nav a:visited{ color: #000000; } ul#nav a:hover{ margin: 0px 30px 0px 0px; height: 25px; background-image:url('../images/flower.gif'); background-position:right; background-repeat: no-repeat; }
  3. Ok getElementsByName() is returning an array of objects so to hide that button you would want to do var btn = document.getElementsByName("btn_clr_case_id_c"); btn[0].style.display = 'none';
  4. I was looking through the Sugar source and found the file include/Smarty/plugins/function.sugar_button.php which appears to build the buttons and the ID attribute is not being used. Maybe you can edit this.
  5. Here is an example of what you need to change the code to. hope it makes sense. $fishery_id = $_SESSION[fishery_id]; $venue_name = $_SESSION[venue_name]; etc............. $SQL = "INSERT INTO fishery_b_details (fishery_id, venue_name, primary_contact, address_1, address_2, address_3, town, county, postcode, email, telephone_1, telephone_2, fax) VALUES ('$fishery_id', '$venue_name'..........................
  6. The serialized array your storing needs to be unserialized by php. There isn't really a way for mysql to do that. The best thing to do would create a new table to store answers. This would allow you to query the data easily.
  7. What about if you give the button an id attribute and call getElementById?
  8. Yes that would be a perf issue. Well another option to get the response back that he wants would be something like. select users.id, users.username, users.sex, users.birth_date, pictures.url AS picture, users.register_date from users, pictures, (select user_pictures.user_id as uid, max(user_pictures.picture_id) pid from user_pictures, pictures where pictures.id = user_pictures.picture_id pictures.status = 'active' group by user_pictures.user_id) t1 where t1.uid = users.id and pictures.id = t1.pid
  9. Oh yeah.. duh... Im so in the habit of noticing missing semi's that its haunting me. sorry about that.
  10. Ok so you want to reference a parent query field.. maybe something like this. select users.id as uid, users.username, users.sex, users.birth_date, (select pictures.url from pictures, users_pictures where pictures.id = user_pictures.picture_id and user_pictures.user_id = uid and pictures.status = 'active' order by pictures.id desc limit 1 ) as picture, users.register_date from users
  11. Oh for multiple picture just change the where statement a little. Try this. select users.id, users.username, users.sex, users.birth_date, pictures.url AS picture, users.register_date from users, pictures, user_pictures where users.id = user_pictures.user_id and user_pictures.picture_id = pictures.id
  12. This should work. select users.id, pictures.url from users, pictures, user_pictures where user_pictures.user_id = users.id and pictures.id = user_pictures.picture_id
  13. You problem is a missing Semi-colon in your css which is causing you margin statements for mainContent to not take affect. Ive pointed it out below. .thrColLiqHdr #sidebar2 { float: right; width: 23%; background: #<?php echo $row['MainBody_color'];?>; padding: 15px 0; border-left: thin; border-color: black; <----- Should be a semi there. .thrColLiqHdr #sidebar1 p, .thrColLiqHdr #sidebar1 h3, .thrColLiqHdr #sidebar2 p, .thrColLiqHdr #sidebar2 h3 { margin-left: 10px; margin-right: 10px; }
  14. That will work but not for IE
  15. You need to post your code so we can take a look at how your sending.
  16. This is normally caused by the From: domain not matching the domain the email is actually being sent from. I usually have the issue if developing locally where the emails actually get sent from my laptop.
  17. Here is the jQuery version of that. Just include the jQuery library in the head <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script> Then add this. <script type="text/javascript"> $(document).ready(function(){ $('#content p.checkbox').hover(function(){ $(this).css('bacground', '#ff0000'); }, function(){ $(this).css('bacground', '#ffffff'); }); }); </script>
  18. Try the least() function select * from tabe order by least(col1, col2, col3)
  19. Yes it does. But IE6 doesnt like the selector I am mentioning.
  20. Change your die statement to this: $result = mysql_query($query) or die (mysql_error());
  21. Sounds kind of like an Autocomplete feature to me. Of which there are a lot of tutorials out there. I would take a look at one of the tutorials and see how they go about this. Take a look here http://fromvega.com/wordpress/2007/05/08/auto-complete-field-with-jquery-code-explained/ It sould point you in the right direction.
  22. I will give your friend a hint. There is an ie unsupported CSS selector being used for the background color somewhere...
  23. Ohh you gotta remove those spaces in front of the dates ' 2010-04-19' from the second query down.
  24. Ok and you are using an auto_increment field for the id column correct?
  25. Run this and make sure that all of queries are coming out correct. $filename = "datelist/aprildates.txt"; $fd = fopen ($filename, "r"); $contents = fread ($fd,filesize ($filename)); fclose ($fd); $delimiter = ";"; $splitcontents = explode($delimiter, $contents); foreach ( $splitcontents as $date ) { echo "SELECT * FROM slotinfo WHERE date = '$date'"; echo "<br />"; }
×
×
  • 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.