Jump to content

raknjak

Members
  • Posts

    53
  • Joined

  • Last visited

Everything posted by raknjak

  1. Encrypt() is not for used for password protection because it is 2-way encryption. http://stackoverflow.com/questions/7044785/what-is-the-safest-way-to-store-a-password-using-code-igniter-solved
  2. just put it in the view
  3. in your model: return $query->result(); in your controller: $result = $this->account_model->user(); $result is object
  4. You explained what you want to accomplish, but I do not see any problem description or debugging attempts. - Using brackets means passing an array to the controller, so you need to do a corresponding action there to meet the array's needs. - you need to SET the date in your model: $this->db->set('creationdate', 'now()', false); - If you want to insert a row for each checkbox ticked your database model needs to be more complex.
  5. Are there no files called error_log in your webserver webroot for example? Maybe something like this in your code will work, depending on what the server allows. ini_set('error_reporting', E_ALL); Since mail() relays it's requests through sendmail check those logs, too - no way for you to access those though /var/log/mail.log. You could see whether an e-mail is actually sent with this kind of script: http://www.howtoforge.com/how-to-log-emails-sent-with-phps-mail-function-to-detect-form-spam let us know how it turns out
  6. I wonder what alert(b) would output fife, if this solves your issue please mark as solved, which would make you a cool person
  7. For small sets of data you made the correct choice I think. Enum is pretty fast
  8. Ahhh Dumpert excellent find!
  9. Possible help tip: install MySQL before PHP module It might be good to post what you tried in a nutshell. I did find this old article: http://www.puremango.co.uk/2009/01/wamp_97/ good luck
  10. - use mysql_fetch_assoc for faster loading times - what is the </option> doing here? What I think you want to do is float every <div> element to the left, except when you count a third element, then clear the float on the next element so that you can work with a random number of results. <div id="cbwrapper"> <div class="floatleft"><label><input type="checkbox" /></label></div> <div class="floatleft"><label><input type="checkbox" /></label></div> <div class="floatleft"><label><input type="checkbox" /></label></div> <div class="clearboth floatleft"><label><input type="checkbox" /></label></div> <div class="floatleft"><label><input type="checkbox" /></label></div> <div class="floatleft"><label><input type="checkbox" /></label></div> etc... </div> .floatleft{float: left;} .clearboth{clear: both;} You could do this by adding a counter $i=1, check for $i%3 == 0 and if this is true then add .clearboth to the next div being echoed. Anyone better then me with PHP might have a more elegant solution? (Edit: beaten)
  11. function AddRecipe($user,$Pub,$title,$prep,$cook,$make,$ingr,$desc, $note){ if(!TRACK_VISITORS) return; $q = "INSERT INTO recipies (`user` ,`Pub` ,`title` ,`prep` ,`cook` ,`makes` ,`ingredients` ,`recipe` ,`notes`)VALUES ('$user', '$Pub', '$title', 'prep', 'cook','$make', '$ingr', '$desc', '$note');"; mysql_query($q, $this->connection) or die(mysql_error()); $this->calcNumActiveGuests(); } What do YOU think is wrong with this piece of code? You gave the answer in your question
  12. http://utilu.com/IECollection/ I use this aside IE Tester because IE Tester crashes on me all the time. not reliable imo.
  13. As cssfreakie pointed out to me not long ago: "hehe bottom left corner green button 'solved' only shows when not in editor mode "
  14. change the link around the image in your post from http://ashedmonds.com/gps/?p=439 to http://ashedmonds.com/gps/[insertpagelinktogalleryhere] You'll need to edit all the posts, so if you want to change this later you'll probably have a lot of work. Maybe it's time to think about a different kind of implementation? (Unless some plugin is taking care of post images/headings?)
  15. I was able to reproduce your problem yesterday, today it seems to work fine in IE7 and IE8. you fixed it?
  16. yes, I noticed that, too. The example I posted uses a background for that: browncol.gif which is repeated vertically. I don't know any other technique. What you could do is start off with that template and then insert your customizations. This is just a suggestion off course, I just noticed that when I do it like that I save huge bundles of time.
  17. position: absolute + height: 100% isn't going to do what you want. http://www.positioniseverything.net/thr.col.stretch.html might this help?
  18. You are in luck, I just picked this off their newsletter and then came here http://thinkvitamin.com/code/how-to-create-totally-secure-cookies/ Awesome site and I highly recommend anyone to subscribe to their feed.
  19. Is this a title attribute on your <a></a> HTML element meaning that the value is sent to the browser and that you have to look in that particular markup?
  20. I tried to solve this with firebug but the way the site is built up, it took me too long so here is an example of how it will work. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>An XHTML 1.0 Strict standard template</title> <style> #wrapper{width: 1016px} #nav{ margin-top: 10px; text-align: center; } #nav li{ display: inline; margin-right: 15px; } #nav li a, #nav li a:visited{ text-decoration: none; color: #000; } #nav li a:hover{ color: #ccc; } </style> </head> <body> <div id="wrapper"> <ul id="nav"> <li><a href="?p=start_page">start page</a></li> <li><a href="?p=account">my account</a></li> <li><a href="?p=terms">terms</a></li> <li><a href="?p=manual">manual</a></li> <li><a href="?p=support">support</a></li> </ul> </div> </body> </html> 1. div#wrapper has maximum allowed width (prevents menu from wrapping) 2. no width on the ul is needed (block-level elements take up the max allowed width when no width is specified = div#wrapper width 3. text-align: center on the ul element to center the li elements within
  21. I think you are right in assuming that this cannot be done. I wouldn't know how to do it, maybe someone else?
  22. This might help you out? http://fancybox.net/
  23. http://www.testiphone.com/ meh?
  24. On you images do: display: block; or define "gaps" (screenshot?) how do you want to place the images?
  25. Ah right, that works thanks! (how do I solve post?)
×
×
  • 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.