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

Hi I am trying to get windows positioned in specific order as show below ![desired.PNG](/attachments/large/3/6447240b1491d04046fa904f31659f9b.PNG) but I am unable to get and get always this ![wrong.PNG](/attachments/large/3/71f4b92c4f40a6afeeab7e3c2f136526.PNG) the code below is shown HDWP cmdWnds; cmdWnds = BeginDeferWindowPos(col.size()); for (int i = 0; i < col.size(); i++) { if (i == 0) { if (DeferWindowPos(cmdWnds, col[i], HWND_NOTOPMOST, x_pos_start_pr + i * x_offset_pr, y_pos_start_pr + i * y_offset_pr, 0, 0, SWP_NOSIZE | SWP_SHOWWINDOW) == NULL) return ERROR; } else { if (DeferWindowPos(cmdWnds, col[i], col[i - 1], x_pos_start_pr + i * x_offset_pr, y_pos_start_pr + i * y_offset_pr, 0, 0, SWP_NOSIZE | SWP_SHOWWINDOW) == NULL) …

Member Avatar
+0 forum 0

Backstory. A member messaged me about a moderator action so I wanted to see their discussions. How to find their discussions looked elusive. Here's how to get to their discussions. Click on their avator to get their Dazah page and information then click on Member Stats to see their discussions. Now you know.

Member Avatar
+0 forum 0

I Need Help, I Cant Find Anything Online On How To Make A Application That Can Have The Option To Sign Up And Login And When Accounts Are Signed Up, Anyone With The Application Can Login With Acocunts From Other Computers, How Would I Do This Without Being On The Same WiFi As Someone Else??? Please Help

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

If you are using your iPhone XS as a music player, then you probably know how to transfer music from computer to iPhone. The default way of transferring between your PC and iPhone is by using iTunes. This is the most common way of sharing music and other media to your iPhone. But there are also other easy ways which are worth considering. Take a look at the simple methods below and discover how fast and easy it is to move music from your computer to your iPhone XS. ** ApowerManager** The first tool to help you transfer music to …

Member Avatar
+0 forum 0

I'm working on the application where I want to calculate the total late hours of an employee from a set of records between the employee timing shift? Example Of Employee Time Shift Shift Start: 01:00:00 Shift End: 09:00:00 Php Code // example 1 error_reporting('0'); $time1 = "01:00:00"; $time2 = "09:00:00"; date_default_timezone_set('Asia/Karachi'); echo "Time difference: ".get_time_difference($time1, $time2)." hours<br/>"; function get_time_difference($time1, $time2) { $date = date('h:i:s a', time()); $time1 = strtotime("1/1/1980 $time1"); $time2 = strtotime("1/1/1980 $time2"); $totalshifttime = ($time2 -$time1) / 3600; $totallate= $totalshifttime - $date ; return $totallate; }? Let's support if ABC employee clock in at 2 pm then should …

Member Avatar
+0 forum 0

Hello Daniweb Family, I am trying to create something like a "Earthnull" look alike. I am not good in coding and try to find something that can help me to start on. I found something very similar on what will be the target output. HTML: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> </head> <body> <canvas width="960" height="500"></canvas> <canvas width="960" height="500" class="offscreen" style="display: none;"></canvas> <script src="https://d3js.org/d3.v4.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/dat-gui/0.6.5/dat.gui.min.js"></script> <script src="vec2.js"></script> <script src="vec3.js"></script> <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&signed_in=false"></script> <div id="map" style="height:700px; width:1100px"></div> <script> var map = new google.maps.Map(document.getElementById('map'), { center: new google.maps.LatLng(13.0000, 122.0000), zoom: 6, mapTypeId: google.maps.MapTypeId.TERRAIN, zoomControlOptions: { position: google.maps.ControlPosition.LEFT_BOTTOM } }); var …

Member Avatar
+0 forum 0

I need to check the extention of user uploaded files when running a gulp-sass task. I have a file exists function that seems to work, but can't get thereturn value into the task. Here's my gulp file: var fileexists = require('file-exists'); var gulp = require('gulp'); var sassVars = require('gulp-sass-vars'); var sass = require('gulp-sass'); var style_in = './scss/**/*.scss'; var style_out = './css'; var himg; var fimg; fileexists('img/header.jpg').then(exists => { if(exists){ himg = 'header.jpg' console.log(himg) } }) fileexists('img/header.png').then(exists => { if(exists){ himg = 'header.png' console.log(himg) } }) fileexists('img/footer.jpg').then(exists => { if(exists){ fimg = 'footer.jpg' console.log(fimg) } }) fileexists('img/footer.png').then(exists => { if(exists){ fimg …

Member Avatar
+0 forum 0

Guys this question is continual. however i found the answer virtually however still cant compass. i dont shrewdness to resolve it. thats why i announce it as new question iam operating with a project. iam exploitation native-validations-master downloaded it from internet. this is the link for that: https://www.cssscript.com/custom-html5-form-validator-native-validations/ It conjointly contain demo Kindly refer it. to perform validation i want to connect the form-validation.js enter my project then, in my form document.getElementById('experience_form').validateForm(); //where experience_form is my type name and validateForm is perform name within the validation js file my downside is I actually have hidden input fields during this type. …

Member Avatar
+0 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

Hi, I have been programming C# for some time, and i recently learned about constructors and objects, but didn't fully understand. Can anyone please help me understand this, and please spell it out. I have tried googling it, but couldn't really find anything, that made me understand it. -What is a constructor? -What is a object? -When should i use a constructor? -When should i use a object?

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

my project is sort score of Student using Linked List and sort algorithm can i coding loop for input from user and save value to node in linked list and export or sort value like this ? Thanks for help or discuss or give any idea (any code is idea from this blog) warning before post prob from this web (Curly braces { } may only be used when posting code.) package javaapplication19; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import static javaapplication19.LinkedList.addNode; import static javaapplication19.LinkedList.printLinkedList; public class JavaApplication19 public static void main(String [] args) throws IOException { BufferedReader input = …

Member Avatar
+0 forum 0

Hi Team, I have an excel which has multiple rows and each row can have multiple images associated with that , which are postioned on a specific cells of that particular row.I know while we are positioning a image on top of a cell, that is not associated with the cell and it is actually floting the sheet of the workbook.My target is to read those images and at the same time mapping that image with particular cell using apche POI. I have two questions actually: 1. Is there any way to associate an image with a excel cell so …

Member Avatar
+1 forum 0

Last week, we've had the most number of new member signups, excluding members who have been banned, for the first time in over a year! Good job, everybody :)

Member Avatar
+8 forum 0

I am tasked with this excercise: Edit the Python file processData (or use it as a guide when you create a new Python file) so it reads in the data from population.txt, checks to make sure the file exists and is in the right format (if it isn’t throw an appropriate exception), calculates the combined population of the countries in the text file and prints that total. however am stuck as my code will mot print total and will only change .txt file please help ## # This program processes a file containing a count followed by data values. # …

Member Avatar
+0 forum 0

Hello All, I am working on a python project that helps pull random names from a list in excel and saves them to a new excel file. The input file shows all of the names of the people who can work on that task. I am able to run the code below and get a random list for each task but I end up with duplicates down my lists. I am trying to create restraints to not allow duplication down the rows also but cant seem to get it to work. import random import xlrd import openpyxl as pyxl inputFilename …

Member Avatar
+0 forum 0

It may seem impossible on the first sight... But now, I have found a solution. It turnes out to be possibble to emulate the Windows environment and run it side-by-side with Android. As the article about playing PC games on Android (https://eltechs.com/pc-games-for-android-guide/) says this works like that because a special porting technology is utilized. It creates the Windows environment inside Android and then makes a PC game functioning inside this made-up environment natively and independently. Well. let's see! I am going to give it a try and report on the result a little bit later in thist thread!

Member Avatar
+0 forum 0

My wife's laptop is a Dell Latitude E6520. A good enough machine except for one annoying quirk. The wireless card keeps disabling itself. We have it configured so that closing the lid puts it to sleep. When it wakes up, the wireless card is disabled. Before you ask, I already have it configured to not power off. I reinstalled the latest driver from Dell but no luck. So far I have managed by running a script in the background that repeatedly checks to see if the device is disbled, then automatically re-enables it, but I would rather fix the problem …

Member Avatar
+0 forum 0

hiii i need your help, i am web developer (fresher). i want display images from database/folder using ajax in codeignater. i try ur source code not working.

Member Avatar
+0 forum 0

Web languages — HTML, CSS and JavaSscript are the best choice for kids and for amateur programmers, because they are very simple, and with them you can create many interesting things: sites, mobile and desktop applications, web servers and robotics — what else an amateur programmer needs for happiness? **Visual programming! ** Visual programming frees programmer from monitoring correctness of syntax program syntax, it is useful at beginning of training. This is the next stage in development of text-based programming languages. **And programming on the touch screen! ** I suggest using the touch screen to create applications. You can create …

Member Avatar
+0 forum 0

Hi guys so ive been taking a python 3 class this semester and im having some trouble. so here is the problem. Create a python script that stores 20 random integers from 1 to 100 into a file delimited (ie. seperated) by commas (,). For example; if you cat the file when you are done, it should look similar to the following: >cat numbers.txt 61,8,46,71,9,95,77,62,69,6,97,97,77,96,95,20,89,31,3,23 Create a script that read in the text file from PRx0D. It should take the data and put each integer into a list. Eg: [61,8,46,71,9,95,77,62,69,6,97,97,77,96,95,20,89,31,3,23] It should then display the following information from the list: …

Member Avatar
+0 forum 0

I am Working on Xcode 9.2 Swift 4.0 using FacebookSDKs-iOS-20160316 for Facebook Login Authentication Integration . My storyboard is empty . On Running Facebook Login button is coming on an app When clicked Facebook login page comes, after successful login Permission for my app is asked, When allowed following page comes Please refer Link : https://stackoverflow.com/questions/52867810/facebook-login-button-not-changing-to-logout-button-immediate-after-login-in-swift **For images** When I click on done button of this page I am redirected to my storyboard , and this time also same login button is there , my login button is not changed to Logout. On clicking it again following page comes: Please …

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

I need help that how to make these assignment by html,javascript?? i have made admin and user login ..need codes for further more.. **description of assignment:** Salemanagementsystem have two panels.Admin login with specific id and Admin have rights to update product lists add, delete and update. Employees can create new account and login with register email. Employees can search and sale over products via sale button sales products can store in an array which display sales pages. Sales page can see admin and employees but only admin have a rights to restore or delete sales products. Use local storage to …

Member Avatar
+0 forum 0

No matter what the visitor types www.example.net or http://www.example.net or http://example.net i want all of the requests to be redirected to https://example.net currently i have managed to redirected requests that are coming from www.example.net and https://www.example.net to https://example.net but i can't find a solution for http://example.net to https://example.net Current config of nginx default is this: server { server_name www.example.net; return 301 example.net$request_uri; } server { listen 80; listen [::]:80; server_name example.net; location / { proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $http_host; proxy_pass localhost:3000; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } } Application is in NodeJs, server is from AWS …

Member Avatar
+0 forum 0

Good Day All i have a ListView that is defined in a Xamarin Form. i want this ListView to be updated with the Data from the DB every 5 seconds. In a Non Mobile environment , we have a Windows Service , which is a long running Service. but now i search i came across a Service. but now i see this is implemented differently on each platform. Most examples i get are examples where one is binding the Control in Android Project. WhatUp if my Data binding is done in Xamarin Form (Standard Class) . 1) Can i kindly …

Member Avatar
+0 forum 0

Hello! I have a problem with a MySQL database that I haven’t been able to solve no matter how much I tried, either with internet guides or with free tools. I really don’t want to pay hundreds of dollars to a company so please, if anyone knows of a solution, help me because I’m desperate. I was running XAMPP 7.1.22 where I had said database and I decided to install XAMPP 7.2.10 without backing up the database. After that, the site wasn’t working so I figured the problem was the database. And indeed PHPMyAdmin wouldn’t recognize it. I reinstalled the …

Member Avatar
+0 forum 0

I have a couple of SQL databases that i am trying to link results from. My first database is calendar that i need to return the details for today so current date and targets for sales and orders that works my second data base is for orders which i can sum the total orders for today and add that to a column on the select statement (code below) but the trouble started when i want to add another column with total orders for the period so far using periodstartdate and currentdate from database 1. any help would be great USE …

Member Avatar
+0 forum 0

The End.