-
Posts
53 -
Joined
-
Last visited
Everything posted by raknjak
-
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
-
just put it in the view
-
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.
-
mail() not working, options for finding out why?
raknjak replied to rich_traff's topic in PHP Coding Help
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 -
I wonder what alert(b) would output fife, if this solves your issue please mark as solved, which would make you a cool person
-
For small sets of data you made the correct choice I think. Enum is pretty fast
-
Ahhh Dumpert excellent find!
-
Starting to get very very frustrated Apache 2.2.17 php 5.2.17 MySQL 5.5.10
raknjak replied to Ghostcore's topic in MySQL Help
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 -
- 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)
-
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
-
http://utilu.com/IECollection/ I use this aside IE Tester because IE Tester crashes on me all the time. not reliable imo.
-
As cssfreakie pointed out to me not long ago: "hehe bottom left corner green button 'solved' only shows when not in editor mode "
-
trying to make the images in my slider link to a page...
raknjak replied to justinchrono's topic in CSS Help
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?) -
I was able to reproduce your problem yesterday, today it seems to work fine in IE7 and IE8. you fixed it?
-
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.
-
position: absolute + height: 100% isn't going to do what you want. http://www.positioniseverything.net/thr.col.stretch.html might this help?
-
how do securely store username and password in cookies ?
raknjak replied to jasonc's topic in PHP Coding Help
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. -
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?
-
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
-
I think you are right in assuming that this cannot be done. I wouldn't know how to do it, maybe someone else?
-
This might help you out? http://fancybox.net/
-
http://www.testiphone.com/ meh?
-
On you images do: display: block; or define "gaps" (screenshot?) how do you want to place the images?
-
Ah right, that works thanks! (how do I solve post?)