MySQL/PHP - INSERT problems. It returns an empty result set
Vote count: 0 I've been debugging this for hours. Double-checking my table and variables carefully. But I couldn't find the problem. $fname = $_POST['fname']; $lname = $_POST['lname']; $user = $_POST['user']; $pass = $_POST['password']; $conpass = $_POST['conpass']; $sql = "SELECT use ame FROM accou...
Difference between 'Hotel Api' and 'Simple Api'
Vote count: 0 On some freelance platform I discovered a new thing "Hotel Api", I am curious to know if this is different than regular apis that we use? e.g we have google apis + facebook apis + our manual application's api. Is this 'Hotel Api ' different from them? and If a person has experience wit...
.htaccess - On authentication run script file
Vote count: 0 I'd like to generate a password for authentication with .htaccess with PHP dynamically. The PHP file contains the algorithm to generate the password and writes this password into a .htpasswd file. So: Is it possible to let the .htaccess file run this script when the directory is browse...
character encoding in a html page
Vote count: 0 I have 2 html pages (index.html and game.html) where I specify the same character encoding UTF-8 in the first page (index.html) every thing works fine but in the second page all characters appear like this � this is the code of 2 pages : <!DOCTYPE html> <html> <head> <meta http-equiv="...
Django - Registration form can't upload image.
Vote count: 0 I am a begi er with Django. I have a problem when I am filling the registration form. I can't upload any image. If the ImageField is set to required=true, it's never validated, impossible to submit. If required=false, it's possible to submit it but the image is never saved in detinatio...
parse heroku cloudcode function not linked/working
Vote count: 0 I am going in circles for a day now. I cant get the hello cloud function to work. I followed this tutorial: http://blog.parse.com/a ouncements/introducing-heroku-parse/ 1) I linked heroku to my parse account 2) I created an app from scratch with CLI (like in the video) 3) I use 'parse ...
Issues with retrieving data from firebase database
Vote count: 0 I have some code for retrieving data from Firebase Data that looks like the following. However this doesnt seem to work for me. I have more code to do other stuff. With this code added, I seem to be hitting an issue. Any ideas ? (function(){ var app = angular.module('test', [ 'firebase...
How does Facebook's new Programming Language "Hack" work?
Vote count: 0 So, i research and looked at the new list of programming languages. I found out this Facebook's new programming language named as Hack. It says that it uses HHVM (i dont understand what that is). It also says that it is a new version of PHP. I want to try to lea the code but they dont ...
Error Installing JVCL on CodeGear Delphi 2009
Vote count: 0 Hello I want to install JCL and JVCL on Delphi 2009, but I keep getting Error : [Pascal Fatal Error] JvCore.dpk(30): E2202 Required package 'Jcl' not found But ,as I read the Installation Notes, I already have been installed JCL on Delphi 2009 without any problem...... Even I installed...
tfs visual studio error code 3 pre-build
Vote count: 0 When I download the code from FTS, and i build I have the following error error message when I delete the Pre-Build event command line the error disappears but I need the command line. Any help please. asked 1 min agoBZGhassen Let's block ads! (Why?)
Realm order ascending by date always fails
Vote count: 0 I'm new to Realm and i find it very interesting and already have managed to save and retrieve data. Among with my data that i save, i also save an NSDate() so i can sort my results with the logic LIFO, that means the last that is saved should be first out to the table view. This is my ...
swift ios trying to change color of status bar on certain VC's
Vote count: 0 In my app I have 4 tabs/VC's and in two of them I am changing the status bar from white to black like this: override func viewWillAppear(animated: Bool) { super.viewWillAppear(animated) UIApplication.sharedApplication().statusBarStyle = UIStatusBarStyle.Default } override func viewWill...
Best way to rearrange order of db tables items?
Vote count: 0 I have a db table of items by no particular order. I want a user to be able to sort and resort the items by how important they deem them to be. What is the best way to approach this? Think of a todo list of items someone can order by the order in which they want to do the. I'm doing th...
How to write accessor expression to infer the type?
Vote count: 0 Given the following code [Table("Bar")] public class Foo { [Column("BarID")] public int Id { get; set; } } public static class MyExtensions { public static string TableName(this Type type) { var attrib = type.GetCustomAttribute<TableAttribute>(false); retu attrib?.Name ?? type.Name; } ...
I found some code that shows/hides desktop icons, but it moves the icons in the process. How can I edit the code to not move the icons?
Vote count: 0 I'm using two batch files for Rainmeter, one to hide all icons and then launch Rainmeter, and another to show all icons and quit Rainmeter to make my desktop look normal again. My end goal is to make these two batch files into buttons on my task bar that I can click to toggle the look ...
Open a few files, wait ~30 mins, relaunch them in C++
Vote count: 0 I posted a thread about how to do this in batch but it tu s out batch scripting isn't very popular and I barely even know it so now I'm asking for your help doing this in C++. here's what I tried #include <Windows.h> using namespace std; void openBat(char* path) { system(path); } int m...