chhorn
-
Posts
115 -
Joined
-
Last visited
-
Days Won
2
Posts posted by chhorn
-
-
I don't see anything that is related to image manipulation in your code. You may want to read this:
https://www.daveperrett.com/articles/2012/07/28/exif-orientation-handling-is-a-ghetto/
-
25 minutes ago, ahron333 said:
i am getting this error
More important: What did you try to solve it?
-
On 9/20/2019 at 7:58 PM, Rendimo said:
Are there any ways to provide safety here and make the system more secured?
Store the session somewhere you have exclusive control of. Solutions are alreaday mentioned here.
-
If you want some lightwight and simple to get started, you could even have a look at Notepad++
-
If you get the error "call to a member function xy on bool" in context of database queries you can (mostly) think of an error within your sql statement. On your development machine you should always enable throwing errors:
$pdo = new PDO('mysql:host=localhost;dbname=someTable', 'username', 'password', [ PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION ]);
-
$sql is just the string, within the code you are not even running the SQL statement with query().
-
The data in the script-tag won't update every second, you have to call the PHP-script every second.
-
You find 500 errors in the error.log on the webserver's machine.
-
Oh yeah, your database will be deleted then.
Hint: Use Prepared Statements.
-
Nothing will happen as you do not use any variable - except for $row what will raise an undefined variable/undefined index error. didn't you even try this yourself?
-
just INNER JOIN on your users table
-
So why don't you output id_user anywhere?
-
Your statement is incomplete for the lack of all those variables and the missing database abstraction layer, also you're just "select *"-ing without any reference to your table layout - so how do you expect someone to reproduce your problem?
Just make an encapsulated mockup with sqlite in memory (<- searchterm) that holds a complete example. You can output any data with `var_dump()` to see which column of the result you must refer to.
-
And what's the problem then? You use template variables that are different from what the template expects, so you have to change your variable names according to the template - like the ones you commented out - or you change the template.
-
What does HTML/JS have to do with composer? what is "connecting" to an application?
What should "but cannot get composer to do it." mean?
-
and what type is parameter 1? Check with var_dump().
-
This looks totally mixed up
QuoteHi this is not a PHP problem
right
Quoteit is a unix/linux problem
not really, this is just a guess from you
QuoteI have been going through my banking website
what "banking website"? As you don't seem to be firm with the technology, i would think it's not YOUR website, more like the website of the bank you are customer at.
and the website is accessed via URL - that has plain nothing to to with any "folder" as i think you mean from a filesystem - except that there's a common fallback.
Quoteand found a folder /#/login
And the syntax for a URL is documented:
- 1
-
better for what? what are the specific features you need and what did you find out by comparing them to both applications?
-
I don't understand what you want, post a reproducible example.
- 1
-
You have to read the data before encoding it.
-
just follow up the code:
as this
The Following Fields are Missing
is caused by tis
$runRestofForm == false
this assignment must hit
$runRestofForm = false
because of this condition
if (is_null($_POST[$requiredFields[$i]]) || $_POST[$requiredFields[$i]] == "")
so you can have a look at
var_dump($_POST);
and see what is missing.
-
Storing personalized info could lead to a way more complex system as he's in need of authentication, authorization and other security related stuff and legal issues - i don't see that this infrastructure already exists anywhere. A plain encode/decode tool is much simpler, and it's just glueing some libraries together.
-
And what happens if you try editing your posts? At least you can see that posting screenshots is nearly unusable for any development tasks like debugging.
You already said you get an error message: "fields are not filled in", so search for it in your files to get the related code part.
-
And if someone wants to read the ongoing discussion: https://www.phphelp.com/t/register-form-won-t-work/29551/13
I don't see how you expect people to help without code, or code that does not include the error message.
How do i print out the data form pdo
in PHP Coding Help
Posted · Edited by chhorn
Espacially this: https://phpdelusions.net/pdo#fetch as it looks like you have mostly anything else. Also have a look at print_r(), var_dump(), htmlspecialchars(), Template Engines and XSS (cross site scripting).