PravinS
Members-
Posts
459 -
Joined
-
Last visited
-
Days Won
2
Everything posted by PravinS
-
Write a large amount of data to a text file
PravinS replied to kiwis-are-cool's topic in PHP Coding Help
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 -
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
-
Write a large amount of data to a text file
PravinS replied to kiwis-are-cool's topic in PHP Coding Help
i didn't get your query -
Write a large amount of data to a text file
PravinS replied to kiwis-are-cool's topic in PHP Coding Help
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 -
just use PHP date() function refer: http://php.net/manual/en/function.date.php
-
install wampserver http://www.wampserver.com/en/
-
How to use a method across different PHP files(classes)
PravinS replied to JongMin's topic in PHP Coding Help
check inheritance http://php.net/manual/en/language.oop5.inheritance.php -
try using this class http://www.php-guru.in/2013/export-mysql-data-to-csv-file-using-php/
-
PHP Parse error: syntax error, unexpected T_STRING
PravinS replied to phpnewbieca's topic in PHP Coding Help
you missed $ in line $fh = fopen($MyfFile, "r"); -
How to include user uploaded files to index.php
PravinS replied to Chatrapati's topic in PHP Coding Help
image source should be like this <img src="<?php echo $path;?>" > -
even i have become millionaire number of time
-
Adding two columns of different rows
PravinS replied to Pradeep_Chinna's topic in Microsoft SQL - MSSQL
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
- 1 reply
-
- csv upload
- csv download
-
(and 1 more)
Tagged with:
-
refer : http://www.w3schools.com/php/php_ajax_database.asp
-
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
-
learn CodeIgniter http://ellislab.com/codeigniter
-
Labels and values not appearing on the same line.
PravinS replied to aquatradehub's topic in PHP Coding Help
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