taith
Members-
Posts
1,514 -
Joined
-
Last visited
Everything posted by taith
-
ya... mine grabs everything after the first . as in... http://www.google.ca --> google.ca and https://wwwl.google.com --> google.com
-
it is after i made it... not a default one, but you can make your own...
-
yup! prolly want to inset it into mysql mysql_query("UPDATE `counters` SET `page`='page+1'"); not tested... but i think it'd work... lol
-
bottom left
-
oh pishposh... lol... no need for a like statement :-) just use this :-) <?php function get_ending($filepath){ return substr($filepath, strpos($filepath, strchr($filepath, "."))); } $file = 'http://us10.stupid.com/Myfile.jpg'; $file = 'http://www' . get_ending($file); echo $file; ?> not tested... but it should work
-
[SOLVED] Parse error: parse error, unexpected T_STRING
taith replied to aaronk7's topic in PHP Coding Help
not necessarily... it seems its echo $row['player']."<br>"; but without the code tags, it looks broke ;-) -
[SOLVED] Parse error: parse error, unexpected T_STRING
taith replied to aaronk7's topic in PHP Coding Help
$sqltogether = g_$sql1; theres your problem... g_? -
your missing a ; at the end of the first line there also you can simplify your code like this $search=addslashes($_REQUEST['search']);
-
aww poor fearpig... *pats on the back*
-
prolly need to call your webhost... (btw... this is php help forum, you want to pay people... post in freelancing)
-
then you need to put the javascript on the originating page... php exists only after the page has been submit
-
if(!empty($array)) $array=array();
-
to load part of a page without reloading the whole page, you got 3(?) options... 1) frameset 2) iframe 3) ajax
-
a) javasript issue b) you'd need to use document.location.href (buttons have to be told to act like links )
-
prolly want to use iframes :-)
-
not tested... but it should work :-) function average($arr){ if(!is_array($arr)) return false; return array_sum($arr)/count($arr); } function cleanup($array){ $out=array(); foreach($array as $k=>$v){ if(!empty($array[$k])) $out[$k]=$v; } return $out; } $array=cleanup(array('134.32', '', '123.12')); echo average($array);
-
Can you help me split a string in two parts?
taith replied to igor berger's topic in PHP Coding Help
agreed... where do you want it split? are the splits always going to be in the same place.........................? -
lol it doesnt disable the whole mouse... it only disables the highlighting of the text... so when you put your mouse over a span/div/table or wherelse i put it, it gives access...
-
ontop of every page, put session_start();... and you never need to use session_destroy();... then you can access them session variables, when/wherever you see fit.
-
Session variables work on one page but not another...Help
taith replied to modigy's topic in PHP Coding Help
what you do... is print_r($_SESSION); include(); print_r($_SESSION); if it does empty... you know its something in that file, go in there, start at the bottom and print_r($_SESSION); if its empty, move it a line up, till you find where its unseting... -
scratch that... still doesnt work... doesnt enable anything ever... <sc ript> var saveonselect=document.body.onselectstart; var saveonmousedown=document.body.onmousedown; function disablemouse(){ document.body.onselectstart=function(){return false;} document.body.onmousedown=function(){return false;} } function enablemouse(){ document.body.onselectstart=saveonselect; document.body.onmousedown=saveonmousedown; } </sc ript> <body onload="javascript:disablemouse();"> <span onfocus="javascript:enablemouse();" onmouseout="javascript:disablemouse();">text</span>test
-
instead of if ($pw == "1234"){ echo "You are Successfully Logged in!"; } else { echo "You are not an authorized user."; } change them echo's to a $_SESSION variable, and redirect right away... that way nobody ever see's that page :-)
-
personally... as i do it, member information, always goes in lower case into my database... username, login, fullname, everything... save the encrypted password... the formatting i do, is when it comes out of the database :-)
-
YAY! it works! sorta.... now... i'm no js expert... but this only works once... ??? ??? ??? <s cript> var saveonselect = document.body.onselectstart; var saveonmousedown = document.body.onmousedown; function disablemouse(){ var target=document.body; target.onselectstart=function(){return false} target.onmousedown=function(){return false} } function enablemouse(){ this.onselectstart = saveonselect; this.onmousedown = saveonmousedown; } window.onload=disablemouse; </s cript> <span onmouseover="javascript:enablemouse();" onmouseout="javascript:disablemouse();">text</span> test i mouseover the span, it allows me to highlight, mouseout, i cant highlight, i mouseover, i still cant highlight... ???
-
LOL! i work at a call center presently... 99% of our calls are windows, and my customers prove me right every call... you make a program stupid proof, the world makes a stupider person...