Posts by FoX • 189 points
11 posts
-
-1
votes1
answer285
viewsQ: React Native upload image network error
I’m having a problem uploading images using React Native, when I select the image the application returns a network error. My code: state = { avatarSource: null, isUploading: false } selectImage =…
-
0
votes1
answer39
viewsQ: AJAX returns the same answer
I have a login form with PHP and JQUERY: index php.: <form action="." method="POST" class="form-signin"> <h1 class="h3 mb-3 font-weight-normal">Entrar</h1> <label for="name"…
-
1
votes2
answers238
viewsQ: navbar semantic-ui transition
I want to create a transition in navbar (menu), when scrolling the page scroll, do not know the name of the effect but it is this one (just scroll down and the navbar becomes solid with a white…
-
1
votes1
answer161
viewsQ: Like php mysqli
I’m working on a system of Likes (likes) but things are very confusing, I have the Post table (The content to be liked) with the following columns |ID|TITLE|CONTENT|LIKES| In the column LIKES,…
-
3
votes1
answer160
viewsQ: handle php date and time
I am developing a system of posts, where in the footer of each is displayed the moment the post was published. For this, I use the diff to calculate the difference between the current date and the…
-
1
votes1
answer456
viewsQ: Open the same modal with several buttons
I am recovering the data from the mysql database, through a while, for each row of the database is generated a button, each button opens a modal window with details also coming from the database,…
-
1
votes2
answers137
views -
1
votes1
answer97
viewsQ: Update database with AJAX Switche button (Materialize)
I’m using the Materialize Framework, in it I have a button (Switche) that switches between ON and OFF, just in html, I wanted to insert this into a Mysql database, all in real time, by pressing the…
-
1
votes1
answer768
viewsQ: Sort php array values!
I have a comeback JSON. "members": [ { "name": "Drogo", "role": 3, "donations": 278, Where do I use the foreach to travel it! foreach ( $CMAMBERS as $e ) { echo "nome: $e->name<br>"; } I…
-
1
votes1
answer1708
viewsQ: Calculate php percentage
I have two numbers, one of them is fixed (1700) and one will always be alternating between 0 and 1700, I want to calculate the percentage of that number that is alternating, for example, when the…
-
7
votes4
answers1768
viewsQ: How to generate a serial key that contains a prefix in the first 5 characters?
I have a script in PHP that generates a "serial key", but I need this script to generate this "serial key" with a pattern at the beginning, as if it were a prefix. The code I already have is:…