[insert_php]
global $wpdb;
$current_user = wp_get_current_user();
print_r($current_user);
$formid=$current_user->description;
echo “Form ID is”.$formid.PHP_EOL;
$fordb=$current_user->user_login;
$uem=$current_user->user_email;
echo “Logged in is”.$fordb;
$uem=$_POST[’emailid’];
$uem=$_GET[’emailid’];
//echo “Posted User Email.”.$uem.PHP_EOL;
$sql=”SELECT layout FROM 4zgc14mywebsitetransfercom_1667397749.wp_fsq_form WHERE id=$formid”;
$sqll=”SELECT design FROM 4zgc14mywebsitetransfercom_1667397749.wp_fsq_form WHERE id=$formid”;
$fname= $wpdb->get_var($sql);
$testing= $wpdb->get_var($sqll);
$headings=array();$totalq=array();
for ($x = 2; $x <= $sections; $x++) {
$sectiona=strposx($fname,"timer",$x);
$sectionb=strposx($fname,"timer",$x+1);
$newsection=substr($fname,$sectiona,($sectionb-$sectiona));
$quests=substr_count($newsection,"container");
//echo "Quests>“.$quests;
$totalq[$x-1]=$quests;
$posa=strposx($fname,$finda,$x+1);
$posb=strposx($fname,$findb,$x+1);
$newstring=substr($fname,$posa+10,(($posb-10)-$posa));
$quotestart=strposx($newstring,'”‘,1);
$quoteend=strposx($newstring,'”‘,2);
$newstring=substr($newstring,$quotestart+1,(($quoteend-$quotestart)-1));
//echo $newstring.PHP_EOL;
$headings[$x-1]=$newstring;
}
print_r($headings);
print_r($totalq);
echo $fname.PHP_EOL.PHP_EOL;
[/insert_php]