Jump to content

PravinS

Members
  • Posts

    459
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by PravinS

  1. search this code

    <div><label class="screen-reader-text" for="s">Search for:</label>
    <input type="text" value="" name="s" id="s">
    <input type="submit" id="searchsubmit" value="Search">
    </div>
    

    replace it with

    <div align="right"><label class="screen-reader-text" for="s">Search for:</label>
    <input type="text" value="" name="s" id="s">
    <input type="submit" id="searchsubmit" value="Search">
    </div>
    

    may this works for you

  2. check your isset part, it should be like this

    if (isset($_POST['stage1']))
    {
    	$newteamid = $_POST['teamid'];
    	echo $newteamid;
    	$startrace = @mysql_query("INSERT INTO regionals (teamid, stage, ownerid) VALUE ('$newteamid', '1', '$id')") or die("Error: ".mysql_error());
    }
    
  3. try this code

    $description_message = '';	
    	foreach ($hosts as $host)
    	{
    		$hostdescription = $host["hostdescription"];
    		$hostaddress = $host["hostaddress"];
    		exec("ping -c $pingcount -w $pingcount $hostaddress", $pingoutput, $Spingstatuscode);
    		if ($Spingstatuscode === 0)
    		{
    			echo("$hostdescription ($hostaddress) is Up <BR>");
    			$description_message .= "$hostdescription ($hostaddress) is Up <BR>";
    		}
    		else
    		{
    			echo("$hostdescription ($hostaddress) is Down <BR>");
    			$description_message .= "$hostdescription ($hostaddress) is Down <BR>";
    		}		
    	}
    	$to = "EMAIL HIDDEN";
    	$subject = "SERVER DOWN: $hostdescription";
    	$message = "ATTENTION: Please check Server Status below <br>$description_message";
    	$headers .= "From: EMAIL HIDDEN\r\n";
    	$mail_sent = @mail($to, $subject, $message, $headers);
    

    i have concatenated your messages in $description_message variable and added it in mail body and taken out mail code from foreach loop

     

    may this will help you

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