64,152 Solved Topics
Remove Filter ![]() | |
Good day, I having a problem where creating my setting table as condition below column User_id setting effective_date effective_end_date Row 1: 1 ABC 2017-03-01 2018-02-28 Row 2: 1 DEF 2018-03-01 2019-03-01 I wish to add a constraint to block if same user add in a setting with the effective_date or … | |
Hi Guys, I have a data bound grid-view with action buttons for updating and deleting items in a users shopping cart. The grid-view uses a 'SelectMethod' in the code behind to generate the data. The problem I'm having is that every time I edit some data in the grid-view, the … | |
Hello Members, I want to write a C program which creates two threads and uses a semaphore (as a critical section) to sleep for 1 second and then terminate. I am having a hard time with some of the C Syntax for semaphores. Is it possible to post an example … | |
Hey guys i'm a noob with javascript. I have two scripts that generally do the same thing but each do not properly work with my code. The first script will work with adding rows and allow me to delete them, however it will also delete the top row. This is … Programming finance javascript | |
The following code will allow me to add a table row line and I can add the starting amount with the first amount input into the first row, but if I add a row and enter in an amount I want it to add or subtract that as well. Thanks … | |
Hello. I have an exercisse to convert from 24-hour to 12-hour clock. code: /*ALGORITHM READ INPUT VALUE IN 24-HOUR FORMAT DISPLAY THE EQUIVALENT 12-HOUR CLOCK WITH THE PERIODS AM OR PM */ #include<stdio.h> #include<conio.h> int InputValid24Hour(void); void Output12HourClock(int); void main() { int data; data = InputValid24Hour(); Output12HourClock(data); _getch(); } int … | |
I'm Currently working with a payroll system with daily time record.. I'm having troubles with their time records, what i did is this, i created 6 textboxes on the form the 1st textbox is for the AM IN 2nd is for the Lunch OUT the 3rd Is for the total … | |
All, In the code snippet below - I am trying to only send an e-mail if the page is reached via a POST request - the if statement is not being recognized in the CGI code - as when I access the page this is on directly - I get … | |
Good day guys, here is another question I have, working with vb.net community 15. I have a large datagridview to display all lessons for my school timetabling program. There could be up to 14 timeslots = lessons per day. Now I like a timetabler to be able swap days like … | |
**A newbie would appreciate if someone could give him a pseudocode or any kind of explanation for the part of the code where the actual algorithm for matrix determinant is written.** using System; namespace Determinant { class Program { public static double DET(int n, double[,] Mat) { double d = … | |
Good day community, I have completed vb.net program (a school timetabling program) and I am in the process to create a website. At the moment word -press on wamp server and parallel Microsoft Expression Web 4. To sell the program off the website, either clickonce or downloaded, I request the … | |
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click 'Using writer As System.IO.StreamWriter = New System.IO.StreamWriter(Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory), "Word List.Txt", True) Using writer As System.IO.StreamWriter = New System.IO.StreamWriter("C:\Users\Home\Desktop\lessons Word\Word List.Txt", True) Dim curLine As String = TextBox1.Text If (TextBox1.Text.Count > 1) Then curLine = "" For Each line As … | |
Hi, I am trying to write a simple script that reads a file for two time stamps and then finds the delta. However, I can't get passed converting the time strings to datetime objects. I haven't done any coding since college and I everything I've read says this code should … | |
Write a C++ program that inputs the number of students in a class and the number of tests and the grades of the tests conducted by each student, then it calculates the average of the student and outputs related information as given below. The Average of a student is calculated … | |
I have an issue with what seemed a simple task, but I'm having a brain farth, so it's not :) I count child elements with `length`and add `+1` on top of that length. This works fine and I store that in a var `$trackCount` $trackCount = $carousel.find('.owl-item').length +1; Now I … ![]() | |
HI , There are TWO Excel Files in my Program which I am trying to upload to a FTP server and then later Download it and its getting uploaded and downloaded with no error but when i try to open the file i get error message its corrupted or not … | |
Hi! I have create a simple desktop application (CRUD operation) using java derby by using the library "derbyclient.jar" I want to deploy it on another computer which not have netbeans IDE installed. I ''clean and build '' the project and a jar file created in dist folder of my project … | |
i can't get DateTimePicker to insert into Access databse. I've tried all the suggestion i can find from this forum, so i'm thinking my problem is different? my table has a column date which has a Date/Time format my code [CODE] Dim cmd As OleDbCommand Dim sqlstr As String, ans … | |
i've got code like this naglibog.CommandText = "UPDATE ptransaction " & _ " SET Quantityt = " & mm & _ ", Partial_totalt='" & jj & "'" & _ " WHERE Product_Codet =" & intProduct11_Code & "'" & "'AND soldtime = '" & stime & "'" naglibog.ExecuteNonQuery() libogsya.CommandText = "UPDATE … | |
<!DOCTYPE html> <head> <title>Traffic Light Sequence</title> </head> <body> <script> function Light(){ if (document.getElementById("Img").src ="Stop-Amber.png"){ then document.getElementById("Img").src = "Stop.png" } else if (document.getElementById("Img").src ="Go.png"){ then document.getElementById("Img").src = "Stop-Amber.png" } else if(document.getElementById("Img").src ="Amber.png"){ then document.getElementById("Img").src = "Go.png" } else if (document.getElementById("Img").src ="Stop.png") { then document.getElementById("Img").src = "Amber.png"}} </script> <button type="button" onclick="Light()"> Change … | |
hi i'm anousha and i have a big problem ive an aasignment to create a calculator in VB.net to prfrom addition and subtraction then show the results using mouse controls. Can you give me a hit how to do it plz? | |
Hello i made a search box and i want to make a link what will pass the search word that the user put in the search box. e.g. http://localhost/myproject/allSearches.php?searchword=aa **aa** is what the user put for search. Now i want to get that, sort it and return the data. I … | |
Hello Daniweb, and thank you for taking the time to read this post. I have a question of efficiency. I am wondering, what is the most efficient way to print from a listview. The listview's values are loaded from a database, and I would like to print from that listview. … | |
Im trying to send an array using curl. I am brand new to curl. **How do I populate my array depending on form data?** I need full_name to pull data from the form. So email goes into email and company goes into company. Here is where I am right now. … | |
Here is the dilemna, I can't figure out how to count the time a value is above a certain amount in c#. Exercise: A radio station specialized in classical music is raising fund. People call in to pledge donations. Donors who pledge for $100 or above will receive a coffee … Programming | |
the text file has more than one word. the user to put the input from the jtextfield and get the input related word from text file, to display the jlist how | |
Hello, so, I'm playing a bit with **MariaDB 10.0.29** and I cannot understand why `FOUND_ROWS()` keeps returning the `1` whatever happens to the latest select query. Here's my test: > CREATE TABLE `test` (`id` INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, `msg` VARCHAR(100) NULL) ENGINE = InnoDB; Query OK, 0 rows affected … | |
In vb.net application I have 10 Textbox and value entered by Barcode scanner So when one Textbox1 get the value by Barcode scanner the focus moved automatically to another Textbox2 and so on. I have this code but its working. Private Sub A1TextBox_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) … | |
Hello i am creating the assembly program that accepts a single character and display the alphabet . The requirements are (1) The input character should be displayed (2) The input of the single uppercase letter should be displayed the lowercase letter. (3) The alphabet should be displayed horizontal position and … | |
Hi guys. i'm new to this forum and new to programming in general. ive had some classes of vb.net and im just starting to actually play around with vb. im trying to make a program that starts with an image in a certain position (in ths case a car) and … | |
hi im hoping someone can help, I've been updating my website recently and noticed that for some reason when you navigate the pages after a few seconds of landing on any page it sudenly reverts to a different page, ive had various people test on multiple browsers and operating systems … | |
Hi, I wrote some code below, at the moment i'm testing so there's no database queries in the code but before i do that i'm hoping someone can help. The code below where it says `if(filesize($filename) != 0)` always goes to `else` even though the file is not 0 bytes … | |
Hi PerlGurus, I am really new to perl and liitle handson with the concepts here. I am trying to learn the hash & Array concepts and come up a self exercise to do practice. *Got two files * # inFile01 as below: # CLAYCOUNTY;Wood;statecode=FL CLAYCOUNTY;Wood;statecode=FL SUWANNEECOUNTY;Wood;statecode=FL SUWANNEECOUNTY;Wood;statecode=TX SUWANNEECOUNTY;Wood;statecode=TX SUWANNEECOUNTY;Wood;statecode=TX NASSAUCOUNTY;Wood;statecode=UT … | |
how to export my table data which is in mysql database to a csv file I am not getting any error or exception but my csv file is empty after successful running this code. code what i did: import java.io.FileWriter; import java.sql.Connection; import java.sql.DriverManager; import java.sql.Statement; import java.sql.ResultSet; import java.sql.SQLException; … | |
Hello, I am working on a new screen for a program used by the U.S. Department of Labor. I am getting a signal SEGV (access to address exceeded protections) when I try to excute the command snprintf(rowh[1] + 30, 4, "%4d", baseyr + 1);. The string I am trying to … | |
Hello, I have this online shop that I am trying to configure: www.advance-web-studio.com/bestshop/ and www.advance-web-studio.com/bestshop/index.php How to make the first one direct to the second one. The result is different. I expect the second one appears not the first one. Can anyone help me out? | |
Good evening everyone, Does any one have a reference/videos/tutorials on how to use recursion effecitely in C++? v/r Programming c++ | |
I have the following class that I intend to validate by passing it in the symfony validator. <?php namespace Shop; use Symfony\Component\Validator\Mapping\ClassMetadata; use Symfony\Component\Validator\Constraints as Assert; use Shop\Validation\Constraint as ShopAssert; class Country { /** * * @var int */ public $id; /** * * @var string */ public $name; /** … | |
Good morning everyone, The library will be home, 0800 till 2100. I've been working on trying my loops in my hailstone sequence into recursions. It seem recursion can easrier to do, instead of creating loops. I say seem, because now I have come to halt on my progress. The halt … | |
Hello everyone, I am new to Regular expression, and would like some hints, please if someone can direct me to right place. I have a bunch of files in a directory, and i need to rename them based on certain pattern. I think I need to use regular expression to … | |
Flowchart in computing grades using switch case .. Programming javascript | |
I'm trying to retrieve the values of checkboxes in a custom post type. My complete function: function getTeam() { global $post; $team = new WP_Query(); $team->query('post_type=coaches'); $workshops = get_field('workshops'); if ($team->found_posts > 0) { echo '<ul>'; while ($team->have_posts()) { $team->the_post(); $listTeam = '<li>'; $listTeam .= '<a href="#" class="js-modal">'; $listTeam .= … | |
I'm not sure why it returns Array, because as far as I know I don't retrieve the profile images from an array. See the following function. function getTeam() { global $post; $team = new WP_Query(); $team->query('post_type=coaches'); if ($team->found_posts > 0) { echo '<ul>'; while ($team->have_posts()) { $team->the_post(); $listTeam = '<li>'; … | |
Hello, I am having a problem aligning text to the top of the table. Cek this out: http://gsa-constructionspecialist.com/experiences All the text is not aligning to the top. It's aligning to the center vertically. I wonder how to align the text to the top with tiny mce. I don't think I … | |
How to implement bucket sort in C using Linkedlist.. Or any weblinks please share... | |
Why am I getting an error "Operation is not allowed when the object is open"....Here is my code Option Explicit Public Report As New CrystalReport1 Public mvCn As New ADODB.Connection Public Function printReport() Dim strConnectionString As String Dim rs As ADODB.Recordset Dim strScript As String strConnectionString = "Provider=SQLOLEDB............" mvCn.ConnectionString = … | |
Hi, Not done any programming for a few years so am somewhat rusty again. I have two tables **users** table and **users_profiles** table. I want to update **users_profiles** table on the condition that **user_uid** matches on both tables (**users.user_uid** and **users_profiles.user_uid**) and where **users.user_login ** = 'johndoe' and **users.user_uid** = … | |
I want to increase the limit of upload size max, but because I using shared hosting, I cannot edit php.ini. Then I try to edit my .htaccess file. I added these lines: php_value upload_max_filesize 700M php_value post_max_size 700M php_value max_execution_time 600 php_value max_input_time 600 When I test it in localhost, … | |
Hallo to all web developers, I have a problem in load PHP in mozilla fire fox. . .I am using XAMPP web server. My PHP file is currently stored in this path [COLOR="Red"]C:\xampp\htdocs\test\index.php[/COLOR]. Whenever I run my PHP in mozilla it won't display anything even just a simple "hello world." … |
The End.