
PravinS
Members-
Content Count
459 -
Joined
-
Last visited
-
Days Won
2
PravinS last won the day on March 26 2016
PravinS had the most liked content!
Community Reputation
13 NeutralAbout PravinS
-
Rank
Advanced Member
- Birthday 11/14/1979
Contact Methods
-
MSN
pbs.scriptlancer@hotmail.com
-
Website URL
http://www.php-guru.in
Profile Information
-
Gender
Male
-
issue in inserting data from dropdown into mysql table
PravinS replied to maideen's topic in PHP Coding Help
does database table "tbl_paramhead" have data in it? have you checked the view source to check whether the drop down is generated properly...if yes, then if should work -
issue in inserting data from dropdown into mysql table
PravinS replied to maideen's topic in PHP Coding Help
print_r() the $_POST array at top and check what you are getting in post data, also check the view source of the page to check the drop down values -
issue in inserting data from dropdown into mysql table
PravinS replied to maideen's topic in PHP Coding Help
You haven't set value in dropdown options, check below line echo '<option value>' .$row['paramhead']. '</option>'; use it as echo '<option value="'.SOME_VALUE.'">' .$row['paramhead']. '</option>'; -
You haven't passed link identifier returned by mysqli_connect() to mysqli_query() function Check Manual for more details: http://php.net/manual/en/mysqli.query.php
-
Changing php loop to count instead of use static number
PravinS replied to thenorman138's topic in PHP Coding Help
You can replace below line for($i=1; $i<=8; $i++){ by $numrows = count($row); for($i=1; $i<=$numrows; $i++) { -
How to point last element of an array in PHP?
PravinS replied to Aarav123's topic in PHP Coding Help
Check this: http://php.net/manual/en/function.end.php -
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";
-
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
-
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.
-
Simple php countdown timer starting from sql time
PravinS replied to roger01's topic in Javascript Help
Try AJAX -
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
-
Full Text search may work for you Refer: http://dev.mysql.com/doc/refman/5.7/en/fulltext-search.html