-
Replied To a Post in Update Statement not working
which means 'submit_btn' doesn't exist. Hence, why your if check fails, and no update. Change your button to an input type="submit" with a value="1" and you will likely fix your … -
Replied To a Post in Update Statement not working
that makes such little sense to me... if you were pulling data off "Users" but it's called "users" in the database, where were you pulling data from? You may also … -
Replied To a Post in Update Statement not working
look closely at your lines of code. One "Users" is capitalized. The other "users" is not. The cases must match. -
Replied To a Post in Update Statement not working
I mean the table name. "SELECT * FROM Users WHERE Username ='$searchq'" "UPDATE users SET Balance = Balance + '$newBalance' WHERE Username='".$username ."'" -
Began Watching Update Statement not working
Hi guys! I have a database which holds a table called users. in there i have a balance column which contains a numeric value. I have the following code and … -
Replied To a Post in Update Statement not working
1) Are you sure that you dont have error notification turned off in PHP? 2) Perhaps you need to free your current mysqli resource, as you may be getting an … -
Began Watching about php problem
how can i insert data into two table -
Replied To a Post in about php problem
with two insert statements. -
Began Watching Filter Input to Forms with JavaScript/AJAX
I'm trying to add additional security/validation to an online form that has AJAX backend. When I try to add a filter to remove spaces (such as trying trim or replace), … -
Replied To a Post in Filter Input to Forms with JavaScript/AJAX
So... a couple questions I guess... If you have a form, why are you using AJAX? What is trim()? Have you used F12 tools to see if you are generating … -
Replied To a Post in htaccess referer problem
Yes, you are correct. So instead, you could do something like RewriteRule *.myloginpage.php$ http://www.mywebsite.org/index.html [R,L,NC] Truth be told, I would have to tinker with it and figure it out myself, … -
Replied To a Post in htaccess referer problem
So I re-read the above and the editor formatted something incorrectly above. It should be: `RewriteCond %{HTTP_REFERER} *.twitter.com*.$ [NC]` -
Began Watching htaccess referer problem
Hi I have a twiiter user linking to a specific page on my website which I would like to redirect to my home page. From the internet I have found … -
Replied To a Post in htaccess referer problem
Pretty much every rewrite I have seen uses some form of regex to capture the condition. (twitter.com) will look for the exact string "(twitter.com)" as far as I understand it. … -
Began Watching Check If database is empty or not
how to check if the database is empty? my point is that the first person will be the administrator. here is my code $query="SELECT staffID,name,surname,email FROM stafftable"; $do=$con->prepare($query); $do->execute(); $record=$do->rowCount(); … -
Replied To a Post in Check If database is empty or not
Looks good to me... if you have no records, and you have no limiter (where clause), you obviously have nothing in there. You could also do "select 1 from stafftable … -
Began Watching arrays
SCENARIO You must type in a list of numbers and make sure that in the list, there are no identical numbers; in other words, no number must appear twice in … -
Replied To a Post in arrays
SCENARIO Student tries to write code to solve their problem. When they cant figure it out on their own, they go to message boards to get help finding where they … -
Began Watching prevent duplicate on local storage in same phone device
in chat application ,, Two friends x, y (used the same device) x Send to y message then stored in database x make log-out of the application and y log-in … -
Replied To a Post in prevent duplicate on local storage in same phone device
Each user has a specific, unique, identifier, yes? Pre-pend your root object with that decorator. Ex: UserData:{foo:1}; Can instead be: 1331UserData:{foo:1}; Then your code can look for said data by … -
Began Watching why cant insert this into table ?
I have a little problem over here this code doesn't work well what is the problem if anyone know ? $getUsername = getUserData('Username'); $sql = "INSERT INTO `kladilnica` VALUES ('', … -
Replied To a Post in why cant insert this into table ?
Are you getting an error? First look says no ending semicolon... Other than that, depends on the table and what values it expects. Try listing out the columns explicitly and … -
Replied To a Post in How to implement row locking in MYSQL
It is highly unlikely you will get a time stamp that perfectly matches another down to the millisecond. However, you can always do your query something like select MIN(id) where … -
Replied To a Post in checked box values saved to database checked or not
Did you try the var_dump? What values are in $_POST["start"]? -
Began Watching checked box values saved to database checked or not
I have a table made up of time slots, when the user clicks maybe one or two and presses submit, i would like the date selected and the time slots … -
Replied To a Post in checked box values saved to database checked or not
Your input name and the name in your post do not match. When debugging things like this, it may help to use var_dump(), particularly in your case var_dump($_POST); and see … -
Began Watching Which social media platform is best for Hotel website to get more reach?
Which social media platform is best for Hotel website to get more reach? -
Replied To a Post in Which social media platform is best for Hotel website to get more reach?
None of them alone will do much of anything. Facebook will likely have the largest user base, and will also allow public display. Twitter is more of a social communication … -
Began Watching How to implement row locking in MYSQL
Hello Everyone, i have table that have some code list if user enter same code from 2 different systems and enter at the same time both user's get data, what … -
Replied To a Post in How to implement row locking in MYSQL
You would likely need a second table that keeps track of the "state" of the record being read. Either that, or a column that flags a "read" state. Using a … -
Replied To a Post in Why can't we do low level things in high level languages?
The answer still is valid. It's the wrong tool for the job. -
Replied To a Post in Why can't we do low level things in high level languages?
You're missing the point of python, imo. Your question is equivalent to "why can't I go to space in a jumbo jet?" In theory, you can import a C or … -
Began Watching Odd question regarding RAM
This may be a very stupid question and everything I know about computers says it probably won't work but I feel the need to ask anyways as I am very … -
Began Watching Why can't we do low level things in high level languages?
One thing. Why aren't there any high-level languages capable of low-lovel programming? I understand that pointers and such are a difficult concept. But why hasn't anybody made a systems programming … -
Replied To a Post in Why can't we do low level things in high level languages?
What exactly are you thinking you can't do with python? -
Began Watching Why scripting should be done in scripting languages
I was just poking around the C# forum, (and some others) and I noticed that there's a lot of people that are reading and writing data from text files in … -
Replied To a Post in Why scripting should be done in scripting languages
Right tool for the job. I can bash a nail in using a wrench, but if the job calls for a hammer I should probably use a hammer. Granted, most … -
Began Watching counting numbers
Is it possible to solve this problem in c++? Write a program that counts the numbers from 3 to 117. But for multiples of three add 3 instead of 1 … -
Replied To a Post in counting numbers
You will need a for loop and an understanding of modulus, and a little bit of good old fashioned logic. Good luck! -
Began Watching MYSQL lines not work
what is the error in my two queries ?? $sql="select secretQ,secretA from users where email = '".$email."' "; $out .= "<PassResetQ secretQ='".$row->secretQ."' secretA='".$row->secretA."' />"; -
Replied To a Post in MYSQL lines not work
Uhhh... This is PHP. Nothing looks wrong with the query. What other PHP script do you have to execute and prepare the statement? -
Began Watching What languages do you need to learn to be a software engineer?
What languages do you need to learn to be a software engineer? I can only think of c, c++, and java but do you need to be really really good … -
Began Watching Help with working with pointers, structs, and stuff in C
Okay, so this is my current code: #include <stdlib.h> #include <stdio.h> #include <stdint.h> struct Display { int width; int height; char **array; }; struct Display *display_create(int width, int height) { … -
Began Watching Memory reallocation for strings
Hello friends, I am trying to work on a project that dynamically allocates memory when needed for a string array. I just keep getting memory faults when reallocating memory but … -
Began Watching Webbrowser .GetElementById
Hey guys, anyone know if it is somehow possible to grab in picturebox image from website by its id? Its simple captcha i want to show it in picturebox? -
Replied To a Post in Webbrowser .GetElementById
Yes its possible. Without knowing more about the site, or it's markup, it's impossible to give a more detailed answer. -
Began Watching Open Source (Visual Studio 2013-2015)
I believe everyone heard the news from November the 11th-"Opening up Visual Studio and .NET to Every Developer, Any Application: .NET Server Core open source and cross platform, Visual Studio … -
Replied To a Post in Open Source (Visual Studio 2013-2015)
Change is slow. Just because Tesla open sourced all of their tech, it didn't change the industry and suddenly every new car is electric. Also, having used both eclipse and … -
Began Watching Check if using HTTPS
Is the check: if (!isset($_SERVER['HTTPS']) OR empty($_SERVER['HTTPS'])) { // We are NOT using SSL } a fool-proof way of checking if we are NOT using SSL with PHP/Apache? I understand … -
Replied To a Post in Check if using HTTPS
The server super global *should* also have the port number for the request, $_SERVER["SERVER_PORT"], but the way you are checking is the only way I can think of on the …
The End.