64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for cyberdaemon

i have here my search code. i want to search for firstname, and gender, but what if firstname is empty and gender is the one were going to search. but the gender is not filtering they just filter the name. any suggestions.. SELECT --ACCOUNT_CODE --HOSPITAL_CODE MRN ,CONVERT(DATE,BIRTHDATE)BIRTHDATE ,FIRSTNAME ,MIDDLENAME ,LASTNAME …

Member Avatar for cyberdaemon
0
128
Member Avatar for hwoarang69

this code doesnt check captol letters. how can i do this. for examle is i have "cat" in table "user". than if i set $username_p to Cat. and it will work fine. but i dont want to work bc Cat != cat. $sql = mysql_query("SELECT id FROM user WHERE username='$username_p' …

Member Avatar for hwoarang69
0
117
Member Avatar for junweixiong
Member Avatar for missy_mi
Member Avatar for unknownprogress

I cannot make my program calculate the total of two integers (one on the main form, and the other on a different form). It keeps putting in the value "0", but when I tried it without a button it'd always just put one of the chosen integers instead of adding …

Member Avatar for unknownprogress
0
131
Member Avatar for ello

I know this has been asked before but I really can't relate any of the threads to my code. A'll I'm trying to do is get this quick PHP form to echo the error messages in the form as appose to a new page. (I'm sure you know what I …

Member Avatar for ello
0
207
Member Avatar for FearlessHornet

I have been working on a few projects and needed a method similar to pythons string.split(). I decided to make a reusable piece of code and export it as a .dll, the code is below: std::vector<std::string> Editor::StringHandler::Split(std::string data, std::string tokens) std::vector<std::string> returnList; std::string temp=""; bool found=false; for (auto i : …

Member Avatar for FearlessHornet
0
570
Member Avatar for Traicey

Does anyone know or have a source code for calculating Zodiac or Star sign using a given date of Birth Thanks in Advance

Member Avatar for muditagarwal88
0
427
Member Avatar for kenomote

hey guys i need some help on my code here.......... im trying to do some computation about the biling system or a library if the borrwer returns the book on time it will be no charge.......but if hte book is damage then it will charge him trice the ammount of …

Member Avatar for kenomote
0
134
Member Avatar for double_cola

Hey guys! Im putting together a drag and drop page where a user will drag an ellement (in this case and printable pdf) over into a print field. I need blank fields on the right to return either as (void skip this) or with default pdf. Any ideas? Here is …

Member Avatar for double_cola
0
204
Member Avatar for taylor.mitchell.353

I am working on a java project for school. I am trying to think more into a professional mindset rather than a student. The project I am working on is about hashing. The rest of the project looks really good, but this part makes me wonder if a professional programmer …

Member Avatar for taylor.mitchell.353
0
184
Member Avatar for Tobyjug2222

Hey Guys, I'm an A level student studdying Computer science, and hence using VB.NET for my coursework. Therefore I'm very novice at VB! While trying to update Data in a Microsoft Office, Access table (Office 2010) - I get this error. (In VB) Bare in mind, I've read all this …

Member Avatar for Tobyjug2222
0
610
Member Avatar for OsaMasw

Hello there , currently am working on download site that contain items , I need to place **download hits** for every file in site, I used the old way that open popup php page and increase the counter then store the result in database, its not cool to do this, …

Member Avatar for OsaMasw
0
235
Member Avatar for bibiki

Hey there, I have the following code: int[] x = new int[7]; System.out.println(x.lengnth); x.length = 10; System.out.println(x.length); Of course, line three causes a "cannot assign a value to final variable length". However, line one does assign seven to that variable, length. Now, I have written a Testing class where I …

Member Avatar for bibiki
0
915
Member Avatar for jamison234

Hi All, I am a newbie programmer in python and I am trying to read multiple csv files from a folder, perform some data sums based on timestamps for each row for all the csv files and then output the sums to one result csv file. So far I am …

Member Avatar for hughesadam_87
0
4K
Member Avatar for serkan sendur

i was reading xerces-c class documentation, one of the methods does the writing of buffer to a file. what should i understand from buffer, how is it different from writing some stream to a file? What should i understand from stream? Thanks

Member Avatar for stavrianosy
0
1K
Member Avatar for diafol

Hi, I've been playing about with native classes and looking to extend them - well just the DateTime class actually. I was hpong that there would be a way to avoid using a constructor, but I can't seem to figure out how to store a 'startup' timestamp, `u` without it. …

Member Avatar for diafol
1
1K
Member Avatar for conanzz

I`ve done all the work and the numbers appear in the textbox, but when I press equl it does not give the result! Protected Sub EqlBtn_Click(ByVal sender As Object, ByVal e As EventArgs) Handles EqlBtn.Click If txtentr.Text.Length > 0 Then Select Case Vals Case 1 ' txtentr.Text = Store / …

Member Avatar for conanzz
0
200
Member Avatar for green-script

trying to make this script work: <script type="text/javascript"> var tmp='<html><head><title>popup</title>'; tmp+='<script type=text/javascript>'; tmp+='function nowTime(){'; tmp+='var oNowTime=new Date();'; tmp+='var iMonth=oNowTime.getMonth();'; tmp+='var iDate=oNowTime.getDate();'; tmp+='var iYear=oNowTime.getFullYear();'; tmp+='var iHours=oNowTime.getHours();'; tmp+='var iMinutes=oNowTime.getMinutes();'; tmp+='var iSeconds=oNowTime.getSeconds();'; tmp+='var iMilliSeconds=oNowTime.getMilliseconds();'; tmp+='var sNowTime=iHours+":"+iMinutes+":"+iSeconds;'; tmp+='return sNowTime'; tmp+='}'; tmp+='function nowDate(){'; tmp+='var oNowTime=new Date() '; tmp+='var iMonth=oNowTime.getMonth()+1'; tmp+='var iDate=oNowTime.getDate()'; tmp+='var iYear=oNowTime.getFullYear()'; tmp+='var iHours=oNowTime.getHours()'; …

Member Avatar for AleMonteiro
0
747
Member Avatar for acerious

Here I have some code that will run a program that generates a bunch of lowercase and uppercase letters from length 15-25 and will swap it first using an iterative swap method. It will then generate a second set of letters and will swap it this time with a recursive …

Member Avatar for acerious
0
192
Member Avatar for meenal9

Help..i need java program with help of bufferedReader and IOException... to find sum of 2 nos. entered by user.. plz help i am new to java...

Member Avatar for jalpesh_007
0
128
Member Avatar for nUmbdA

I am working on an assignment for my fundamentals class and we have to create a program that is going to write/read/ and append a file. I wanted to set it up to check and see if example.txt exists. If so then append, else write. My question would be how …

Member Avatar for ZZucker
0
117
Member Avatar for hwoarang69

iam doing it so that it inside input field it should say "Password". then if user start type in than it should put chars ****. html file <input type="password" name="password" id="login_password" class="login_field" value=""/> js file /*** login page - password field ***/ var password = 'Password'; $('#login_password').replaceWith('<input type="text" value="" name="password" …

Member Avatar for hwoarang69
0
339
Member Avatar for Tko_1

Hi i have this script to upload and replace the exciting image which is good. The one thing i can not figure out is i would like to resize any images that are uploaded, to like 60x60. any ideas ? <?php if (isset($_POST['submit'])) { $newext = '.png'; $filename = $_FILES["file"]["name"]; …

Member Avatar for Tko_1
0
151
Member Avatar for showman13

I have searched and read all sorts of options on the web in answer to this question but it seem that everyone makes it much harder than I imagined it to be... Could someone tell me if this will work or if I just have a real misconception of the …

Member Avatar for <M/>
0
132
Member Avatar for HelloJarvis

Hi all, I'm working on a little project that gives you synonyms for your sentence that uses Twitter Bootstrap. Everything is working all right, but I can't seem to change elements within the Popover! What's odd, however, is that when I used jQuery.length on the desired element, it told me …

Member Avatar for HelloJarvis
0
314
Member Avatar for ciobanu.alexandru.cristian

Hello, World! My name is Alex and i am a beginner in Java. I tried to create 2 simple objects from the same class and give them the values inputed from console( as string). Is this correct or it should be done in another particular manner? Also, the constructor asks …

Member Avatar for ciobanu.alexandru.cristian
0
211
Member Avatar for mehnihma

I am trying to build XML to csv conversion The problem is extended attributes ( <AttrList> ) that I do not know how to read: This is the XML: <?xml version="1.0" encoding="UTF-8"?> <ProductCatalog> <Product> <ProductCode>FFC4UINTSATA</ProductCode> <Vendor>INTEL</Vendor> <ProductType>Cable</ProductType> <ProductCategory>Cables</ProductCategory> <ProductDescription>INTEL SAS/SATA internal cable (4xSerial ATA 7-pin (Male) - 1x (Male))</ProductDescription> <Image>https://www.it4profit.com/catalogimg/wic/1/FFC4UINTSATA</Image> …

Member Avatar for mehnihma
0
234
Member Avatar for john.knapp

Hello all. I'm using an API function via PInvoke, with the interesting data being returned to a pointer. My application crashes when attempting to free the pointer. If run with no breakpoints, the application hangs on Line 61 below. After the first run, it will then throw a memory exception …

Member Avatar for john.knapp
0
792
Member Avatar for hwoarang69

cant seem to log in. when ever i hit login button in login.php. than it goes to index.php but user is not loged in. i think its bc session_start problem. any idea why?? header.php <?php session_start(); include("connect.php"); //check, if user is loged in or not if(isset($_SESSION['username'])) /*** user is loged …

Member Avatar for diafol
0
343
Member Avatar for marek2121

I am trying to create Menu to may 2D game in Java. But the game is not responding to pressed keyes. Menu is working, but when I choose new game in menu, game starts but it does not react to pressed keyes. But, when I remove menu, game is responding …

Member Avatar for NormR1
0
822
Member Avatar for daino

I've installed the boost libraries binary version. How do I link this to my project? I've put the boost/bin path in my 'Path' environmental varialbe. Thanks

Member Avatar for daino
0
354
Member Avatar for dreamsky999

Hello DaniWeb Community, I've recently been working on a simple input page for user to key in and then, returns an error if it doesn't match the required input type. However, I've been trying to get them working but they don't. I've 2 pages (author.html & book.html) which send their …

Member Avatar for dreamsky999
0
181
Member Avatar for kenomote

Hey guys i need some help on how to save Values in My.Settings Two texboxes to save two different values and be albe to read those values or laod them when the program is oppned again...and also to be able to be replaced those values...

Member Avatar for tinstaafl
0
166
Member Avatar for on93

can anyone tell me where is my problem ??? i cannot debug this program. -------------------------------------------------------------------- #include<iostream> #include<string> using namespace std; class student { private : string name; int id; float cgpa; public : void setName(string na); void setID(int number); void setCGPA(float result); string getName(); int getID(); float getCGPA(); void display(); …

Member Avatar for deepecstasy
0
134
Member Avatar for Geli19

Hello everyone. I have build a simple MS Access database to keep track of volunteer info (contact, address, phone etc). I have a report that displays each record in a list: record1. Last Name, First Name, phone, email record2. Last Name, First Name, phone, email etc... What I want to …

Member Avatar for Geli19
0
191
Member Avatar for Neethaa

Private Sub btnInsert_Click(sender As System.Object, e As System.EventArgs) Handles btnInsert.Click Dim con As New OleDbConnection Dim cmd As New OleDbCommand Dim dr As OleDbDataReader Dim Pnum As Integer Dim InDate As Date Dim PDate As Date Dim Amount As Integer Dim CmpID As Integer Dim Tax As Integer Dim TaxAmt …

Member Avatar for Reverend Jim
0
172
Member Avatar for jackshannon4

std::string s = "65//3"; std::istringstream indexBlock(s); for (int i = 0; i < 2; i++) { int index = 0; indexBlock >> index; std::cout << index << std::endl; } I would expect the output of the cout to be: output: 65 3 as I thought the stream iterates through the …

Member Avatar for jackshannon4
0
376
Member Avatar for eNnilla

I'm currently building a website for my friends and me, and I've decided to have the homepage use a news system. I have the page working with PHP to load articles from my MySQL Database, and that's working fine. My real issue is with the page that adds items to …

Member Avatar for broj1
0
307
Member Avatar for Vijaysurya

Hai everybody, I am uisng * valums/file-uploader i need help in mouseover or mouseup a uploadbutton. after upload a image. anybody plz help me. this code no working. remove this two lines working fine. $("#btnUploadPlanPicture").hover(function() { $("#btnUploadPlanPicture").mouseup(function() { anybody plz help me. $(document).ready(function() { $("#btnUploadPlanPicture").hover(function() { $("#btnUploadPlanPicture").mouseup(function() { var uploader …

Member Avatar for AleMonteiro
0
202
Member Avatar for shahai.ali

hi every one. i have two tables table_1 ( std_id primary key, std_name, tchr_id foreign key ); table_2 ( tchr_id primary key, tchr_name ); as from the above tables i have the foreign key constraint. it mean if i want to delte teacher id it must be firstly deleted from …

Member Avatar for adam.adamski.96155
0
206
Member Avatar for shahai.ali

hi all i want to store the error of `mysql_error()` in a variable. i was trying the following: $alert_error = "<script type=\"text/javascript\"> alert('".mysql_error()."') </script>"; $id =5; $query = mysql_query("DELETE FROM abc WHERE id ='$id'") or die ($alert_error); actually my there is a foreign key constraint so when i click to …

Member Avatar for shahai.ali
0
617
Member Avatar for Daniel BE

Dear friends, I want to create a program that reads 10 numbers from the user and store it in a file namely Numbers.txt. After that I have to read each numbers and if it is a Even number then it should be stored in a file "Even.txt" otherwise it should …

Member Avatar for deceptikon
0
253
Member Avatar for ismael ahm@d

Hi all friends, I am trying to insert XML data using DOM, i completed mostly but little bit left, issue in the <field></field> the data between that not inserted in db, please consider the below mentioned XML file... <?xml version="1.0" encoding="UTF-8"?> <form name="mc1.dpp" application-name="mc1.dpp" application-id="34" document-id="1342" producer="Penvision Formidable Application Server" …

Member Avatar for ismael ahm@d
0
2K
Member Avatar for tibormarias

Dear Sirs! I would like to pass the $row[2] from my PHP code below <?php // MySQL mysql_connect("localhost", "", "") or die(mysql_error()); mysql_select_db("") or die(mysql_error()); // Table $result = mysql_query("SELECT * FROM `fillingstations` LIMIT 0 , 30") or die(mysql_error()); // Print while($row = mysql_fetch_array($result)){ echo 'Station name: '. $row[1]; echo …

Member Avatar for diafol
0
299
Member Avatar for shahai.ali

hi i have a following form in html: `<form action="upload_file.php" method="post" enctype="multipart/form-data"> File Name: <input type="file" name="file" id="file" /> <br /> <input type="submit" name="submit" value="Submit" /> </form>` and here is my `upload_file.php` if (($_FILES["file"]["type"] != "file/XML")) { echo "Invalid file type"; } else { echo 'file is uploaded'; } it …

Member Avatar for Robert1995
0
290
Member Avatar for vizz

Here is my code <?php $url="http://www.google.co.in"; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $result = curl_exec($ch); echo $result; ?> When I try to display webpage in div it goes full page. I want to display it only in div which I want. It is not getting code from it's original css …

Member Avatar for vizz
0
2K
Member Avatar for sobias

Hi, Very fast question guys, since tomorrow is my quiz and I have to sleep now. I stompled upon an old question asking to ** remove the root of the AVL Tree** . I never tried that before, after a very fast search, I found this PDF File https://www.student.cs.uwaterloo.ca/~cs240/s10/handouts/tree-examples.pdf ** …

Member Avatar for Taywin
0
7K
Member Avatar for savedlema

Hi all! I have a table with (StudentID,Physics,Chemistry,Total,Average) I want to pull values of Physics,Chemistry and calculate Total and then Average for a specific StudentID. With the following code: "SELECT SUM (IIF(ISNULL([Physics]),0,[Physics])) As Phy, SUM (IIF(ISNULL([Chemistry]),0,[Chemistry])) As Chem, SUM([Physics])+Sum([Chemistry]) as Total FROM tblForm1 WHERE StudentID = '" & Trim(Me.txtSearch.Text) & …

Member Avatar for savedlema
0
1K
Member Avatar for meLiel

**how can i delete a record on a database? im using this codes: Private Sub cmdDelete_Click() Dim con As ADODB.Connection Set con = New ADODB.Connection Dim rsDelete As ADODB.Recordset Set rsDelete = New ADODB.Recordset MsgBox "Are you sure you want to delete?", vbYesNo, "Santo NiƱo Census Info System" ' i …

Member Avatar for RonalBertogi
0
547

The End.