|
Hello.
If you want solution, contact me.
|
|
|
|
|
hi!)
If you need help, and the question is still relevant and you need
Custom eLearning Solutions . I can help you with this question. Is there an SOW?
|
|
|
|
|
I have this CMS work, at the edit_subject page, I have some problem that say ( The subject update failed.
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '} WHERE id = 1' at line 4)
This is the page
30);
foreach($fields_with_lengths as $fieldname => $maxlength ){
if (strlen(trim(mysql_prep($_POST[$fieldname]))) > $maxlength) { $errors[] = $fieldname; }
}
if (empty($errors)) {
// Perform Update
$id = mysql_prep($_GET['subj']);
$menu_name = mysql_prep($_POST['menu_name']);
$position = mysql_prep($_POST['position']);
$visible = mysql_prep($_POST['visible']);
$query = "UPDATE subjects SET
menu_name = '{$menu_name}',
position = {$position},
visible = {visible}
WHERE id = {$id}";
$result = mysql_query($query, $connection);
if (mysql_affected_rows() == 1) {
// Success
$message = "The subject was successfully updated.";
} else {
// Failed
$message = "The subject update failed. ";
$message .= " ". mysql_error();
}
} else{
// Errors occurred
$message = "There were " . count($errors) . " errors in the form. ";
}
}// end: if (isset($_POST['submit']))
?>
| Edit Subject:
" . $message . "";} ?>
";
echo "Please review the following fields; ";
foreach($errors as $errors) {
echo " - " . $errors . " ";
}
echo "";
}
?>
Subject name:
Position:
{$count}";
}
?>
Visible:
No
/> Yes
Cancel |
I need your help
|
|
|
|
|
Your post is quite poorly formatted, but it looks like you are missing a $ symbol where {visible} should be {$visible}.
|
|
|
|
|
Your code is vulnerable to SQL Injection[^]. NEVER use string concatenation to build a SQL query. ALWAYS use a parameterized query.
PHP: SQL Injection - Manual[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
What are the best languages for web development?
|
|
|
|
|
The question is really broad and so opinionated.
My champion for client-side development is Typescript. On the one hand, it allows to bee more productive due to static typing (in comparison to javascript). One the other hand it has a mature community. Also, it doesn't generate as much underlying javascript as Fable, Elm, etc which allow event more type safety.
For the server-side I prefer F# due to mature .NET Core framework and functional defaults. Although the choice here is huge: js, C#, Java, Ruby, PHP, Go, Erlang. Literally, everything that is suitable for your specific needs.
|
|
|
|
|
Typescript is javascript, theres no way to code typescript without javascript they are the best friends so you can use classes in javascript, there are many options in this world. But nowadays Javascript is leading startups cause you can do frontend and backend same language ( also you can code Frontend with Typescript).
But if you project needs super-fast responses from Backend, so choose another language more powerful like Golang or Java, if not go with nodejs.
|
|
|
|
|
If you are starting a project, I strongly recommend you Nodejs (Javascript) for Backend and for FrontEnd Jquery, React, Angular, and soo on, Everything is javascript, don't break your head.
|
|
|
|
|
There are many languages that can help you with web development. However; the clear answer, in my opinion, would be JavaScript because once you have learned this language you can use it on the server-side (Node.js) and client-side as well. So start learning JavaScript then after that learn some framework which interests you. Thanks.
Cheers,
Jin
|
|
|
|
|
You can see there is no surprise, JavaScript is the king of Web development but Python is equally good.
|
|
|
|
|
My website, www.maroisconsulting.com, is hosted on Arvixe. I would like to create a folder, put some files in it, then allow an app I'm working on the download the files. I've never done this before and I'm stuck
Here's my download code so far.
namespace DownloadFiles
{
class Program
{
static WebClient wc;
static void Main(string[] args)
{
var fileUrl = "http://" + "www.maroisconsulting.com/SomePlace/SomeFile.txt";
wc = new WebClient();
wc.DownloadProgressChanged += Wc_DownloadProgressChanged;
wc.DownloadFileCompleted += Wc_DownloadFileCompleted;
wc.DownloadFileAsync(new Uri(fileUrl), @"c:\files\SomeFile.txt");
Console.ReadLine();
}
private static void Wc_DownloadFileCompleted(object sender, System.ComponentModel.AsyncCompletedEventArgs e)
{
if (e.Cancelled)
{
Console.WriteLine("The download has been cancelled");
return;
}
if (e.Error != null)
{
Console.WriteLine("An error ocurred while trying to download file" + Environment.NewLine + e.Error.Message);
return;
}
Console.WriteLine("File succesfully downloaded");
}
private static void Wc_DownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e)
{
Console.WriteLine(e.ProgressPercentage + "% | " + e.BytesReceived + " bytes out of " + e.TotalBytesToReceive + " bytes retrieven.");
}
}
}
When I run, the Wc_DownloadFileCompleted fires immediately with the error
The remote server returned an error: (404) Not Found.
When I go in to the Arvixe Control Panel, File Manager, for my site, the file does exist. Again, this is new to me so I am probably doing something wrong.
Can anyone show me how this is done?
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
|
|
|
|
|
(Maybe) dumb question: What happens when you type the URL in the address bar of your browser?
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
I get a 404
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
|
|
|
|
|
404 Not Found. That looks like an access/permissions issue on the server, if neither your WebClient or browser can access the file.
I know nothing about Arvixe, so you're on your own there.
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
I am uploading the data from my excel into my sql table using
sqlBulk.ColumnMappings.Add(column in Excel,Destination column(sql))), Is there a way to if the value in excel is null replace it with 0
|
|
|
|
|
Hi everyone,
I am working on a browser-based document scanning application for IE it is fine as we can do scanning through ActiveX or Add-ons etc but when it comes to modern browsers like latest chrome, firefox and edge it is very hard to call any .exe or other is related functions from client-side .. What is the option to invoke scanner from modern browsers and do necessary file I/o on client end... Please don't mention proprietary software I prefer to work with open-source solutions.. regard
|
|
|
|
|
|
Kami Dehlvi wrote: prefer to work with open-source solutions Then, as already suggested, you need to go and search for them. The answer to this question is not going to change however many times you repost it.
|
|
|
|
|
Hi everyone,
I'm a language teacher, which means no programming or coding skills, but eager to learn.
I've spent the past day or two learning on how to create a website, domains, hosting and all that and there are a lot of tutorials on how to use WordPress and plug-ins like the Elementor which is quite easy to use and doesn't require much coding knowledge. Most of them focus on how to make stuff pretty and I got that part.
What do I need to use to create a database, so that people can register and then they get assigned an educational package based on their choosing or a diagnostic test. My web-page won't be that much complicated regarding graphics, but I am going to use a lot of layers, and it would be great if a person could log-in and continue where he stopped, if the page tracked his results, etc. Could somebody point me in the right direction, which tools do I need to use? Are there any tools like WordPress for this type of programming?
modified 16-Dec-21 8:03am.
|
|
|
|
|
I would suggest you make use of the Wordpress helpline, as they are best placed to advise you what tools are available for your specific needs. They may well have some off the shelf back end system which would provide for your database needs, without you needing to hire a database programmer to do it for you.
|
|
|
|
|
I have never used Wordpress before so I could be wrong.
If I understand correctly, MySQL is the core of Wordpress so you already have a database, you will have to find a plugin to save your data to the database, I have found one on google but you will have to pay for it. You can do it yourself but it will require you to learn PHP and SQL.
Have a look at this plugin:
[https://wordpress.org/plugins/ninja-forms/]
modified 12-Mar-20 6:24am.
|
|
|
|
|
To create and maintain a computer database, you need a database program, often called a database management system, or DBMS. Just as databases range from simple, single-table lists to complex multi-table systems, database programs, too, range in complexity.
|
|
|
|
|
Hi team,
I am facing the issue which is when we click on web print is disabled.And I disabled the web print but the issue is when i click on on web print the print dialogue is disappearing instead of the disappearing the dialogue box we can show there empty blank page im trying to do that please help me that.
Thank you
|
|
|
|
|