Member Avatar

This is the scenario: **User A:** Access the website and choose a questionnaire. The questionnaires are separated on different pages in the same domain, for example: **Home:** "surveys.com" **Questionnaires:** "surveys.com/type1" "surveys.com/type2" After choosing one, he (**User A**) puts the following information: **1** = Recipient's email **2** = His email And then submit. **User B:** Person who received this link to the questionnaire (surveys.com/type1). **What I want to do is:** When **User B** accesses the link to the questionnaire page, it is already programmed to send responses to **User A** who left his email on the home page. My idea was …

Member Avatar
0
34
Member Avatar

I want to create a webpage which will automatically send an email before 2 days. <form action="try.php" method="post"> <p>Date From : <input type="date" name="date1" /></p> <p>Date To: <input type="date" name="date2" /></p> <input type="submit" name="submit" value="Submit" /> </form> <?php // echo("First name: " . $_POST['firstname'] . "<br />\n"); echo("Last name: " . $_POST['lastname'] . "<br />\n"); $date1Timestamp = strtotime($date1); $date2Timestamp = strtotime($date2); //Calculate the difference. $difference = $date2Timestamp - $date1Timestamp; echo $difference; ?>

Member Avatar
0
10,500
Member Avatar

I created an html page with days of the week Mon Tue Wed Thu Fri Sat Sun The corresponding page is linked to each day I would need that when the page opens, the day is automatically highlighted based on the day of the week and that there is a bar under the day to highlight it Example: if today is Friday, Fri becomes a different color than on other days I've seen similar things on web pages, but I don't know where to start. Is there anyone who can help me? Thanks

Member Avatar
1
156
Member Avatar

I've tried absolutely everything!! How can I flush the output buffer in CodeIgniter from within either my controller or my view?? They use some weird double/fake output buffer or something. Grrr!

Member Avatar
0
2,388
Member Avatar

