All Questions
1,121
questions with no upvoted or accepted answers
5
votes
2
answers
4k
views
How to update data in SQLite table using php?
I am working on a php code as shown below:
class MyDB extends SQLite3
{
function __construct()
{
$this->open('database/Podcast.db');
}
}
$db = new MyDB();
$f = $mp4_files[$...
4
votes
3
answers
105
views
Sql query from database
I need some help with how I can soft query from sql.
I have a php script with an html page who is showing the result from the query.
I have this query:
$ready_orders = DB::query( 'SELECT * FROM ...
4
votes
2
answers
216
views
How can I detect if the same email appears more than once within 2 minutes?
How can I detect if the same email appears more than once within 2 minuts.
This is my OutPut:
07-02-13 20:08:41 [email protected]
07-02-13 20:09:41 [email protected]
07-02-13 20:21:25 hottie@...
3
votes
1
answer
138
views
How to sanitise and store a decimal in sql databse
I am new to sql and php but I am trying to figure out how I can safely store a decimal value that I take from an HTML form, sanitise it in php and then send it to an sql database. Currently, I am ...
3
votes
1
answer
486
views
How to automatically fill the input field in html form
I have a system project where I can create fuel expenses records, so the process to create an expenses records, I fill up the first form with names of employee,
here's my first form:(using this form, ...
3
votes
1
answer
67
views
SQL Select from records after given timestamp within other table
I have make 2 Tables.
One is for messages and the other is for deleted_chats.
If someone delete the Chat then it should shows only the new messages after deleted timestamp
Please use these table/...
3
votes
0
answers
77
views
correct comparison between post and table column value does not show right echo
Here is my rundown on what the codes should do:
retrieve the (POST) value of a text field
search a database column for a "promo code" that matches with the input
if a match is found, echo 'No coupon ...
3
votes
2
answers
2k
views
Dynamically search SQL table and display on HTML using PHP and JavaScript
I have a form where I want the user to select an Organization from a SQL table and when the form is submitted, the ID of the selected organization should be saved to a different table. I researched ...
3
votes
2
answers
2k
views
Special characters not showing up Correctly in TEXTBOX
I am using PHP + HTML + smarty (as a template).
There is some dynamic content coming from user's input.
When user enters some special characters for example —.‘@• it's been saved properly in ...
3
votes
5
answers
2k
views
How to check checkbox array values exist from database PHP Laravel?
I want to check either the countries exist in countries and the checkbox will be displayed. The values is directly from the database. I can't set the value at the input since it is array/multiple ...
2
votes
1
answer
87
views
Javascript Autocomplete Inputfield Variables
how can I use a value of an autocomplete inputfield in a second-inputfield?
I wrote this script below but I dont know how to use the variables from the first in the second-inputfield? the first-field ...
2
votes
0
answers
74
views
How to save more data into array
I'm trying to save the data of a field in my "partenze" table in an array and then select only those data in the "arrivi" table.
Example:
Partenze Table:
id_bus,id_tratte,orario,stop_name
b1,1,07:...
2
votes
0
answers
88
views
php secure login not displaying content after logging in
i have a login script and register script in php, i have registered successfully but when i am trying to log in, the content is being hidden showing am not logged in, but the log in is happening, my ...
2
votes
0
answers
3k
views
unable to open file for reading error in laravel
i have a form in laravel which sends the data to email and database, i am trying to store the image from form in public folder, then the following error happened
Unable to open file for reading [/...
2
votes
1
answer
50
views
Reflecting a stored radio toggle button selection from db in another page
this might be an odd question but I've been trying to reflect a toggle button from db in codeigniter but its not working. The toggle button is picked in a different page. This is how its selected on ...