-
Posts
208 -
Joined
-
Last visited
Everything posted by ki
-
I had a problem similar to this, I just edited my .htaccess to read a certain page like FAFDAF-thispage.whatever would actually be a regular page I would randomize the name and add the -thispage.whatever at the end to certify that it was the page and it would cache. hope this helped
-
okay my site has a very simple design: http://pxcore.com/register.php but the div#holder & the div#header get a white space when, you get a returned error on the page, say like after I post a invalid e-mail, the page will display with an error box and theres this 2px whitespace in between the div#header & the div#holder div#header { height: 30px; margin: 0; padding-left: 4px; background: #1685B1; color: #FFFFFF; font-size: 25px; font-family: "Lucida Grande", Tahoma, Helvetica, sans-serif; } /* HOLDER */ div#holder { font-family: "Lucida Grande", Tahoma, Helvetica, sans-serif; background: #FAFAFA; border-bottom: solid 1px #C3CAD2; border-left: solid 1px #DAE1E8; border-right: solid 1px #DAE1E8; display: inline-block; margin-bottom: 10px; } div#holder:after { clear: both; visibility: hidden; display: block; content: "ILL"; } /* ERROR LIST */ div#RE { background: #FFFBCF; border: 1px solid #FFED27; padding: 6px; text-align: left; color: #000000; margin: 2px; } div#RE li { list-style: none; } div#RE ul { margin: 0; padding: 0; } /* REGISTER */ div#holder span.RR, div#holder span.RB { display: block; } div#holder h3.RH { margin: 0; margin-bottom: 3px; color: #FF8000; border-bottom: 1px solid #000000; float: left; width: 100%; } div#holder div.RT { font-weight: bold; float: left; width: 75px; margin-top: 4px; margin-left: 4px; } div#holder div.RI { float: left; width: 450px; margin-top: 4px; margin-left: 4px; } thats basically all the CSS I use for that page
-
well I want it small like facebook has theirs for each individual post on the wall
-
Whats a good thumbnail ratio for sizing images down in php?
-
use a for() function?
-
header() is a function Location: tells it that you want to redirect it to a page, success.php is any page you want
-
check if checkbox is checked: if(!$_POST['checkboxname']) { die('You did not agree with terms of service'); } check username $chkUSR = mysql_query("SELECT * FROM `registrationdetails` WHERE `user` = '".$_POST['Username']."'"); $getUSR = mysql_fetch_object($chkUSR); if($_POST['Username'] == $getUSR->Username) { die('username already registered'); } redirect header("Location: success.php");
-
it seems like javascript has been the same forever
-
Well im not that good a flash programming but couldn't you just run a javascript command through the getURL() command in action script?
-
is it possible to set some sort of a time for the first flash then use action script to use javascript to change the source of that flash to the one you want to play?
-
so what your basically saying is that it creates a dynamic div over the rest of the content and add the part you want displayed on the dynamic div?
-
okay what im trying to do is check is 3 variables posted match 3 variables that are in the same mysql db row <? ob_start(); ?> <? require_once('config.php'); $user = $_GET['u']; $pass = $_GET['p']; $serial = $_GET['s']; $q = mysql_query("SELECT * FROM `usr_db` WHERE `users` = '".$user."' AND `password` = '".$pass."' AND `serial` = '".$serial."'"); $q2 = mysql_fetch_object($q); if(!$user) { die('0'); } if(!$pass) { die('0'); } if(!$serial) { die('0'); } if(!$q2) { die('0'); } else { die('1'); } if(($q2->users == $user) && ($q2->password == $pass) && ($q2->serial == $serial)) { die('1'); } ?> thats my code im using the $_GET function because im using it on a VB6 program, If it fails I want it to return a 0 if it all passes I want it to return a 1, but somethings wrong and I don't know what, help would be appreciated.
-
im not close to my regular computer but when you $_POST a input like "hi I don't like cheese" and when u echo it, it responds like "hi I don\'t like cheese, does the \' get added when you insert it into a mysql database or doesnt it insert as "hi I don't like cheese"
-
actually i was talking about my script, but i tested yours and it works just fine
-
i just realized that the script above doesnt work for some reason, its not returning $first and $last values. any ideaS?
-
what if i use count_chars() function for the " " and count how many spaces there are? but that also wont determine if the last one is last name or jr or senior
-
okay know u guys are getting me a bit confused, could you explain little bit more?
-
okay cool thanks, i came up with this, tell me if its efficient enough $NE = explode(" ", $_POST[NAME]); $SPACES = count($NE); if($SPACES == 2) { list($first, $last) = split(" ", $POST[NAME]); } else { list($first, $middle, $last) = split(" ", $POST[NAME]); }
-
okay im making a submit form for a Full Name so like Full Name [input] when people put their full name its usually like First Last but some people include their middle like First Middle Last is there a way I can tell if they put their name like those? when im using list($first, $middle, $last) = split(" ", $_POST['NAME']); Help is appreciated.
-
<select name="register_BirthdayYear"><? for($i = date("Y") - 12; $i == date("Y") - 100; $i--) { echo "<option value=\"".$i."\">".$i."</option>"; } ?> </select> im trying to make it go down from Current year - 12 then stop at current year - 100 then go down every year, but all it returns is null, any ideas?
-
Okay whenever I insert a character like ' into my mysql database my script seems to error? Any suggestions on preventing this error?
-
I have a database that has a bunch of images, what I want to do is make it so a selected one is shown as thumbnail. What im asking is, is it possible to make a script that displays an image as a thumbnail but not save it to the server?
-
not bad, i like your lack of table use. looks very professional and clean looking
-
I was just wandering, whats the difference between the mysql and the mysqli functions in php?