1,166 Recommended Topics
Remove Filter ![]() | |
Hi, I got this long version code: ```` if(ISSET($_GET['limit'])) { $limit = intval($_GET['limit']); } else { $limit = intval(1); } ```` I can shorten it, like this and it works: ```` $limit = ISSET($_GET['limit'])?intval($_GET['limit']):1; ```` Now add an echo and try shortening it. And I get error. I got this … | |
I want to count and show live users counter on my page. My url structure looks like this `domain.com/miningbot?id=pool-v9w1x2y` The users which are inside the parameter should be counted, updated and displayed to the user. Also, the parameter can be changed. I have asked ChatGPT to write me some starting … | |
I'm trying to make the picturebox collide with the others. I tried to do several things but they don't work. I spoke to my teacher and he said I should do something like this: PictureBox1.Left + PictureBox1.Width >= PictureBox2.Left And PictureBox1.Top + PictureBox1.Height >= PictureBox2.Top And PictureBox1.Top <= PictureBox2.Top + … | |
Hi all! If I want to get fast results on the project, what would be more efficient: getting only senior engineers, or considering those who are less senior but result-focused? Why? | |
Write a pascal program that accept the name and date of your birth the program should then output your name and date of birth in the format “your name and your date of birth” e.g Pascal your date of birth is 20/10/2023 Programming pascal | |
I added checkbox in my webpage using: <asp:TemplateField> <ItemTemplate> <asp:CheckBox ID="chkRow" runat="server" /> </ItemTemplate> </asp:TemplateField> But then my calculation of price*quantity having error where it display the total in another column and row. <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script type="text/javascript"> function CalculateTotals() { var gv = document.getElementById("<%= GridView1.ClientID %>"); var … | |
Hiya, Which of these IF CONDITION codes are valid ? And can you rank the valid ones according to your choice by giving reasons to your choices ? Thanks! 1. ```` $conn = mysqli_connect("localhost","root","","buzz"); $sql = "INSERT into users (username,email) VALUES (?,?)"; if($stmt = mysqli_prepare($conn,$sql)) { mysqli_stmt_bind_param($stmt,"ss",$_POST[username'],$_POST['email']); if(!mysqli_stmt_execute($stmt)) //FIRST CHOICE … | |
Hiya, Is this: ```` function unset_sessions() { //All Sessions on the script .... UNSET($_SESSION['registration_form_display']); UNSET($_SESSION['registration_form_button_clicked']); UNSET($_SESSION['domain']); //Form Input UNSET($_SESSION['domain_email_account']); //Form Input UNSET($_SESSION['domain_email']); //Form Input UNSET($_SESSION['password']); //Form Input UNSET($_SESSION['errors']); Displays errors underneath the form. echo __LINE__; echo '<br>';//DELETE } unset_sessions(); ```` the exact same as this: ```` session_destroy(); ```` I ask, … | |
Hi, I'm looking for a replacement for FREE web hosting, since Vista Print bought Webs.com and ruined it for everyone. I cant find a place to transfer my HTML code without monthly Domain and hosting fees. I started this website back in the old Geocities days, then Yahoo bought the … | |
Hi all, I'm having difficulties to pass Props (Label text) to Combobox component. I usually use same forms for adding and editing Data. When it comes to editing, If I use lot of arrays to iterate first and then pass right information, I get stucked for hours like here. I'm … | |
Hi.. I would like to send an order confirmation email with the cart details. But it doesn't show the string in php, only html. My script: $to = 'adolph@site.it'; $subject = 'New Order'; $from = 'info@newsite.it'; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // … | |
I have this https://imgur.com/a/SMqlcgF multiplexer and I have to make a program to get the truth table. How would I do this? I honeslty am so lost. | |
I have 5 textboxes. How to calculate the total of price entered by users? Users need to enter quantity in each textbox and then it will calculate with price that already display or show in label (quantity*price). The result will be showed in textbox readonly. How to make it? <pre … | |
Even after formatting cells as numbers their sum adds up to zero. How to correct this anomaly? Programming microsoft-office | |
I want to populate report in browser, i prepare this report in i-net clear report, and report file having extension of rpt. I also want to pass parameter | |
What are some essential skills every web developer should have? | |
Hey, guys~~ I have some questions about CSP Is simple hill-climbing a complete algorithm for solving CSPs? and if a CSP is only with unary constraints, is it sure to be solved? Thank you^~^! | |
<!DOCTYPE html PUBLIC > <html> <head> <title></title> <link rel="stylesheet" type="text/css" href="css/main.css" /> <script src="js/jsimageslider.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" href= "css/generic.css" /> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> </head> <body> <div id="dm1"> <div id="dm1Inner"> <h1 class="first">hello people</h1> <div id="sliderFrame"> <div id="ribbon"></div> <div id="slider"> <img src="images/sl-1.jpg" alt="Welcome to Design3d.nl" /> <img src="images/sl-2.jpg" alt="Customizable Transition Effects" /> … | |
I want to pass two variables in a php url at present I have $line = "<a href=\"$click?$namehref\"><font color='red'>$name</font> </a>"; When I click the link it displays the $click variable, but does not then pass to $namehref which is an mp3 link, what would the syntax be to achieve this. | |
An equipment company wishes to create a database to support the hiring of tools and machinery to clients. The company has three types of equipment: power tools, such as drills and vacuum cleaners, plants such as excavators and scaffolding. Each piece of equipment is identified by a number. Power tools … | |
Hello guys, how are you all doing ? Guys there someone there, who is interested in building a project together ? to connect exchange ideas and knowledge | |
Is there a way to get the data from an registration form by counting the inputs and textfields but excluding the submit and hidden ones? Lets say I have a form with 5 input fields that contains the data for registration can I make an array for all so when … | |
i want to know is there any inbuild function to add spaces in javascript after particular interval..!!? there is string '00009999' i want to add blank space 0000 9999 after every 4 digits.? | |
Things don't have to be black and white all the time. Use a Windows API call to add some color to your text output. | |
I am having a problem passing a `$_POST[]` parameter to another file via the URL. Look at the line 34 and 138. The line 34 is getting the URL parameter in a POST and line 138 should pass that same parameter value to the other file, but i get an … | |
Howdy once more, Just got another question on Sql and Php Prepared Statement. How would you confirm a successful row insertion to a mysql table ? Which one of the following lines would you add the IF condition to in order to check insertion successful or not ? 1). mysqli_stmt_execute() … | |
I have this code <?php // Connect to the database $servername = "localhost"; $username = ""; $password = ""; $dbname = ""; // Create connection $conn = mysqli_connect($servername, $username, $password, $dbname); // Check connection if (!$conn) { die("Connection failed: " . mysqli_connect_error()); } // Get the user's IP address $user_r_ip … | |
My program worked earlier this year before Windows 10 put and update and suddenly it doesn't work anymore. I have a separate laptop that didn't get the update and it works perfectly. Can someone please tell me what I need to do to get it to work? Ive tried everything … Programming c# windows-10 | |
Hello , I have been trying to connect to remote server using SSH using Microsoft visual studio but nothing is happening after i add all needed data in the cross platform logging I receive the below error connecting then disconnecting 11:33:35.6941763 [Info, Thread 1] liblinux.RemoteSystemBase: Connecting over SSH to XXX … | |
I am not that much of an expert in PHP as it has been few months since I started playing with it. Currently I am working on creating a basic CRUD operation in PHP. I follow this tutorial on CRUD in PHP (https://www.cloudways.com/blog/execute-crud-in-mysql-php/ ) to create it on a local … | |
Hi, i have problem with table conversion from xml to html using xslt. i converted rowspan and colspan in separate row(entry), but if both rowspan and colspan come in single row(entry, colspan and rowspan) is not converting. i have tried so many ways but i didn't get the exact output. … | |
I have used Magick.NET to detect all the edges using Canny Edge Detection which basically converts an image to a binary version where the edges are in white and the rest of the image black However I have failed in using the library HoughLine method to detect rectangles or squares … | |
Hi, Seem to be having problem with the password_hash() as it keeps changing the hash value of the same password. Why ? When each time I refresh the page, the $password_hashed value changes! Why ? The $password is still the same who's value is: '123'. And password_verify($password,$db_password) always echoes '1' … | |
I am making a edit blog option for a website. I am done with the code. Whenever i click the edit button it redirects to the form action file and shows a blank page. Here are my codes. # edit-blog.php # <?php include_once('header.php'); include_once('sidebar.php'); include_once('controller/BlogController.php'); $_SESSION['ap-old']['title'] = $_POST['title']; $_SESSION['ap-old']['short_description'] = … | |
im trying to get PHP operate well with javascript. I have looked on internet and put all the solution inside at once but none work. I want to create a cross-site AJAX request but i cant seem to be able to have session_start() stick. I have this PHP code on … | |
Looking for a web application development company for an enterprise-based web app project. Can anyone suggest me an experienced web app development organization? | |
Below is the code I have, and the output is below that. It all seems right, but I don't want it to print out the 0's if they appear in the output. How do I do that? #include <iostream> #include <iomanip> using namespace std; int main() { double moneyOwed = … Programming c++ | |
Hello, I have run into an issue where my output for shipping charge needs to be Real Use local named constants not global Also the package weight needs to be times the rate PER pound, is what I have correct? rate1= 1.1 rate2= 2.2 rate3= 3.7 rate4= 3.8 def main(): … Programming python | |
Hello All I am want to run a command "Merge -i file1.txt -i file2.txt -o out.txt" using python script. Here Merge is a exe file located in different path and file1, file2 are input to the exe file and out is output file. Can anyone suggest me out to run … | |
According to me, some important elements in HTML5 that support media are <video>, <embed>, and <source>. I would like to know something more about it from you guys. | |
Hi to All! I have a POS Software which I have developed in Java, NetBeans IDE. I am deploying this software on a variety of Windows Computers / Laptops for 5 years. I have used JFormattedTextFields for double data type in the whole Software. And I have set Format of … | |
Hi, With PHP 7.3, the following was used to grab content from another website: <?php include 'https://www.some-other-website.com/stuff.php';?> It works in PHP 7.3, but I get a black page in PHP 7.4 or higher. Any help would be appreciated. Thanks, Jim | |
I have a client that have members sign, they get charged, but can't get in unless they are added manually. Any ideas? they are using Chrome on Windows OS. | |
I'm not a php expert but I wonder if there is a way to secure the tunnel with https and if can somehow use some sort of certificate to the session from the class when it outputs the userdata into session and read it as an input by the class? … | |
I am trying to print out photos from an old Windows98 computer (Dell Inspiron 2400) to a brand new HP8025e Laser printer. Our store has been operating a photo booth on this computer so I don't think I can port it to a newer version of Windows. We had been … Programming operating-system printer windows-9x | |
Hello Programmers, We use the fragment in urls for the browser to hone in on a particular secion on our page. http://www.yoursite.com/#heading_number~1 http://www.yoursite.com/#heading_number~2 And so on. Now, we can easily open those particular sections in iFrames of your's or third party site's) that does not have a fragment {#) in … | |
I have been doing web development with PHP for the last few years, and like a lot of people, I have a strong dislike for PHP. I also have done lots of Java development, but never web development. Having a good knowledge of Java, I decided I would try web … | |
PHP script that provides a basic web-page asking for a date. That date is then used to get the log file for that date from a directory containing many log files (one for each date). If the log file exists, then it is downloaded; otherwise, the script returns with "No … | |
I have a website that have 6 videos from +500MB to +1GB i have uploaded them my other hosting which is not same as the website thinking it would not have lag. But it seems it has lag and its loading slow. What solution do i have to host my … | |
Over the years I've seen so many solutions to development but not one is a panacea. Example: I had a 28 day embedded project that would have blown its 28 day limit if there were any attempt to force DevOps onto the plan. This was 28 days from start to … |
The End.