Jump to content

justsomeguy

Moderator
  • Content Count

    31,575
  • Joined

  • Last visited

  • Days Won

    77

Everything posted by justsomeguy

  1. I'm not quite sure I'm understanding correctly. I think though that you can only destroy sessions you have created, you don't have access to destroy a session that you haven't created.
  2. What you have: $query = "SELECT * FROM challanges WHERE (challanger = '$user' OR challanged = '$user') AND declined != '$user' ORDER BY id DESC";$result = mysql_query($query)or die(mysql_error());while($row = mysql_fetch_array($result)) {extract($row);echo "<a href='console.php?p=EditChallenges&cid=$id'>$challanger vs. $challanged</a> - $date<br>";} When you make the query, and start the while loop, you are using mysql_fetch_array, which results in $row[0], $row[1], $row[2], etc. If you want $row['id'], $row['challanger'] (btw, it's "challenger") you need to use mysql_
  3. Also take a look here:http://www.php.net/manual/en/features.file-upload.php
  4. You need a webserver to execute your PHP files and send the result to the browser. When you have your browser visit an address that ends in .php (like you are now), your browser asks the server for that PHP file. The server in turn executes the PHP code, and instead of sending your browser the PHP code, the server sends the browser what PHP tells it to.The easiest thing to do in your case, unless you want to install your own webserver for testing (Windows does include one you can use), and then install PHP on the server, is rent a server online (or find someone willing to let you use theirs)
  5. justsomeguy

    SQL or PHP?

    If you are using MySQL:http://www.php.net/manual/en/function.mysql-error.phpAlso, it would be helpful to describe what happens when you execute the code instead of saying that it doesn't work.
  6. justsomeguy

    PHP Editors...

    Notepad is terrible for coding.I prefer ConTEXT (http://www.context.cx/), but I also like some of the features of PSPad (http://www.pspad.com/). It's hard to beat a logo that features a dog with a butthole.
  7. One thing you might try is to remove the </input> closing tag, it's not necessary. IE might be confused over that. If you are going for XHTML conformity, you can close the input tag like this: <input type="image" name="msearchitem" src="butt_chairs.jpg" value="CHAIRS" />
  8. You probably want to ask hotmail about this. Also try copying and pasting the headers for an email you received (not the code, the headers that the actual email contains). You may need to reconfigure the mail server to send out different headers.
  9. You can use this function to bring all request variables into the global scope:http://www.php.net/manual/en/function.impo...t-variables.phpOnce you do that, you would have to use 'variable variables' to refer to the individual request variables: inport_request_variables("p", "varprefix_");$varname = "varprefix_" . $fileinfo[0];echo "the value of {$varname} is {$$varname}"; //note the double $ signs More on variable variables:http://www.php.net/manual/en/language.variables.variable.phpHowever, your example should still work. You should also be able to do this: $varname = $fileinfo[0];echo $
  10. There's also the reference on php.net for sessions:http://www.php.net/manual/en/ref.session.phpNot a tutorial per se, but still very helpful.
  11. That's the guest's problem, not the community's, or maybe they simply just want to remain anonymous. I am 26. I have a BS in computer science from Arizona State, I hold a job working four 9 hour days per week (currently writing hardware simulation for a military project), and I also co-operate a home-based web development business out of my house on the 3 remaining days of the week, as well as nights. I also own my own house, and have built a porch, a garage, laid a wood floor, and painted the entire interior over the past 2 years. I'm not trying to be condescending here, but if your title
  12. That's simply not true. The link I posted above is to a forum for a programmer's text editor, and the rules are almost always followed, even by guests. If they aren't, then like I said, that's what moderators are for. If everyone always followed the rules, then you wouldn't need mods.Also, I just have to say this. Make sure I get it right:leet-speak: badgiant pictures of tired web cliches in your signature: goodIs that about right? If that's the attitude you want to project, fine, but that's not very conducive to having a helpful, inclusive community.From what I see the mods saying, I real
  13. Sheilds UP is a free service from Steve Gibson, I don't think he advertises anywhere.I should also mention that Steve Gibson has his web site at grc.com (Gibson Research Corp.).
  14. One example would be the forums at http://forum.context.cx, granted there is the occasional Asian language ringtone spam, but I guess that's what moderators are for. But there I have seen a lot of people start off as guests and later register once they realize no one bites.
  15. 1. Update your DNS server to redirect all requests for w3schools.com on port 80 to www.w3schools.com. Seriously. There's no technical reason why you can't. It looks lazy, and considering the site's content, it looks incompetent. It would be nice to be able to refer people to go to w3schools.com, it's easy to remember, but instead I have to make sure I specify and they understand that they have to type in the www subdomain for it to work, or else I field questions from people saying they can't get to the server.2. Allow guests to post on the forum for people who don't plan on posting more
×
×
  • Create New...