Skip to main content

All Questions

Tagged with
0 votes
1 answer
44 views

Cyrillic str encoded in Mysql inside PHP script [closed]

I have the string "тест123" in Cyrillic and am executing a MySQL query with it inside a PHP script. However, the string in the query gets encoded and instead of "test123", it ...
lStoilov's user avatar
  • 1,331
-5 votes
0 answers
57 views

PHP Guestbook form returns 200 OK, but data is not inserted into MySQL database [duplicate]

I'm building a simple guestbook using PHP and MySQL, and hosting it on a server. When I submit the form, the network tab (F12) shows 200 OK, and the JSON response is {"status":"success&...
Aiden_P's user avatar
  • 11
-2 votes
0 answers
39 views

Why does my browser submit emoji characters as html entities? [duplicate]

Someone submits a text field on my website and their submission is stored in my mysql database. Their comment contains an emoji character. If I store the comment as is, it will be stored as an html ...
oyvey's user avatar
  • 623
-1 votes
0 answers
48 views

How to insert multiple rows but different column names in GUI into one header and one detail table by using foreach php html [duplicate]

I need to insert multiple rows that pull from some tables in GUI (CRUD application). One header data into a header table and a detail table in the database. Here is a screenshot of the form (GUI): ...
admin admin's user avatar
0 votes
1 answer
67 views

Inserting value into MYSQL using FlaskAPI in Website

I keep having problem trying to insert value in my website form into Mysql.. I have also check all the table. AssessmentID seems to be not null. but keep getting the same error. Problem occurs: xxx.x....
rahman auf's user avatar
2 votes
1 answer
35 views

How do I make a child component not render the extra <app-child> node?

I have a parent component whose template is basically this: <table> <thead> <tr> <th>Data 1</th> <th>Data 2</th> </tr> </...
Raj's user avatar
  • 25
-4 votes
1 answer
64 views

When fetched, date is shows as one day behind. The DB has correct data stored [closed]

I have a Node.js and MySQL project. The user inputs the date from a dropdown and submits the form. In the backend, I see proper date but when I fetch it, its 1 day behind. I've read that it might be a ...
raven's user avatar
  • 11
0 votes
1 answer
108 views

How can I combine multiple javascript functions for star rating system

I am running WAMP installed on a Windows 10 PC for a gallery of video clips stored on a local drive. The gallery pages contain thumbs for each video clip and a 5 star rating system. The star rating ...
Tim's user avatar
  • 9
0 votes
0 answers
90 views

How to fix CSRF token validation while login: PHP and MySQL

I have built a login system for teachers and students that redirects them to the appropriate page after successful login. The user enters their username, password, and selects their account type. They ...
Youssef Ahmed's user avatar
0 votes
0 answers
17 views

predefined link in php post to mysql database [duplicate]

I am posting data to my mysql database the data is youtube channel link and channel name, what I am doing here in the code below is post the whole youtube link, I want to add this link https://youtube....
hadi's user avatar
  • 1
0 votes
1 answer
120 views

Get data to display on a modal using Python, HTML and CSS

I would like this data to be displayed in my modal which rests on a template managehouses.html. the code that fetches the data from the database is def housetypes(): cur = mysql.connection.cursor() ...
allan's user avatar
  • 131
0 votes
0 answers
60 views

Php variable within html input

I wrote a large registration system in html/php/mysql many years ago. I had to upgrade a lot of code when php was upgraded. I have been having issues with passing php variables in html input. A ...
gudulkaman's user avatar
0 votes
1 answer
61 views

filter_input or FILTER_SANITIZE_FULL_SPECIAL_CHARS causing troubles with non-english language in PHPMailer

I am having problems with PHPMailer and no similar answer is helping me. The problem seems to be in filter_input or FILTER_SANITIZE_FULL_SPECIAL_CHARS but I really don't know how to fix it. Here is ...
New-Girl's user avatar
0 votes
1 answer
100 views

Is it possible to user filter_input together with htmlspecialchars?

I am reading about FILTER_SANITIZE_STRING being deprecated so I am looking for the best option to filter inputs for security reasons to prevent mysql injections and xss injections too. My users will ...
New-Girl's user avatar
1 vote
1 answer
57 views

Trouble adding new data to mysql database when using HTML form onsubmit to call a JavaScript function

I am trying to get the users Email address to add it to an existing mysql data base, previously I used this HTML and PHP code which works and does add the data to the database both on my server and ...
Xikto's user avatar
  • 43

15 30 50 per page
1
2 3 4 5
1223