mohdhakim
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
thanks for your reply.. I am facing an error, can you tell me, what I am doing wrong?
error shows in line: if ( !in_array($form->form_number, $forms) && $all_forms != true;)[ Moderator note: Code fixed. You missed a closing backtick. That was a single quote that you used. ]
<?php function my_process_fsctf_mail_sent($form) { ################################## // control which forms you want this on $all_forms = false; // set to true for process on all forms, or false to use settings below $forms = array('1'); // one or more individual forms ################################## if ( !in_array($form->form_number, $forms) && $all_forms != true;) return; if ( $form->form_number == 1 ) { foreach ($form->posted_data as $name => $value) { $timezone = new DateTimeZone("Asia/Kolkata" ); //$tm = (date("l d F Y h:i:s A")); $con = mysql_connect('host_ip','database_user','password'); $db = mysql_select_db('database_name',$con); $date = new DateTime(); $date->setTimezone($timezone ); //$tm=$date->format( 'H:i:s A / D, M jS, Y' ); $tm=$date->format( 'H:i:s A' ); $time = $date->format('H'); $ip = $_SERVER["REMOTE_ADDR"]; $dt =$date->format("j/n/Y"); $sql = mysql_query("INSERT INTO Enquiry(Name,Email,Mobile,Course,City,Query,IP,Time,Date,Bytime) VALUES('$name','$email','$mobile','$course','$city','$query','$ip','$tm','$dt','$time') "); $res = mysql_query(" insert into SEO(Name,Email,Mobile,Course,City,Query,Time,Date,IP) values('$name','$email','$mobile','$course','$city','$query','$tm','$dt','$ip')"); } } if ( $form->form_number == 2 ) { foreach ($form->posted_data as $name => $value) { //do whatever code B you want here } } // do not return a string, because this is only an action hook return; } // end function // Hook into Fast Secure Contact Form after email sent add_action('fsctf_mail_sent', 'my_process_fsctf_mail_sent'); ?>
Forum: Everything else WordPress
In reply to: transferring sql database to another hostgot solution..
Forum: Themes and Templates
In reply to: [Bombax] Access Header Tags In BombaxHi I don’t know more about this but I think you can do it from css file and this theme has different css files for every theme color option I have done lots of changes on my site take a look [link moderated] its same theme but quite different.
Viewing 3 replies - 1 through 3 (of 3 total)