64,152 Solved Topics
Remove Filter ![]() | |
Hay guys iam new to c programming and i was trying to do simple do you want to continue loop using do while loop the problem is the program doesn't read the char Y/N and just simply contiune the loop and here is the code what's wrong #include <stdio.h> #include … | |
Hi, I have 3 tables Description, Item, Transaction Description Item Transaction DeID Name IID Name DeID TranNo Type IID Date 1 Printer 1 Stylus T10 1 1 Repair 1 2 Monitor 2 HP 1 2 Repair 3 3 ViewSonic 2 I need to count how many printers, Monitors etc. are … | |
Hi, I have a data, employee attendance record with following format > 01-0002,I,4/21/2014,07:34:00 01-0002,O,4/21/2014,18:09:00 01-0002,I,4/22/2014,07:47:00 01-0002,O,4/22/2014,18:09:00 01-0002,I,4/23/2014,07:54:00 01-0002,O,4/23/2014,18:07:00 where I is in and O is out The table contains lots of records for this saves records from the start how can i search a record with no In or no … | |
Hello EveryOne I confuse of bellow code <?php if($True == 0){ ?> <a href="/#"> Apply </a> <?php}else{?> <a href="/#"> Aleary applied </a> <?php }?> **Given Me Error** `Parse error: syntax error, unexpected '}'` **BUT Solved It**: When i replace '<?php' **else** to '<?' it could be solved. But why it … | |
I have this database and I need to display data from koncerti (koncertnaziv,karte,mesto,datum) based on what grupanaziv is sleceted before, and grupanaziv is in different table called grupe, grupa_id from koncerti has same id as id from grupe, so that is connected in that way, so I need to match … | |
Hello everybody! I'm trying to count the number of occurrences of each word in a text file. Problem situation requires to realize menu using "switch" statement (If file exist or not). There are following errors in my program ("case b" and "default" is not working): **[C++ Error] 03_int.cpp(61): E2126 Case … | |
Hi, You can simulate this by starting a new WinForm app. Add a datagridview and add some columns. Add a contextmenustrip, add a menuitem, doubleclick it to get a clickhandler. Attach the menustrip to the datagridview in the properties window of the DGV. Then refer to this code and the … | |
Am I loosing the plot or is something strange happening here? I have a simple login form (see below), but when I call the page, PHP returns and undefined index error, even though I have coded to say if index is undefined, then die. Am I missing something very obvious … | |
->Hi Daniweb-Web Developers. ->I'm using PhP 5.2.5,WAMP 5,MySQL 5. -I'LL TRY TO EXPLAIN IN DETAILS THE WHOLE STORY:- ------------------------------------------------- 1: I've declared a global variable dynamic array ALPHABETS_COMBINATION. 2:It is populated with a group of 3 Alpha combination AAA-ZZZ in a function : Generator($ALPHABETS) 3:Once the Buttonn click event is … | |
Hi I am having trouble with my website. ceead.businesscatalyst.com The latest news module doesnt put the date in initial text capitalization. I would like for the date to have the word in initial text transformation. <div class="announcement-list" style="text-transform: uppercase;"> <h2 class="post-title"><span id="date{tag_counter}" style="text-transform: uppercase; font-weight: normal; font-size: 14px; font-family: arial; … | |
hello everyone i am having problem while creating zip file..when i use static images then it works well...but when i coonect it wiTH database it stops working.. can anyone please tell me.... my code is: ` <?php include("include/connection.inc.php"); $error = ""; //error holder if(isset($_POST['createpdf'])){ $post = $_POST; $file_folder = "./store/product/images/"; … | |
I am working on a little hobby project, it reads user input and then stores it in a pointer to char array. The problem is that the output is not correct. So i dont know if it is the output, or the storing that is wrong. I am used to … | |
Hi, I'm thinking of using the htaccess file on my apache server to add a layer of security to the payment processing on my site. I am considering the 2 actions below, not sure how yet, but thats where the trial & error & learning begins. 1. rewrite the url … ![]() | |
![]() | <ol class="dd-list" id="start"> <li class="dd-item dd3-item"> <div class="dd-handle dd3-handle"></div> <div class="dd3-content">Home</div> <div class="url" style="display:none;">homeurl</div> </li> <li class="dd-item dd3-item"> <div class="dd-handle dd3-handle"></div> <div class="dd3-content">About Us</div> <div class="url" style="display:none;">abouturl</div> </li> <li class="dd-item dd3-item"> <div class="dd-handle dd3-handle"></div> <div class="dd3-content">Gallery</div> <div class="url" style="display:none;">galleryurl</div> <ol class="dd-list"> <li class="dd-item dd3-item"> <div class="dd-handle dd3-handle"></div> <div class="dd3-content">Contact</div> <div … ![]() |
![]() | I have 3 tables --Ticket_Lines (parent), Labour_Items (child), Part_Items (child). Table Ticket_Lines has 2 primary keys (ticket_number & ticket_line_number) I know that you cant have two seperate primary keys in one table so would this mean that ticket_number and ticket_line_number is a composite primary key? if that is correct, is … |
i need a simple project of microsoft access for beginner bacause i am beginner in database plz help me and give me a simple project ![]() | |
$abc =$_POST['LinkWidth']; $link = $abc; echo $link; if ( $link == "page" ){ die('inputbox validate[required]'); } else if ($link =="otherlink"){ die('inputbox validate[required]'); return; } | |
Hello everybody! I'm trying to display the result of difference of two-dimensional vectors using friend overloading. Builder shows the following error after compilation (line 40). What should I change for in my code in order to find the problem? Thanks in advance. **[C++ Error] 05_Part.cpp(40): E2034 Cannot convert 'double' to … | |
![]() | Hi all, I have some HTML as follows and I want it so when you click on an <li> it returns the dd3-content and url. <div class="dd" id="nestable3"> <ol class="dd-list" id="start"> <li class="dd-item dd3-item"> <div class="dd-handle dd3-handle"></div> <div class="dd3-content">Home</div> <div class="url" style="display:none;">homeurl</div> </li> <li class="dd-item dd3-item"> <div class="dd-handle dd3-handle"></div> <div … ![]() |
#include <stdio.h> void Merge(int *, int, int, int); void MergeSort(int *array, int left, int right) { int mid = (left + right) / 2; if (left < right) { MergeSort(array, left, mid); MergeSort(array, mid + 1, right); Merge(array, left, mid, right); } } void Merge(int *array, int left, int mid, … | |
postfix and prefix increment or decrement operators very very confusing for me i try my best but i can not understand the basic different between them plz help me i know The prefix form first performs the increment operation and then returns the value of the increment operation. The postfix … | |
Hi i wanted to do validation using `data-validation `attribute in jquery,so what i wanted to check is how to limit input in `minlength` and `maxlength` and to be only alphabet chars,so `maxlength` worked but `minlength` didn't !! it was like "not valid attribute for input in HTML5", <label> at least … | |
<td>FooterMenu</td> <td><input type="checkbox" name="FooterMenu" value="1" <?php if($FooterMenu == 1): ?> checked="checked" <?php elseif($FooterMenu != 1):?> checked="unchecked" <?php endif;?>/> </td> | |
![]() | I have a php/mysql project and I am currently trying to display a table into an html table through PHP how ever Only the headers are getting returned not the actual table data, here is my query plus html table <?php $result = mysql_query("SELECT * FROM store"); echo"<table border = … ![]() |
Hi guys... I'm fairly new to PHP but do have experience with other languages. Having an issue with sharing variables between multiple PHP scripts on the same page. Here is the deal: The page in question is called by another page, which then passes a variable in the URL string, … | |
I have the following data in a table called 'customers': accmanid custid billone billltwo 1 1 126.9 514.6 1 2 264.73 108 1 3 130.5 514.6 1 4 137.82 514.6 2 10 126.9 514.6 2 11 126.9 375.48 2 12 126.9 117.55 2 13 126.9 261.66 3 19 130.5 117.55 … ![]() | |
so I have a bunch of DIVs containing inputs named by ints. I have the parent DIV of these DIVs, but now I'm stuck at: var div = parent.children()[index] what I want to do is get the child <input> by it's name "0". how can I do this?? thanks :) | |
Write a class Date which consists of: Member variables: day, month, and year Member function DaysSinceFirstJan1() which returns the total number of days since 01-Jan-0001. Now write a main function which asks the user to enter 5 dates (day, month, year) which are stored in an array of objects of … | |
what is command line argument in java and how it is work public static void main(String []args){ for (int i = 0; i < args.length; i++) System.out.println(args[i]); and what is .length in upper code. is it function no it is not function is it class no it is not a … | |
Hi, I am stuck with this logical error and I was hoping someone could point me in the right direction. When I debug this program the array's do not contain the data from the textboxes that the user enetered. as far as I know the code is in the correct … | |
Hello PHP Friends, I think this is just if else statement problem but im kinda lose to it. The whole code is succesful in deleting the data from database the problem is i wanted to put a script that remind the user if he/she really sure to delete the data. … | |
$result =0; if ($id_marca!=1) { $result = $result + $vl_max*$pares; // id_marca = 22 [ 38 pares * 1.451 = 55.14 ] } elseif ($id_marca=='1'){ $result = $result + $vl_min*$pares; ///id_marca = 1 [ 36 pares * 1.392 = 50.15 ] } else { $result =''; } $result; Hello, I … ![]() | |
Hello every one . . recently i have written this code to count letters and words in the phrase that the user enter , it worked once but when deleted (by mistake) and tried to rewrite it again it didn't work , so could you please help me to find … | |
Hi all, I'm looking into the management of duplicate records in MySQL, but this case is a little bit more specific. A record is only duplicated if column A and column B have the same value. So a record is only a duplicate if two specific columns have the same … | |
Hi, I am trying to get the records out of a mysql database where the time is less than todays date and time - I have set the column as DateTime in mysql and it is stored as 2014-05-31 15:00:00 $TodayDate = date('Y-m-d H:i:s', time()+28800); $sttTodayDate=strtotime($TodayDate); // We Will prepare … | |
path = './file.txt' os.remove(path) import os `os.remove(path)` is equal to `os.unlink(path)`, so how can I delete the file if it just becomes unlinked? Also I haven't tried to yet, but does `'./file.txt'` work as is or do I must provide the full path? Or do I just need to use … | |
Hello all, I am working on assignment for class and I thought I had this one but something is wrong. This is an inventory control program that needs to display 7 items with the item number, name, number in stock, price and value. The program works for item 7 but … | |
hi there im a total newb at this programming language is there a way 3 databases can be in one datagridview? I can only insert 1 database in a datagrid | |
Hi ! I need to have a single mysql query which should get COUNT of two different values in a single field, suppose i have a field in a table 'approved', and there are only two values ie. approved=0 or approved=1, and have suppose 100 rows for them,so how to … | |
I have this on my error log. GET /wall/roves/378 HTTP/1.1" 404 212 i know it means that page its not found but i cant figure out why? its an Apache thing? | |
Hi, I have migrated OS from XP to win8.1. Earlier in my VB application, I was sending email thourgh my outlook object. set outapp = createObject("Outlook.application") but now I am getting error "ActiveX Compponent Can't create Object." as i have migrated my OS. is there any other change in code? … | |
I'm trying to create a program that passes arguments of size of three shapes, a circle, a triangle, and a rectangle. I got those but everytime I run the code it displays the arguments as 0 instead of giving me the shape dimension. Here is the code. using System; class … | |
I have a function that calls a php script to update cart items (cookie). When I have multiple items in the cart I use a loop that calls my function. function updateCart(ur){ $.ajax({ url: ur, success: function(data){ console.log(data); } }); } I think this is firing too fast or something. … | |
Hello guys. I developed a simple game in C# on Windows (WFA). Now I want to crate a database with accounts and all stuff. I know to crate this with a SQL Local Database, but I think there should be a host where to put that DB to be accessed … | |
hey, I need help with this code, I have made database and code for inserting data, now I need code that will display data for group, in database I have groupnaziv, and id, here is code for inserting which works great, after that I will post code that I need … | |
so i dont know how to explain what im trying to do... maybe this is why i cant find any information on google.. but ill try so i want to do for example i have 100 photos but i only wanna display 25 on each page and if is more … | |
I need code that will after pressing submit display concerts for selected group (grupanaziv), which includes number of sold tickets for that concert, place, and date, in database they are called place=mesto, date=datum, and tickets=karte <p align="center"><font color="#0000FF">Pregled grupa</font></p> <p align="center">Grupa kojoj koncert pripada: <select name="grupa_select" id="grupa_select"> <?php while($row = … | |
Can someone explain this what it is doing? if ( condition1 && condition2 && condition3 && condition4 && condition5 ) { code } It doesn't do what I want it to do but this does. if ( condition1 ) { if ( condition2 ) { if ( condition3 ) { … | |
i want to display first priority wise after that remaining data if no priority will display all data by select DISTINCT s.Companyname,s.id as companyid,s.LogoImage,s.LogoPath,s.Url,ck.MainCatagory,c.city,st.state,sub.Subcatagory,sub.MainCatid,p.priority,rc.RelatedCatagory from spa s left join relatedcatagories rc on rc.spaid=s.id left join catagorykeywords ck on ck.id=rc.mainCatagoryid left join subcatagorykeywords sub on sub.id=rc.RelatedCatagory left join city_place cp on … | |
I have been looking around the web today to see how I could get a list of followers from twitter. Apart of the code is - $tweet->get('followers/ids', array('screen_name' => 'YOUR-SCREEN-NAME-USER', 'cursor' => 9999999999)); My Question is, How do I create a loop to display "Screen_name" of all my followers ![]() |
The End.