PravinS
-
Posts
459 -
Joined
-
Last visited
-
Days Won
2
Posts posted by PravinS
-
-
try this
<div style="text-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>
-
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
-
How do you input php? Would it just be <?php echo "<p>" . 'custom_weapons_v3' . "</p>"; ?>
i didn't get your query
-
if your content is big then open your file in append mode and write each line by line in file
as you are creating text file the HTML tags will be written in file as it is, so instead of <br> tags use \n for new line
-
-
-
-
-
you missed $ in line
$fh = fopen($MyfFile, "r");
-
image source should be like this
<img src="<?php echo $path;?>" >
-
even i have become millionaire number of time
-
refer: http://www.w3schools.com/php/php_mysql_select.asp
and for total value, you can define $total = 0; above while loop and then in while loop just add database total value to $total
as $total = $total + AMOUNT(ROW)
may this will help you
-
its better if you use any CMS like wordpress
-
there is no need to open multiple database connections, you can use one common file say dbconn.php, write database connection code in it and include that file whereever you want to use database queries
-
if filenames are same then it will overwrite your old file
-
-
just assign value 1 instead of 0 to $score variable at the top
replace this
$score = 0;
with
$score = 1;
-
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()); }
-
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
-
-
remove "<br>" tag which are after label and try concatenating with $row as $row[]."<br>"
-
codeigniter
-
open table structure and check whether there is any space around "title" field
-
i think you database connection is not working, echo the $this->con->connect_errno just below the connection
Write a large amount of data to a text file
in PHP Coding Help
Posted
sorry not the SQL query, but what you try to say
also <p> tag will also not work in text file and what is "custom_weapons_v3", if it is a PHP variable then use $custom_weapons_v3