![](https://forums.phpfreaks.com/uploads/set_resources_1/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
PravinS
-
Posts
459 -
Joined
-
Last visited
-
Days Won
2
Posts posted by PravinS
-
-
Just remove "echo' from your code
-
You want to insert new record or want to update existing record. If you want to enter new record then you need to write INSERT query instead of UPDATE query.
-
Try like this for loop
$column2 = $_POST['column2_id']; for ($i=0;$i<count($column2);$i++) { echo $column2[$i]; }
-
Try PHP nl2br() function
-
Try this
UNIX_TIMESTAMP(NOW());
-
-
Ex.
SELECT * FROM test_table WHERE field1_index = '1' OR field2_index = '1' OR field3_index = '1'
-
It depends on your requirement. Also there is aurthorize.net, cybersource, 2checkout etc payment getway.
-
Try this
<?php $str .= '<?php'; $str .= ' $con = mysql_connect("localhost","forum","password");'; $str .= ' mysql_close($con);'; $str .= '?>' ; echo $str; ?>
-
User strtoupper() function in PHP
-
You have not called any of the defined functions and your functions does not return any value.
-
Try htmlspecialchars_decode() function
-
As while retrieving categories you will have a loop which will display categories. Now in that loop fetch the articles related to the category id and display below it.
-
-
You can use simple for loops for it.
For Day
for($d=1;$d<=31;$d++) { // option tag with value and text as $d }
For Month
for($m=1;$m<=12;$m++) { // option tag with value and text as $m }
Form Year
for($y=date("Y")-90;$y<=date("Y");$y++) { // option tag with value and text as $y }
-
According to your coding there is only way to pass PAGE_TITLE variable in page_header() function.
-
There is space between $min and $timetype
try this
<?php echo $hr.':'.$min." ".$timetype; ?>
-
Use like this
<select size="1" name="cat_show" id="cat_show"> <option value="1" <?php if($e['cat_show'] == 1) echo " selected ";?>>Yes</option> <option value="2" <?php if($e['cat_show'] == 0) echo " selected ";?>>No</option> </select>
-
getimagesize get size of the image, not of swf file.
-
-
You need to use mod rewrite in .htaccess file.
-
Yes, it can be determined. You can check this url http://www.ip2location.com/
-
Use this function
<?php function quote_smart($value) { // Stripslashes if (get_magic_quotes_gpc()) { $value = stripslashes($value); } // Quote if not a number or a numeric string if (!is_numeric($value)) { $value = "'" . mysql_real_escape_string($value) . "'"; } return $value; } ?>
-
Try this
INSERT INTO `tasks` ( `id`, `challenge_id`, `title`, `frequency`, `category`, `description` ) VALUES ( "", 12, "title1", "frequency1", "category1", "somedesc1" ), ( "", 12, "title2", "frequency2", "category2", "somedesc2" ), ( "", 12, "title3", "frequency3", "category3", "somedesc3" );
Session interrupting other input form.
in PHP Coding Help
Posted
Use session_unregister() instead of session_destroy(). As session_destroy() will destroy all your sessions, while session_unregister() will only destroy the mentioned variable from session.