I am working on a new project where I want to add candidates scores, there are different columns with HTML inputs that holds their performance scores at every stage, then I want to sum it up under the column TOTAL, get also the AVERAGE, and GRADE also on different columns I intend working with HTML, jQuery and Php in getting this done, any help please?

Member Avatar
+0 forum 0

As web developers we do take seriously the security of our end users by applying a hash method on their passwords before storing it to the database so should our database be hacked we know that our end user passwords are secure. But what about the browser remembered passwords on the front end? We all know that a password can be viewed on the front end by using a tool called element inspector and change the password type from password to text and we can see the actual password and we can login on our own device with that at …

Member Avatar
+0 forum 0

php-pdf attachment is in wrong format on webmails

Member Avatar
+1 forum 0

php-pdf attachment is in wrong format on webmails

Member Avatar
+0 forum 0

I'm recently trying to upload images without page refreshing. To do that I had identify ajax. My server side programing language is php. So I tried and success with it, but it's refreshing page. So I change that code after do research. But it shows error. Please help me with this. **This is my html form and it's file name is *index.php*** <form method="post" enctype="multipart/form-data" id="formUploadFile"> <label>Select single file to upload:</label> <input type="file" name="files[]" multiple="multiple" /> <input type="submit" value="Upload File" name="btnSubmit"/> </form> **In the same *index.php* page I opened `<script></script>` tag and put following code.** <script> $(document).ready(function (e) { $('#formUploadFile').on('submit', …

Member Avatar
+0 forum 0

