Jump to content

dzedward

Members
  • Posts

    42
  • Joined

  • Last visited

    Never

About dzedward

  • Birthday 03/23/1986

Contact Methods

  • Website URL
    http://www.flashgods.org/forums/

Profile Information

  • Gender
    Male

dzedward's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. That does the same thing. Lets say there are 3 matches for username=$user name, well that is ok, and I want all the results to get returned, however, it only returns results for the first match it encounters.
  2. Say I have a query like so: $sql = mysql_query("SELECT * FROM $my_table WHERE username='$user'"); But, there are more than one entries where username would equal $user. I want to get all the data basically where that condition matches. Is this possible by chance? Thanks.
  3. I added that to my hosts file, and am now able to ping it with no loss. However, I'm still not able to bind or listen. Here are the errors unable to bind address [0]: The requested address is not valid in its context. unable to listen on socket [0]: An invalid argument was supplied.
  4. I can't even ping it.. why would that be? 66.74.14.110
  5. What would be a reason why a socket won't bind to my public IP, it will only bind to 127.0.0.1.. My actual IP is live and points to my domain. I forwarded the port im listening on to my comp, and allowed it in my firewall. I just don't get it.
  6. I have a socket server php file that I need to be running at all times on my server. Its an apache server running on OS X. I see how I can do this with windows by creating a bat file and running the shell by command prompt, but how would I go about this on the Mac. Remember I need this running at all times, without having to navigate to the php file in a web browser. That way it will always be listening for connections on a certain port. Any ideas? Thank you.
  7. truncate table worked great. Thanks to you both.
  8. Is it possible to clear out all values of a table in a database, and reset the key?
  9. Thats your best?? jp, cause it works now! I can't thank you enough!!!!!!
  10. http://flashgods.org/check.php?inc=2068659131 is the second to last one in db.. should return http://www.beechstudios.com http://flashgods.org/check.php?inc=1090339229 is the last one in db... should return "Finish Line"
  11. Using this I get no error, and I works if it is the last one in line. But all others fail to move on to next url, just get blank.
  12. its not returning undefined, its just returning blank.. Changed that and now receive this Parse error: syntax error, unexpected T_VARIABLE in C:\wamp\www\domain\check.php on line 26 line 26 is $row2 = mysql_fetch_array($qry2);
  13. without the if statement, it always returns the next URL, but when it gets to a point where there is no more after, its just blank, i need to know when that happens to I can call the function finish
  14. $sql = "SELECT ID FROM adv WHERE req = '$incoming'"; $qry = mysql_query($sql) or die("Query failed: " . mysql_error() . " Actual query: " . $sql); while($rand = mysql_fetch_object($qry)) { $request = $rand->ID; $id = $request+1; $sql2 = "SELECT advURL FROM adv WHERE ID = '$id'"; $qry2 = mysql_query($sql2) or die("Query failed: " . mysql_error() . " Actual query: " . $sql2); if($qry2['advURL'] == ''){ finish(); } else { while($theId = mysql_fetch_object($qry2)) { $url = $theId->advURL; $newURL = $url; giveNew($newURL); } } } function giveNew($next){ echo $next; } function finish(){ echo "Finish Line"; }
  15. its returning false every time for me...
×
×
  • 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.