Jump to content

PravinS

Members
  • Posts

    459
  • Joined

  • Last visited

  • Days Won

    2

PravinS last won the day on March 26 2016

PravinS had the most liked content!

About PravinS

  • Birthday 11/14/1979

Contact Methods

  • MSN
    pbs.scriptlancer@hotmail.com
  • Website URL
    http://www.php-guru.in

Profile Information

  • Gender
    Male

PravinS's Achievements

Member

Member (2/5)

13

Reputation

2

Community Answers

  1. Check this: http://php.net/manual/en/function.end.php
  2. Set headers, 4th parameter of mail() function $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Additional headers $headers .= 'To: TO_NAME <TO_MAIL>' . "\r\n"; $headers .= 'From: FROM_NAME <FROM_MAIL>' . "\r\n"; $headers .= 'Cc: CC_MAIL' . "\r\n"; $headers .= 'Bcc: BCC_MAIL' . "\r\n";
  3. You can use UPDATE query like this UPDATE table_name SET phone = CONCAT('353',TRIM(LEADING '0' FROM phone)) WHERE SUBSTRING(phone,1,1) = '0'; before that use the SELECT query to check if its correct or not SELECT phone, CONCAT('353',TRIM(LEADING '0' FROM phone)) FROM table_name WHERE SUBSTRING(phone,1,1) = '0'; hope this will find you helpful
  4. It will be better if you use ORDER BY DESC and LIMIT 10 in SELECT query, which will give you last 10 records in descending order. Or you can use pagination, by which you can devide records(10 records) per page.
  5. You can use OR, your WHERE condition will be like this WHERE MATCH(items.item_title) AGAINST('$search_query' IN BOOLEAN MODE) OR MATCH(type_1.type_1_name) AGAINST('$search_query' IN BOOLEAN MODE) hope this will work for you.
  6. file_get_contents() function will return just a page content (view source), it will not execute any javascript or AJAX code, and "Show All" button is providing AJAX based data
  7. Full Text search may work for you Refer: http://dev.mysql.com/doc/refman/5.7/en/fulltext-search.html
  8. Instead of VARCHAR data type for text use TINYTEXT, TEXT, MEDIUMTEXT, or LONGTEXT according to your requirement
  9. Try this <html> <head> <style type="text/css"> .colleft{ float:left; width:50%; text-align:left } .colright{ float:right; width:50%; text-align:right; } </style> </head> <body> <div> <div class="colleft">Left</div> <div class="colright">Right</div> </div> </body> </html>
  10. Try using SimpleXMLElement::xpath http://php.net/manual/en/simplexmlelement.xpath.php
  11. Also avoid adding <html>, <head>, <title>, <body> tags, just add <body> tag content in mail body
  12. where ever you communicate with database, connection code should be added
  13. you have not included "dbconfig.php" database connection file in "registration.php" file also use error_reporting(E_ALL & ~E_NOTICE); at the top, to check PHP errors
×
×
  • 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.