-
Posts
4,362 -
Joined
-
Last visited
-
Days Won
11
Everything posted by Zane
-
use the is_null() function [code]if(is_null($var) || is_null($anotherVar))[/code]
-
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]I was wondering how you guys made the code block[/quote] well...we didn't make it first of all and most likely regex was used to do it all it is is it replaces stuff between [code] with a formatted div tag whilst removing the code tag and then they CSS to make it look prettier
-
This could work as well it will delete every key that has a matching one in the other table...leaving the 'unrelated' ones as I assume you wanted [code] DELETE FROM cvs, jscvs USING cvs, jscvs WHERE cvs.id = jscvs.id;[/code]
-
go to [a href=\"http://php.net/addslashes\" target=\"_blank\"]http://php.net/addslashes[/a] and learn the function it should fix it all up
-
I wonder if this works...try it [code]strtotime("7 hours 30 minutes", strtotime("8:30"));[/code]
-
I bet the message is parsed before it's added to the database and the PHP parts were just formated beforehand using regex or something, that would explain why the quote tags from way back are different too see check it out [a href=\"http://www.phpfreaks.com/forums/index.php?s=&showtopic=34590&view=findpost&p=126084\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?...ndpost&p=126084[/a]
-
could you just convert it to UNIX timestamp and do a couple date/time functions [code]date("g:i", strtotime("8:30 + 7 hours 30 minutes"));[/code]
-
[!--quoteo(post=360123:date=Mar 30 2006, 02:44 PM:name=ober)--][div class=\'quotetop\']QUOTE(ober @ Mar 30 2006, 02:44 PM) [snapback]360123[/snapback][/div][div class=\'quotemain\'][!--quotec--] Please tell me that this is all generated from the same page and you just want to look at the status of a field in a database of all your users. [/quote] I think, no I'm pretty sure that he's trying to phish data from a database he doesn't have access to. [!--quoteo(post=360123:date=Mar 30 2006, 02:44 PM:name=ober)--][div class=\'quotetop\']QUOTE(ober @ Mar 30 2006, 02:44 PM) [snapback]360123[/snapback][/div][div class=\'quotemain\'][!--quotec--]Otherwise, that's gotta be the worst design of a website I've ever heard of. [/quote] These forums are laid out such a way.....for instance, the 'newbies'. 'lurkers', and 'gurus' all have a significant field value on their profile...wouldn't be too hard to just do a loop, but it would take such a long time
-
you would need to look into these two function ereg() file_get_contents() assuming you know how many users there are, you'd create a loop from 1 to that number using a counter var and have it ereg each page for that gif using the counter var again something like this [code] $parseUrl = "http://www.example.com/member/profile/"; $numUsers = 0; for($i=0; $i<5000; $i++) { $parsePage = file_get_contents($parseUrl$i); if(ereg("http://www.example.com/images/powermember.gif", $parsePage)) $numUsers++; } echo "There are " . $numUsers . " power users";[/code] EDIT But using something like that would take FOREVER if there are a lot of pages
-
if you're wanting to perform it when on hover you should use onMouseOver instead of MouseOut and also on your script [code]function tagHelp(name, usage){ eval("window.document.form."+name+".value = Usage: usage;"); }[/code] usage should be outside the quotes the same as name like so [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]function tagHelp(name, usage){ eval("window.document.form."+name+".value = Usage:[!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--][b]"+usage+"[/b][!--colorc--][/span][!--/colorc--];"); }[/quote] and if I'm not mistaken you should have to put single quotes around the new value [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]function tagHelp(name, usage){ eval("window.document.form."+name+".value = [!--coloro:#3366FF--][span style=\"color:#3366FF\"][!--/coloro--]'Usage:"+usage+"'[!--colorc--][/span][!--/colorc--];"); }[/quote]
-
if that's the exact format of the email then this may work [code] (v|V)<span.*</span>(i|I)<span.*</span>(a|A)<span.*</span>(g|G)<span.*</span>(r|R)<span.*</span>(a|A)</font>[/code] can't guarentee anything though
-
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]I want the user to be able to click on a button located within the form and be took to a seperate page[/quote] are you talking about having two separate submit buttons? I couldn't think of any reason to have a nested form, seems kinda redundant....only reason I could think of is if you wanted to make a certain field mandatory which can be done with a CGI/Javascript anyway.
-
if you use the key SCRIPT_FILENAME on $_SERVER you'll get just the filename [code]$fname = $_SERVER['SCRIPT_FILENAME'];[/code]
-
another question Is it possible to popup an htaccess logon box for when someone tries to access a certain port number So if someone tries to access stuff on port 8080 how do I restrict and authorize it and I guess my next problem would be how do I distinguish in Apache which port a folder is part of if I have all my folders in htdocs (the web root) and I want say my images folder on port 8080 would I have to take it out the web root and put it in a folder in the apache root somewhere....what how you see what I'm getting at?
-
This isn't really IIS but it is Microsoft based and it is a problem I'm having....therefore...this is the right forum ok..I have two computers on a network mine runs xp Pro and the other runs xp HOME I have two drives I want the HOME computer to access instead of mapping two drives.........is it possible to some how put a 'link to the other drive inside the one they've just logged into. Say I only map them to the C Drive and I want them to be able to access the D drive as well....... is there anyway....in my c drive I could put some kind of link to my d drive so I wouldn't have to create a second drive map I know that once a user logs into one mapped drive....if that username is permitted on another, the user doesn't have to log into that one. the reason I ask is because this scenario was toned down from reality...I actually have 4 drives I want to "link" with EDIT: and I've already tried making actual shortcuts and it thinks of the shortcut as local so if I have a shortcut in my c drive for the d drive and they access it it will try to access the d drive that may be on their computer
-
as far as MD5 goes it's much better to reverse your string MD5 that then reverse the MD5 and MD5 that makes it impossible to hack In reference to this post http://www.phpfreaks.com/forums/index.php?...topic=76708&hl=
-
you need to get to the mysql console through DOS or your terminal or whatever you are using and use the OLD_PASSWORD algorithm
-
It should be Choose the table in particular and choose the Operations tab...it should be there
-
check this link out http://www.phpfreaks.com/forums/index.php?...hl=libmysql.dll just replace libmysql.dll with libmysql.so
-
yeah...please elaborate...lol I use Zend Studio and Dreamweaver MX 2004 keep everything in order
-
My name is Zane Dockery I am from Murphy, NC and I'm 19 years old I go to Southwestern Community College in Sylva, NC I'm a double major in Internet Technologies and Computer Information Systems I started teaching myself PHP around 2-3 years ago and I learn more every time I get on these forums. I also know Mysql, HTML, Javascript and some CSS and JAVA. I hope to learn more as I the years go by.
-
send an email to dockeryz(AT)gmail(DOT)com and I'll hook you right up
-
heh....join the club i love that show too that and aqua team,and a bunch of weird-ass cartoons ......So......can anyone figure out where they top quote is from? a gmail invite for the winner....lol like you couldn't just google it out......sorry had to find a way to give em out somehow I guess I can offer one to henster for finding out the origin of the earlier mentioned quote ......want it?
-
I don't know if anyone noticed ot not...but your slashes are backwards meaning.......they are when they should be if you wanted to escape the quotation marks that could be why the coloring is off