Jump to content

xcandiottix

Members
  • Posts

    330
  • Joined

  • Last visited

    Never

Everything posted by xcandiottix

  1. if its a different ID you would do something like: <?php $iListID = "Hello"; $totalIDs = 10; $uniqueID = 0 for($totalIDs; $totalIDs>=0; $totalIDs-=1){ echo $iListID.$totalIDs.'= "'.$uniqueID.'"'; echo "<br>"; $uniqueID +=1; } ?>
  2. I was wondering the same thing while driving today. I do believe it's quite possible as some instant messenger programs use flash to do this. Not really a PHP question tho until you get into user ids and such. http://www.adobe.com/devnet/flashmediaserver/articles/beginner_live_fms3.html
  3. For just the $iListID = ""'s you need to: $totalIDsB = X; for($totalIDs; $totalIDs>=0; $totalIDs-=1){ echo $iListID.$totalIDs.'= ""'; }
  4. As a side note I did something remotely close to this before and the random number thing gets a alot of user complaints reguarding seeing the same page over and over. I recommend you start them at a random table row and from there they go up or down the table incrementally. That way it's guaranteed to be a long time before they see the same site again. Once they get to the top or bottom just send them to the opposite side of the table and let them keep going. edit--- I read your post a little more carefully... Just store your web addresses in the data base with a standard incremental key. Then have your user start at a random row as i said above. Everytime they click next you should have an IF statement checking to see if the site is active... if it is then are the credits >3. If not, skip that row.
  5. $me = 'cheese'; if(preg_replace('/[a-zA-Z0-9]/', '', $me)){ echo "Bad Characters"; } else { echo "Passed"; } -Keep getting it passed when the string cheese has letters in it which should fail the test. Any thoughts?
  6. Hold on. I disagree with the above posts. We are talking about a CLOCK REPAIR COMPANY .... in themiddleofnowhere, Washington. Who's going to this site? I'm 27... i dont even own a watch. My grandmother has a big ass wooden clock however. I like flash.... my grandmother can't even open an email properly. SO, with target audience (age group +50, non power users, obviously not technologically current) as a refrence point... yes.. this site is perfect. Shame on those posts above
  7. I am not excited by this page at all. You make something dark like this to be trendy .. well thats great.. if you are setting the trend... unfortunately this site is not. I would go with a lighter more inviting color scheme. Use blues ... why? Well, just google "How do colors affect moods" and you'll see... and you'll learn why black is no good.... stay away from red too.
  8. You know.. i like your site design. I'm working on a major site release that uses some apps to drive it .... something like this might work. Email me in a few months to remind me.
  9. Ha ha ha ha ha. Okay.... you're welcome for the google ad impression... you owe me one now, take your pick: http://www.dyno-charts.com http://www.msormr.com http://www.ratemyvampire.com thanks. </shameless self promotional thread>
  10. ... Well.... let's start with the obvious. WHY is forum white pages dot com black?? Redo. With readable contrasting text color.
  11. Somethings off with this site but I'm not quite sure what it is. It feels lopsided first off all.... the left side is heavy with log ins and search forms while the other side is empty. The paragraph in the middle is way too much information in a hard to read font that doesn't blend well with the rest of the site.... i think you're going for an seo thing but its not working for your design. I dislike the RA designs banner position.. its trying to not be a part of the site while looking like part of the site and its confusing. From the Job seekers and employers buttons on down it looks really nice. So.. i guess something is wrong up top, try simplifying and creating balance.
  12. I like your site its clean and clear and one of the better sites i've seen posted. One suggestion for continuity's sake... your photo should turn into color upon mouse over.
  13. I don't get it. And here's why this is a good critique... I didn't bother reading your description I just clicked on the link and I came to a site.. i stared at it for about 15 seconds even though I lost interest after 3. I have no idea what your site does, how to use it, or why I should care about. Not every user will have the luxury of reading your post and description about your site so you have to assume that whoever looks at it has no idea about it and no back story either. You need to develop an intro of sorts that gets me excited and understanding of what i'm looking at. I would start off with something like: Welcome to Thinkitpostit! An instant way to share your thoughts! Some type of tag line that says what your site does ... (Ahhh okay, I know what this does.) Next: Thinkitpostit is your thoughts about all sorts of user submitted questions. Just browse the questions and post an answer... it's just that easy! (ohhh.. now I know what to do here) etc etc etc
  14. At first glance the site isn't bad. But you should really read up on Typography... for advertising and web applications. There are numerous studies that track eye movement and how that relates to a persons state of mind and what choices they make while looking at a piece. The problem with your site is you have improper font sizes, headings, color, etc, that make ones eye bounce all over the place. Make all of your sections with one font type and color and size... all information below should also be uniform. Get some css going or something to make your readers attention go where you want it.... usually you want to answer... where am I? > what does this do? > why should I care? > How can I find out more? > How can I become involved.
  15. $pictures = $value->getElementsByTagName( "PICTURE" ); # IMAGES if ($pictures){ $picture = $pictures->item(0)->getAttribute('name'); } maybe?
  16. So i'm working on a submission form and I'd like to get users birthday. Afterwards though I would like a php script to be able to kick back that X user is X years old. I have a javascript form built that has a drop down for each month, day, and year. When I save it to the database whats the best way to do it so that php can easily relate that to a year of age. I know there's a lot of date functions in php but i'm confused as to the best way to go about it. I'm thinking: Javascript outputs to mysql 11091982 (11/09/1982) PHP takes todays date ... can i use date(m,d,y)? and subtracts 11091982 and comes up with $age=27 ?? Thanks
  17. Does it work if you take out the line: ini_set('sendmail_from', 'me@domain.com'); I've never seen that in a mail function before... but I could use that if it works!
  18. i don't know if this would work but what if you did an include() with the variables on the included page? So if you included variables.php and it had $test = 'hello world' then wouldn't each paragraph print test is: hello world ?
  19. if ($position < 0 || $position > $this->length) return false; else { to if ($position < 0 || $position > $this->length) { return false; } else {
  20. Are you saying that if a user visits the site and there is a charge that if they click a link and then press the back button to the original page there is not a second charge? If so you could either use a session(), cookie, or store their IP in your database and check that if they have already been to this page then do not execute the code that creates a charge.
  21. Ahh okay... i was thinking that it was an organizational thing but that answer seemed too simple for me Okay, well that helps me a lot. Also, the security aspect makes sense too. Thanks!
  22. Inversely, the more someone wanted to steal the work the more time they would devote and effectively go around your counter measure. Basically, you're sending data to the users computer... there's no way around that.. and that data is in fact the very thing you don't want to send. No matter how good the protection, if you had a video on your site I could easily point my web cam at my screen and record it... an audio recorder on my audio output to record sound... and screen shot whatever pdfs you have. Therefore, I believe your challenge is not in protecting your data as much as it is being very careful about who gets to see it. I think the time you'll waste trying to protect your data would be better served on figuring out who you will allow to see it.
  23. I'm starting a new project to continue my learning of PHP and noticed that on godaddy's hosting service that I have 10 mysql databases. With in each database i can make tables. What's the point? Why not just give me one database if i can put as many tables as I want. My question here is what's considered the best way to use the databases/tables for best performance?
  24. Getting Closer <?php if (isset($_COOKIE['settings']) ) { $con = mysql_connect("DB","UN","PW"); mysql_select_db("rmvusers", $con); $data = mysql_query("SELECT * FROM DB") or die(mysql_error()); $rows = mysql_num_rows($data); while($info = mysql_fetch_array($data)){ $uns = $info['db_Username']; $pws = $info['db_Pass']; if(md5($uns.$pws) == $_COOKIE['settings']){ echo "Logged in"; break; } } } ?> This will check the db vs the cookie and correctly identify if the cookie is still valid. Problem: If the WHILE turn up no results how can I echo "Please Log In" ... basically I want to stick an ELSE after the while and say 'okay we couldnt find a match so your cookie is out of date, please sign back in' but else is improper syntax. thanks
  25. Could you use PHP to create an XML document with Child Nodes etc.? I do believe there's good documentation on how to go back and forth between php and XML on the web.
×
×
  • 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.