Message could not be sent. Mailer Error: SMTP Error: Could not authenticate. it worked on localhost perfectly but it gives error on live server Here is my code $mail = new PHPMailer(true); try { $mail->IsSMTP(); $mail->Host = 'smtp.gmail.com'; $mail->SMTPAuth = true; $mail->SMTPDebug = 2; $mail->CharSet = "utf-8"; $mail->Username = "xxxxxxxxxxx@gmail.com"; $mail->Password = "***********"; $mail->SMTPSecure = 'ssl'; $mail->Port = 465; $mail->setFrom('xyz@gmail.com', ' '); $mail->addAddress($email); $mail->addReplyTo('xyz@gmail.com'); $result=''; $mail->isHTML(true); $mail->Subject = 'Your Password Reset Link'; $mail->Body = "Body"; $mail->AltBody = "Body"; if($mail->send()){ $result="success"; echo "Success"; }

Member Avatar
+0 forum 0

Hi Coders, am working on a function to calculate the balance leave in a year using php. For example, if leave entitlement in a year is 20 days, so if a staff takes 1 day leave, the balance leave will return 19 days. Below is the code but am not sure if this is correct? Thanks. <?php // Create a function to count leave balance. class Leave { public $leave_entitlement; public $start_date; public $end_date; public $leave_balance; public $difference; public $diff; public function days_taken($startDate='Today', $endDate='Today') { $start_date = new DateTime($startDate); $end_date = new DateTime($endDate); $diff = $end_date->diff($start_date); return $diff->days; } public …

Member Avatar
+0 forum 0

Hi, I know some HTML but no PHP. I am just makign some hook pages for my affiliate stuff. One of side pages will be a simple version of "whats my ip". I have placed some copied code in the PHP file on my server space (test.php) and it returns the real IP just fine. I can transfer this to one of the html pages on my site but I am struggeling to alter the properties of it. I have tried with Iframes and other meathods. It appears that the properties cannot be changed. I have tried altering the css …

Member Avatar
+0 forum 0

Hello, So I have buttons on my site connected to a PHP code that updates the column "status" in "users" table with a value based on what button you press. This is the PHP script for that: <?php include('functions.php'); $servername = "localhost"; $username = "root"; $password = ""; $dbname = "emildeveloping"; // Create connection $conn = mysqli_connect($servername, $username, $password, $dbname); // Check connection if (!$conn) { die("Connection failed: " . mysqli_connect_error()); } $id = $_SESSION['user']['id']; if (isset($_POST['108'])) { $sql = "UPDATE users SET status = '10-8' WHERE id='".$id."'"; } if (isset($_POST['107'])) { $sql = "UPDATE users SET status = '10-7' …

Member Avatar
+0 forum 0

I'm having a webpage that loads inside an iframe. I added the base tag to load the images, styling and to make links work, after clicking on a link I'm getting the error "whatsmyip.com refused to connect". Adding target="name-of-iframe" to all links doesn't work. HTML <html> <head> <script type="text/javascript" src="jquery-3.2.1.min.js"></script> <script> function getURL(url){ document.getElementById('frame').src = 'proxy.php?url='+encodeURIComponent(url); } </script> </head> <body> <button onclick="getURL( 'https://whatsmyip.com/')">Google</button> <iframe name="frame" id="frame" width="800" height="600" src=""></iframe> </body> </html> PHP $page = get_page($_GET['url']); $page = str_replace("<head>","<head><base href=\"".$_GET['url']."\">",$page); echo str_replace("<a","<a target=\"frame\"",$page); function get_page($url){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); $proxy = '14.207.72.213:8080'; curl_setopt($ch, CURLOPT_PROXY, $proxy); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, …

Member Avatar
+0 forum 0

Hi fellas, I hope my first message here comes across more helpful than bothering. I’ve recently launched a WordPress backup plugin - WPvivid Backup/Restore. It contains pretty all basic features that you’ll need to backup/restore you site and is fairly easy to use. And most important, it’s completely free(free update and support). I made it because I realized that there’s still a growing need for the easier and more affordable backup solutions in WordPress community, we hope our plugin can give people a hand. Please check it out at WordPress’ plugin repository: https://wordpress.org/plugins/wpvivid-backuprestore/ Any feedback will be greatly appreciated. Joe

Member Avatar
+0 forum 0

Hi, When I was trying to create the IT Request Form and testing it out, I got some problems during the testing. The home page (index.blade.php) ended up getting an error called "Undefined offset: 1", maybe due to the table database problem. ![0TyCAu.png](/attachments/large/4/8730ed8f11be3f5ed672376eee11d83f.png) The checkboxes in the Request Form (requestForm.blade.php) should not be all checked, instead the user has to select a checkbox option. ![0Tyvyx.png](/attachments/large/4/338e30d7d03b784fd3c723e1bf5d80fb.png) Is there a way to fix the form? My IT Request Form project: https://drive.google.com/file/d/1Vpif_1Cxm-Kkw-4_5ZKYt-Tjd1IWJB9_/view?usp=sharing *Please note that the data I entered when testing is fictional (not real).

Member Avatar
+0 forum 0

Hi, I do need help with the PDF2Text, as this is my first time doing that function in the practice web PHP project created from Laravel. When I remove the PDF2Text.php controller, the error message controller is not found. When I restore the same file, the error message says class already exists. How to fix that? My PHP project: https://drive.google.com/file/d/14ZrBbrzD_xG0LlCltb8Ktv-gynHKXuRG/view?usp=sharing

Member Avatar
+0 forum 0

Hi, Me and my colleague are trying to fix an error when we are testing to upload the file to the storage in our PHP test project. The error is called: **FatalThrowableError (E_ERROR): Call to a member function getRealPath() on null** ![0CtiPf.png](/attachments/large/4/a9bee726794f71d1f2c22c42f3f93093.png) We are using Laravel to create a new project. Can help what code has the problem and how to fix it? Here is the project zip file: https://1drv.ms/u/s!AqKGcmac7PpVgdUraHfDoXoZ2zpXFA

Member Avatar
+0 forum 0

I recently have created a Markdown Plugin for WordPress. It has been tested some my friends, but not many people know it yet. https://github.com/terrylinooo/githuber-md I just need some suggestions to improve it, my some questions like: What features do you need if you are using Markdown to write articles? Do you think this plugin is useful to you or not, how can I imporve it? Thanks a million.

Member Avatar
+0 forum 0

Laravel App checks redis database for data pushed by 3rd Party. Laravel Scheduler runs artisan command `php artisan check:redis` every 10 mins. I am expecting about 20k records to be checked every hour at peak times. Please also suggest me if my whole approach as a whole is flawed. 1. Scheduler runs check:redis command every 10 mins 2. check:redis command should dispatch job to be queued 3. Queue will later process jobs and create rows as required. Below is handle() method from `App\Console\Commands\CheckRedis` public function handle() { while(Redis::llen('schema_queue')){ dispatch(new CheckRedisJob($redis->rpop('schema_queue'))) } } and this is `App\Jobs\CheckRedisJob` public function handle() { …

Member Avatar
+0 forum 0

Hello, This is PHP. Help me understand this code: if($selectDB == true){ $query = "INSERT INTO recruitment (ID, nama, jenis_kelamin, tanggal_lahir, nohp, email, alamat, provinsi, kota, zip, status_nikah, jumlah_tanggungan, agama, file_attachment, cover_letter) VALUES (NULL, '$nama', '$jenis_kelamin', '$tanggal_lahir', '$nohp', '$email', '$alamat', '$provinsi', '$kota', '$zip', '$status_nikah','$jumlah_tanggungan','$agama','$file_attachment', '$cover_letter');"; // "INSERT INTO Customers (CustomerName, ContactName, Address, City, PostalCode, Country) // VALUES ('Cardinal', 'Tom B. Erichsen', 'Skagen 21', 'Stavanger', '4006', 'Norway');"; $simpan = mysqli_query($connect, $query); echo "save - ".$simpan; if(!$simpan){ echo 'failed'; }else{ echo 'success'; } } I wonder why $simpan = '' ? 1simpan - failed? What did I do wrong?

Member Avatar
+0 forum 0

**HELLO GUYS!** I'm Sergey Romanenko a web-developer with strong will for learning and researching new technologies and architectural solutions. I like creating and using specialised tools for making development processes as efficient as possible. Let me introduce my pet project - Flextype! Flextype is Open Source, fast and flexible file-based Content Management System. That's Easy to install, upgrade and use. Flextype provides amazing API's for plugins, themes and core developers! **FEATURES** Simple Easy to install, upgrade and use. No installation needed, just copy files to your server! Fast Flextype is realy fast and lightweight! No database required, flat files only! …

Member Avatar
+1 forum 0

I'm doing both SELECT and UPDATE queries using named placeholders. But course data from the database doesn't populate form, as expected. The database table row records don't populate, each time I try to edit a course in the browser. I connect to the database usining PDO. And I do SELECT and UPDATE queries using named placeholders. The following is my "modify-course.php": <?php // configuration require("../includes/config.php"); //select a particular admin by id $admin_id = isset($_GET["admin_id"]) ? $_GET["admin_id"] : ''; $stmt = $pdo->prepare("SELECT * FROM admin WHERE admin_id=:admin_id"); $stmt->execute(['admin_id' => $admin_id]); $admin = $stmt->fetch(); # get admin data if (!$admin) { header("Location: …

Member Avatar
+0 forum 0

I installed this php with captcha email form on my website --> http://reusableforms.com/d/d4/php-email-form-with-captcha I have it working. :) But there are two things that I want to change. (1) I want to change the color of the submit button. I have semi done that with the following code: .btn { background: rgba(77, 56, 36, .75); border: 1px solid #271c16; color: #c3db74; } .btn:hover, .btn:active, .btn:visited { background-color: rgba(196, 227, 64, .65); border: 3px solid #c7d8e8; box-shadow: 1px 1px 21px #271c16; color: #271c16; } What is not working is when the form returns with an incorrect captcha entry then the button …

Member Avatar
+0 forum 0

The following code is erroring on the connection string line 5 it used to work but then i had to move the sql server to another box and now it fails have i forgotten to do something on the sql server or is there error in my code my error is Fatal error: Uncaught PDOException: SQLSTATE[08001]: [Microsoft][ODBC Driver 11 for SQL Server]Named Pipes Provider: Could not open a connection to SQL Server [53]. in C:\xampp\htdocs\dailysales\includes\CPeriodOrdersJson.php:5 Stack trace: #0 C:\xampp\htdocs\dailysales\includes\CPeriodOrdersJson.php(5): ->('sqlsrv:Server=F...', 'LocalAdmin', 'CrispyCrackers') #1 {main} thrown in C:\xampp\htdocs\dailysales\includes\CPeriodOrdersJson.php on line 5 <?php include("sqlcalendar.php"); $db = new PDO("sqlsrv:Server=FFP-X3DB\X3;Database=FFP_WebServices", "LocalAdmin", "CrispyCrackers"); $row=$db->prepare("FFP_WebServices.dbo.WEBSERV_PERIOD_ANNUAL_FIGURES_CUMMULATIVE_SELECT"); $row->execute();//execute …

Member Avatar
+0 forum 0

Hi Everyone, I am new to using cURL I have a client website I am working on... They have a password script that automatically creates a new password - what they would like to do now is automatically log the user in - using the automatic password and the users email address. The password script is working perfectly and I have the email & password variables available - $moefEmail & $moefPassword I just need help with editing the two cURL scripts to automatically log the user in I have found the following two articles that detail the process, But I …

Member Avatar
+0 forum 0

Hi All, I want to select specific drop down option to a selected post, for example the post is on Honda Fit, the the Drop Down should select Honda Fit automatically. The below code works fine but shows all posts instead of selecting specific to a post, e.g. select guid from wp_posts where guid='$_GET['guid'] and post_type='product' , I know it in a query logic but when i implement the query, the metabox just keeps loading and does nothing. Code responsible for fetching the drop down list: automotive_admin_help_message(__("This setting allows you to associate a WooCommerce product with a listing and show …

Member Avatar
+0 forum 0

I send payments to my users regularly. But sometimes the user enter a PayPal email address that cannot receive money from other PayPal users. They just can receive money from their website. How can I check for this and show an error to the user? Do I need to use PayPal IPN, or API? And how?

Member Avatar
+0 forum 0

Hi guys! I have a problem with login into the system. Everything seem to be fine but it passes an error when i click the login button. Pls help Thank you in advance ////////login.php////// <? /* *********************************************************** **********# Name : Shambhu Prasad Patnaik #***** **********# Company : Aynsoft #********** **********# Copyright (c) www.aynsoft.com 2004 #********** *********************************************************** */ include_once("include_files.php"); include_once("general_functions/password_funcs.php"); include_once(PATH_TO_MAIN_PHYSICAL_LANGUAGE.$language.'/'.FILENAME_JOBSEEKER_LOGIN); include_once(FILENAME_BODY); $jscript_file=PATH_TO_LANGUAGE.$language."/jscript/".'jobseeker_login.js'; $template->set_filenames(array('jobseeker_login' => 'jobseeker_login.htm')); //// Jobseeker auto login starts //////[[Click Here](http://talentwiz.net/jobseeker_login.php)](null) $checked1=false; $encoded_login1=$_COOKIE["autologin1"]; //echo $encoded_login1; if(tep_not_null($encoded_login1)) { $checked1=true; $explode_array=explode("|",decode_string($encoded_login1)); $TREF_email_address1=$explode_array[0]; $TR_password1=$explode_array[1]; } else { $TREF_email_address1=""; $TR_password1=''; } //// Jobseeker auto login ends ////// $action = (isset($_POST['action']) ? $_POST['action'] : …

Member Avatar
+1 forum 0

This the code in products <?php require_once("inc/header.php"); require_once("inc/navbar.php"); /* if user is logged in then only allow the user to view the page */ if (!isset($_SESSION['id'])){ echo "<h1 class='text-center text-upper text-bs-primary'>please login to view your cart <a class='text-black' href='login.php'>Login</a></h1>"; exit(); } else{ $user_id = $_SESSION['id']; } $carts = $db->FetchAll("*","cart","user_id='$user_id' AND active='y'","`id` DESC"); if (empty($carts)) { echo "<h1 class='text-center text-bs-primary text-25 text-upper'>your cart is empty <a class='text-black' href='products.php'>Go Shop</a></h1>"; exit(); } ?> <div class="container padding-10"> <div id="cart-container-main"> <div class="text-center text-20 text-bold" id="cart-message"></div> <table class="table"> <th>Product image</th> <th>Product detail</th> <th>Price</th> <th>Tax</th> <th>Subtotal</th> <th>Remove</th> <tr> <?php $cod= 0; $main_subtotal = 0; $main_shipping_charge = …

Member Avatar
+0 forum 0

I'm trying to make SSO like [Yandex](http://yandex.ru/) do. How achive authentication without redirect if user has been already authenticated at another service provider? I am working on SAML, but I could not achieve implementation without a redirect.

Member Avatar
+0 forum 0

heY guys :) recently I'm on web project which I use MySQL, bootstrap, PHP and Javascript. For this I have generated successfully dynamical forms using PHP. I'm using mysqli commands. I used dynamic forms if it not used I have to create hundred of html pages. So by doing this I could reduce everything to one page. Right so far I'm facing problem 'inserting data to through this dynamic forms'. Exactly I know as I use generate dynamic forms I need dynamic generating code to insert data to database. If not as I mentioned above again I have to create …

Member Avatar
+0 forum 0

I have a script for product Invoice which save details of sold product, but it do not update stock quantity when any product sale. Product quantity in stock remain the same which should decrease.. here is the code to save invoice details using for each loop : <?php function saveInvoice( array $data){ if( !empty( $data ) ){ global $con; $count = 0; if( isset($data['data'] )){ foreach ($data['data'] as $value) { if(!empty($value['product_id'] ))$count++; } } if($count == 0)throw new Exception( "Please add atleast one product to invoice." ); return [ 'success' => true, 'uuid' => $uuid, 'message' => 'Demo Purpose I …

Member Avatar
+0 forum 0

I am trying to get access toke from FB through Developer App. But I am not able to json_decode the call back response. If I use the token_url call from browser, it returns the access token. But from within the script it does work. I searched online and foun that it could be that the Json encoded response must be containg some UTF -8 BOM. So I tried some functions that would strip the response from that. However, I still am not able to get that elusive access token as a variable by json decoding and getting an array. My …

Member Avatar
+0 forum 0

The End.