Hello, I'm new into PHP. Just migrated from Java recently. I'm trying to make a conversion machine that conver number to romans number. Here is the code I wrote : !DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Latins to Romans Conversion</title> </head> <body> <h2>Latin to Romans Conversion</h2> <form method="post"> Input Your Number : <input type="text" name="number"><br><br> <input type="submit" name="convert" value="submit"> <input type="reset" value="reset"><br><br> <?php if(isset($_POST['convert'])) { $number = $_POST['number']; function convertToRoman($number) { function getNum($digit, $lowStr, $midStr, $nextStr) { switch (true) { case $digit <= 3: return str_repeat($lowStr, $digit); case $digit == 4: return $lowStr + $midStr; …

Member Avatar
0
70
Member Avatar

Hi Everyone! I am new here, and the main purpose of joining this community is getting some help. Actually, I am designing a PHP website where I need to fetch US vehicles data into PHP. I have already used this source to get the vehicle's dataset from here https://www.back4app.com/database/back4app/car-make-model-dataset. Still, now my client wants to include images, and according to my team we should consider a source which provides both images and other details dataset into PHP. I have done much research but unable to find such a source. I also found Teoalida's dataset very useful I am not sure …

Member Avatar
0
72
Member Avatar

Link in MySQL: https://wahlburgers.com/dorchester Variable loaded: $website = $row["website"]; How can I echo the word "Website" as a hot link to $website ( https://wahlburgers.com/dorchester ) inside an HTML form? This is what I've tried: <input type="text" id="website" name="website" value="<?php echo "<a href= '" . $website . "'>" . "Website" . "</a>"; ?> "> Thanks . . .

Member Avatar
1
78
Member Avatar

I want to create a tool for my website that convert word document to html form and vice versa. I don't know the process how it works. I wnat to make it in JS, PHP or codemirror. I dont know how and where to start. Thanks.

Member Avatar
0
43
Member Avatar

i just want to create a update form by using modal but when i click the button update nothing happen no popup appear or did with a wrong ways? i already change the position of the end curly braces but still not working. Any ideas? here is what i working on: <body> <!-- Pre-loader start --> <div class="theme-loader"> <div class="loader-track"> <div class="loader-bar"></div> </div> </div> <!-- Pre-loader end --> <div id="pcoded" class="pcoded"> <div class="pcoded-overlay-box"></div> <div class="pcoded-container navbar-wrapper"> <?php require_once('side_controll/nav_bar.php');?> <div class="pcoded-main-container"> <div class="pcoded-wrapper"> <nav class="pcoded-navbar"> <div class="sidebar_toggle"><a href="#"><i class="icon-close icons"></i></a></div> <?php require_once('side_controll/side_bar.php');?> </nav> <div class="pcoded-content"> <div class="pcoded-inner-content"> <!-- Main-body start --> …

Member Avatar
0
65
Member Avatar

Good day, I am actually a young programmer, who wants to develop a webpage that enables someone to take a practice test. It was given to me as an assignment that determines if I will remain a programmer. I know little about PHP codes but none in Mysql. I came to the website and noticed a discussion from @broj1 with another programmer. I don't have a code in mind yet or how I should start about it but I would a really appreciate a little help. All I have been able to do is a direct html quiz and the …

Member Avatar
0
114
Member Avatar

HI , First at all i'm a newbie and sorry if this a dumb question. i want to create a form that only can be submitted once per day by each user, each user has thier own id. My question is how to create a process that will check if the user already submitted and only can be summited on the next day . This is code that i have tried and now working <?php include("../../config/config.php"); $id=$_POST['id_student']; $id_kedai=$_POST['id_kedai']; $now_date_time=date('Y/m/d'); $quer1="SELECT * FROM activity_log where id_user='$id' AND date_create_log = '$now_date_time'"; $quer2=mysqli_query($db_conn_e,$quer1); while ($row= mysqli_fetch_array($quer2)>0){ if($row["date_create_log"] == $now_date_time=date('Y/m/d')){ echo "<script langauge=\"javascript\">alert(\"Data Already …

Member Avatar
0
54
Member Avatar

I have 3 radio buttons on my form A , B , C but when i clicked on A radio it shows specific dropdown which get data from database table but by fruitid 1 and when i clicked on B it will show data fruitid 2 as onnword. i need to show table data by specific fkid Id. Table name--ABC id| fruitid | name 1 | 1 | Apple 2 | 1 | Mango 3 | 2 | Veg-1 4 | 3 | Juice-1 ////////////////////////////////////////////////////////////////// <select> $getdata = mysqli_query($conn, "SELECT * FROM `ABC` WHERE `fruitid`= '$fruitid'); if(mysqli_num_rows($getdata) > 0){ while($data= …

Member Avatar
0
114
Member Avatar

How can read line in file that line have recordor examplethe file: date new_cases new_deaths 2020-07-30 665 10 2020-07-31 590 9 2020-08-01 - 0 2020-08-02 - - 2020-06-04 738 8 2020-06-05 779 - 2020-06-06 770 5 4 line it is not record new_cases or new_deaths so wae ignore the line also line 5 but line 6 we read because it has record> after read this file the reasult is: 2020-07-30 665 10 2020-07-31 590 9 2020-06-04 738 8 2020-06-06 770 5 How can read read this line by java????

Member Avatar
0
30
Member Avatar

Hi ... I want to create some php pages where I have to change the variables ( top of the page ) through a form and of course save them on the same page. I don't want to use databases. It's possible??? <?php $pageurl = "text1"; $title = "text2"; $description = "Desc...Desc.... Desc........."; $image = "text3"; $price = "12"; $conf = " H 30"; ?> <!DOCTYPE html> <html lang="it" > <head> <meta charset="UTF-8"> <title><?php echo $title; ?> | Mysite - Plants collection</title> <meta name="description" content="<?php echo $description; ?>"> <meta property="og:url" content="https://www.mysite.it/shop/<?php echo $image; ?>.php" /> <meta property="og:type" content="product" /> <meta …

Member Avatar
0
173
Member Avatar

Can anyone suggest me which one is a better platform for e commerce website development?

Member Avatar
7
3,243
Member Avatar

Hi, I would like to ask how to redirect to another page, like for example dashboard page (because normally after successful login it will redirect the user to home page) ? I am new at laravel environment and I will highly appreciate all your comments and looking forward to learn a lot from you. Currently I am using Laravel 6 version. Thanks

Member Avatar
0
52
Member Avatar

I am attempting to update my accounts table for the current session ID with the data posted from a form. My first prepare statement is functioning fine and can be seen functioning through the placeholder variables in the form. It is my second prepare statement that doesnt seem to be working. From what I can tell, form doesn't seem to be posting the data correctly and I am unsure what the error is. It may very well be a simple error but I am stuck. Any help would be massively appreciated! <?php if(!isset($_SESSION['account_loggedin'])) { header("Location: index.php"); } $pdo=mysqli_connect("localhost","root","root","shoppingcart_advanced"); if(!$pdo) { …

Member Avatar
0
52
Member Avatar

Has anyone started working with PHP 8 yet? Any big backwards compatibility issues? I finally got around to upgrading to php 7! Lol better late than never.

2
73
Member Avatar

Write a Python function maxaceregate(!) that takes a list of pairs of the form (name score) as argument, where name is a string and score is an Integer Each pair is to be interpreted as the score of the named player For instance, an input of the form [CKohir 73) CAshwin 33), (Kohir, 7)(Pujara, 122) (Ashwin' 00) lepresents two scores of 73 and 7 for Kohli, two scores of 33 and 90 for Ashwin and one score of 122 for Pujara Your function should compute the players who have the highest aggregate score (aggegrate = total, no add up all …

Member Avatar
0
54
Member Avatar

What is a “MIME type”, what does it consist of, and what is it used for? can anyone pls provide with example?

Member Avatar
-1
63
Member Avatar

<?php $dataContent = $user->name; if ($user->active) { if (!$user->active) { $dataContent .= ' <span class="label label-default">Inactive</span>'; } if($user->teams and $user->active){ foreach ($user->teams as $team){ $dataContent .= ' <span class="label label-primary">'.$team->name.'</span>'; } } $assignee = isset($filter_var['assignee']) ? $filter_var['assignee'] : []; if (!filter_var($assignee)) { $assignee = [$assignee]; } $assignee = array_unique($assignee); } ?> // I just need to look for the right code on how to hide "assignee" which was in the drop down list. I tried everything but nothing happens.

0
16
Member Avatar

hi there are two question. first how to boost the backlinking and second is which forums or guest posting is best for backlinking. Tags: #php #upload #css #form #asp.net

Member Avatar
0
20
Member Avatar

I am trying to get user's information and show them in user's profile. And i found this query but it is in PDO and my work is in sqli here the query : if(isset($_SESSION['user'])){ $getuser=$con->prepare("SELECT * From users where username=?"); $getuser->execute(array($sessionuser)); Sinfo=$getuser->fetch(); And here the whole code <?php session_start(); $sessionuser=''; if(isset($_SESSION['user'])){ $sessionuser=$_SESSION['user']; } if(isset($_SESSION['user'])){ $getuser=$con->prepare("SELECT * From users where username=?"); $getuser->execute(array($sessionuser)); Sinfo=$getuser->fetch(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title></title> </head> <body> Username:<?php echo $info['username']?> Email:<?php echo $info['email']?> Register Date:<?php echo $info['reg_date']?> Password:<?php echo $info['password']?> </body> </html> <?php }else{ header("Location: login.php"); } ?>

Member Avatar
1
47
Member Avatar

I want to create a single login page for Admin and user.When admin lo it should go to seperate page and when user log it shoult go to seperate page.I want sample code for this.Thanks..

Member Avatar
0
27,957
Member Avatar

I have a project where I need users to be able to save their work, then at a later date select the session/data from their previous work and continue. I have completed all of the coding (and it works) to save the current session under their userid, and populates a table with their work. I now want to be able to give the option to retrieve all of the rows in a table and be able to select a row to load. I have previously created a form where i populate a single field into a drop down and select …

Member Avatar
1
219
Member Avatar

How to remove from the Google index pages of my site that were created by a virus  Japanese keyword hack? It is necessary to remove from the Google index links to the pages of my site http://quartercheapersigns.ca/  that were created by a virus - about 43 800 pages in Google index. The number of crawled pages even increased (!!!) from 436 to 570 thousand. A week ago, changes were made to the sitemap for reindexing. But so far the pages have not been deleted - moreover, new "garbage" pages appear in Google Webmaster. The site has no more than 100 "real" …

Member Avatar
0
34
Member Avatar

When I access an api. it returns data in below format **n2035014,25 N2035014,25 B2035014,2944.40,250,3787.30,2400** o24,22971.20 h24,23064.15 l24,22641.40 c24,22945.05 i24,22744.40 I am clueless how to map these data and store in mysql table. First set of data highlited in bold is dataset 1, followed by second set of data which has a prefix that needs to be mapped from below reference table. And above is just an example output, usually it will have 500 such dataset. i=current value B=bid o= open h=high l=low c=close I want to store something like this stock code | Current Value | Open | High | …

Member Avatar
0
39
Member Avatar

Hello i want to automatically add an id to the inserted row on my table in Mysql db. The table has no uniquie key and no AUTO_INCREASMENT. I just want a function to add the id automatically when the row is inserted. This is the statement i have $db = getDB(); if(isset($cId)) { $cId = $request->post('cId'); } else { $cId = '3';**//Here i want to put a new id ** } $insert = array( 'c_id' => $cId, 'user_one' => $uid, 'user_two' => $recieverId, 'ip' => $_SERVER['REMOTE_ADDR'], 'time' => date('Y-m-d H:i:s'), ); $sql = "INSERT INTO conversation (c_id,user_one, user_two, ip, time) …

Member Avatar
0
40
Member Avatar

i want to know how to create qr cde in php

Member Avatar
0
45
Member Avatar

i want to unserialize? and display Array from my text field in db table. This is what i use to serialize on Insert statement. `$persons = serialize(array($paymentData['anArray']));` and this returns after var_dump `["persons"]=> string(104) "a:1:{i:0;a:2:{i:0;a:1:{s:5:"value";s:15:"Producer: Simon";}i:1;a:1:{s:5:"value";s:13:"Writer: Simon";}}}" ` Now the object that i return from Select statement is memberDetails $sql = "SELECT * FROM memberDetails M WHERE M.id=:id"; $db = getDB(); $stmt = $db->prepare($sql); $stmt->bindParam("id", $id, PDO::PARAM_INT); $stmt->execute(); $memberDetails = $stmt->fetch(PDO::FETCH_OBJ); var_dump ($memberDetails); exit; $response['success'] = true; $response['memberDetails'] = $memberDetails; echo json_encode($response); So i want to return two values and display them: like this `Writer: Simon and Producer:Simon` Any help?

Member Avatar
0
23

The End.