Jump to content

TheEddy

Members
  • Posts

    32
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

TheEddy's Achievements

Member

Member (2/5)

0

Reputation

  1. And how does one exactly use a framework? If I am going to make an application for others to use as well, is it a good idea to develop it in a framework?
  2. Recaptcha has been cracked and bots can now get past it.
  3. I am leaning towards Zend but is it worth my time? Don't I also have to pay yearly to be able to use their framework on websites?
  4. I am a noob, what exactly are frameworks?
  5. It was better for me to use this: function curPageURL() { $pageURL = 'http'; if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";} $pageURL .= "://"; if ($_SERVER["SERVER_PORT"] != "80") { $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; } else { $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; } return $pageURL; } $r=curPageURL(); $_SESSION['REFERER']=$r; Because I also needed to record the direct input from the browser. Thanks for your help though!
  6. How does one use the HTTP_REFERER method?
  7. I want people to login and then be redirected back to the page from where they came from. I was thinking that maybe I would have to use $_GET for 3 pages but I don't know if there is any easier way.
  8. Nothing will appear unless I search for email and only one result when there should be two. If I search for email, I don't get the message that there is nothing there but no results are shown.
  9. if (mysql_num_rows($result) != 0) { print (" <ul> "); while ($row = mysql_fetch_assoc($result)){ print (" <li><a href=\"memberprofiles.php?uid=$uid\" title\"$userName\">$userName</a></li> "); exit; } print (" </ul> "); } else { print (" There were no results based on your criteria. "); } I don't know how I made that mistake where I had that equal to 1. But I don't know how to loop the results
  10. This is what I have for results: $sql = "SELECT * FROM `users` WHERE `$searchField` LIKE '%$search%'"; $result = mysql_query($sql) or die(mysql_error()); $row = mysql_fetch_array($result); $userName = $row['userName']; $uid = $row['userID']; if (mysql_num_rows($result) == 1) { print (" <ul> "); while ($row = mysql_num_rows($result)){ print (" <li><a href=\"memberprofiles.php?uid=$uid\" title\"$userName\">$userName</a></li> "); exit; } print (" </ul> "); } else { print (" There were no results based on your criteria. "); }
  11. $searchField would have been "emailAddress" and $search should have been "webmaster" and should have pulled: webmaster@test.com and webmaster@testing.com
  12. $sql = "SELECT * FROM `users` WHERE `$searchField` like '%$search%'"; I still have to put in the EXACT value, it can't be similar.
×
×
  • 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.