Jump to content

PHP (Need Help Desperatly)


maxudaskin

Recommended Posts

How would I compare $pid to data in the bring back 0 for not match and 1 for match?

 

$hostname_LeadHost = "***";
$database_LeadHost = "***";
$username_LeadHost = "***";
$password_LeadHost = "***";
$LeadHost = mysql_pconnect($hostname_LeadHost, $username_LeadHost, $password_LeadHost) or trigger_error(mysql_error(),E_USER_ERROR);

$id = $_GET["apps"]; /* Ignore */
$hub = $_GET["hub"];
$huba = $hub/1000; /* Ignore */
function assignpid()
{
$rand = rand(001,999);
$pid = $hub+$rand;
$result = mysql_query("SELECT pid FROM `users` WHERE `pid`='{$pid}'");
}

Link to comment
https://forums.phpfreaks.com/topic/59406-php-need-help-desperatly/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.