Jump to content

PravinS

Members
  • Posts

    459
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by PravinS

  1. 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
  2. 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>
  3. 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
  4. i didn't get your query
  5. 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
  6. just use PHP date() function refer: http://php.net/manual/en/function.date.php
  7. install wampserver http://www.wampserver.com/en/
  8. check inheritance http://php.net/manual/en/language.oop5.inheritance.php
  9. try using this class http://www.php-guru.in/2013/export-mysql-data-to-csv-file-using-php/
  10. you missed $ in line $fh = fopen($MyfFile, "r");
  11. image source should be like this <img src="<?php echo $path;?>" >
  12. even i have become millionaire number of time
  13. 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
  14. its better if you use any CMS like wordpress
  15. 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
  16. if filenames are same then it will overwrite your old file
  17. refer : http://www.w3schools.com/php/php_ajax_database.asp
  18. just assign value 1 instead of 0 to $score variable at the top replace this $score = 0; with $score = 1;
  19. 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()); }
  20. 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
  21. learn CodeIgniter http://ellislab.com/codeigniter
  22. remove "<br>" tag which are after label and try concatenating with $row as $row[]."<br>"
  23. codeigniter
  24. open table structure and check whether there is any space around "title" field
  25. i think you database connection is not working, echo the $this->con->connect_errno just below the connection
×
×
  • 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.