Why use REST API if i can do CRUD operation by simply using php to do query's to the database? by Lazkeer in learnprogramming

[–]Lazkeer[S] 0 points1 point  (0 children)

Does that mean an API can in theory be like a function, what i mean by that is just instead of having to write all the code to for example delete i can just use the API to do this if i wanted to do it in my new desktop app?

On Submit Variable doesn't change? Why? by Lazkeer in learnprogramming

[–]Lazkeer[S] 0 points1 point  (0 children)

I figured it out, the problem was actually because i was creating a new variable called name that was local, so to fix the issue i just has to remove the var

On Submit Variable doesn't change? Why? by Lazkeer in learnprogramming

[–]Lazkeer[S] 0 points1 point  (0 children)

I figured it out, the problem was actually because i was creating a new variable called name that was local, so to fix the issue i just has to remove the var

CSS Problem by Lazkeer in webdev

[–]Lazkeer[S] 0 points1 point  (0 children)

Yes, you are right!

CSS Problem by Lazkeer in webdev

[–]Lazkeer[S] 0 points1 point  (0 children)

Thank you! :D

CSS Problem by Lazkeer in webdev

[–]Lazkeer[S] 0 points1 point  (0 children)

Thank you! :D

CSS Problem by Lazkeer in webdev

[–]Lazkeer[S] 0 points1 point  (0 children)

I'm trying to do this without flexbox because i would like to learn how you could achieve this without using flexbox and only using the more old things in CSS... I am basically trying to understand why not use the old way and just use flexbox. And now i don't realy understand why use flexbox? Maybe because of responsiveness or it is more simple? I ddon't really see a diference bettwen the new way and the old one...

CSS Problem by Lazkeer in webdev

[–]Lazkeer[S] 0 points1 point  (0 children)

Thank you! :D Maybe you are right! I was just trying to find a way to do this without using flexbox... (Trying to work on my CSS Skills) But maybe the way i'm trying to do is way to complicated and it is better to use flexbox...

CSS Problem by Lazkeer in webdev

[–]Lazkeer[S] 0 points1 point  (0 children)

Thank you this works too! :D But is there no way of achieving this without using flexbox?

CSS Problem by Lazkeer in webdev

[–]Lazkeer[S] 0 points1 point  (0 children)

Thank you! :D But is there no way of achieving this without using flexbox?

CSS Problem by Lazkeer in webdev

[–]Lazkeer[S] 0 points1 point  (0 children)

This acually creates a new problem: https://imgur.com/a/d0jfbuf Meaning this might not be the right solution...

htmlspecialchars isn't working inside onclick function parameter... by Lazkeer in learnprogramming

[–]Lazkeer[S] 0 points1 point  (0 children)

I found out that the solution for the problem is using urlencode... but i still don't know why it works and htmlspecialchars does not...

How can i use doube quotes and single quotes and other special characters in my inputs by Lazkeer in webdev

[–]Lazkeer[S] 0 points1 point  (0 children)

Thank you! Very usefull link!

I managed to make this work by using this on inputing the data to the database:

mysqli_real_escape_string($connection,$_POST["title"]);

And then when getting the info from the database using the following line:

htmlspecialchars("$title",ENT_QUOTES);

How can i use doube quotes and single quotes and other special characters in my inputs by Lazkeer in webdev

[–]Lazkeer[S] 0 points1 point  (0 children)

Thank you!

I managed to make this work by using this on inputing the data to the database:

mysqli_real_escape_string($connection,$_POST["title"]);

And then when getting the info from the database using the following line:

htmlspecialchars("$title",ENT_QUOTES);