Hi I did a Simpletron program in GUI interface, but when I want to print the instructions in the window, it will not be as I want to. I used JGrasp to run the program and it just prints the instruction after each and not the way I wrote it in the program. For instance I want the program to be like: *** Welcome to Simpletron! *** ***Please enter your program one instruction*** ***(or data word) at a time into the input*** ***text field. I will display the location*** ***number and a question mark (?). You then*** ***type the word …

Member Avatar
Member Avatar
+0 forum 8

This is the project I need to finish. I am fairly new to php and this project has got me confused. Any help would be greatly appreciated The project ask for to validate ISBN 10 Number. There would be 10 digits with 1-9 being Numbers, but Number 10 is an x. This is What I have so far: This is the input page or html page: <form method="POST" action="Process10ISBN.php"> <p>Enter the ISBN 10: <input type="text" name="isbn10" /></p> <input type="submit" name="Submit" value="Submit" /> </form> This is what I have so far for the Procssing page to validate ISBN 10: <?php if …

Member Avatar
Member Avatar
+0 forum 1

Ok so im working on a script that reads a large file then splits it up into seperate files using the field in it called PC Number. What im wanting to do is check if the file already exist if it does then it just appends the new data but if it doesnt it writes a new file with headers and everything. If there is a simple way to do this i would b greatly appriciated to know how to do it cause so far its got me really confused. Below is the the code that im useing to read …

Member Avatar
Member Avatar
+0 forum 4

Using Visual Basic 10, and I am trying to identify min/max statistics and display the results. My calculations are working, but the display is not (line 68 & 80). With the way the code is written now, I don't get the error but my results are displayed as "The minimum monthly rainfall was *correct result* ("*g*"). "g" should be the month that corresponds to the minimum monthly rainfall. The same issue occurs on the maximum display. The line was initially written as *lblMinMonthly.Text = ("The minimum monthly rainfall was " & intMinRainfall.ToString() & "(" & strMonths(Me.intCount) & ")")* but received …

Member Avatar
Member Avatar
+0 forum 4

Hi friends, I am working with library managemnt system. I have a doubt.. I m adding 1 book copy to the library. after borrowing how to reduce copy to 0. and change the status??

Member Avatar
Member Avatar
+0 forum 2

Hi I would like to make more use of the browser developer tools. However, there is little documentation that I can find. I am sure that someone must have written a simple guide to error checking using these tools. I suppose there is no market for a book. Foyles bookshop was, and may still be, the largest bookshop in the World and back in the 1960s the English department was the largest but then the Computer department took over. Computer books become obsolete quickly. Unfortunately, that means that help in using programs is decentralised and finding help depends on typing …

Member Avatar
Member Avatar
+0 forum 4

User is supposed to type an input, and if it's not an integer, the user needs to type another. This repeats 3 times for 3 inputs which go inside an array. The integer checking works, but the problem is that when i display the 3 integers, they are all the same number (the first correct input). Idk what's wrong. I've tried cin.clear() and cin.sync()... for(int i=0;i<3;i++){ cout<<"Enter your "<<text[i+6]<<": "; cin.sync(); cin.clear(); cin>>inInt[i]; if(!cin){ cout<<"\nPlease enter a valid integer."; i--; system("pause");} system("cls");}

Member Avatar
Member Avatar
+0 forum 1

Below is a documented code example showing how to use the SQLite3 class to connect and query your database (and check for errors). IMHO using PDO is a better alternative, as this extension uses mixed technology in a non-standard way (objects, arrays and exceptions). If there are any questions let me know.

Member Avatar
+2 forum 0

I am trying to see if a directory exists, but have not found anything that is working the way is I would like it to. The PHP script is in the same directory as the folders I am checking for ( www ), but will not detect the folders unless I type out the full path. (( I apologize for clumping the code together to save space )) <html> <title>Test Server</title> <?php $Var1 = "\Player\Rick"; $Var2="C:\wamp\www\Player\Rick"; # This Will Not Work if ( is_dir($Var1) ){echo "Yes 1 <br>" ;} else{echo "No 1 <br>";} # This Will Work if ( is_dir($Var2) …

Member Avatar
Member Avatar
+0 forum 3

Hello so i have been making a program and decided to start on error checking. I'm asking the user to input a 1 to continue and a 2 to exit simple. I worked the code out for the error checking though when i compiled and ran the program all it did was go into a endless loop. here is the code where the error is occuring. //these are what the variables are declared as double ran=0; int error=0; errorcheck: error=false; if(ran!=1 || ran!=2) { error=true; } while(error==true) { system("cls"); //it gets stuck in here it wont allow me to enter …

Member Avatar
Member Avatar
+0 forum 9

question is: Give 5 type checks that should be made for the following c++ statement: x=f(v[i]); NOTE: assume x, f,v and i are all declared and in scope. 1. compatibility check (compile time) 2. v[i] is a valid array element. (compile time) (i.e. (i is not a float or something)) 3. bounds checking for the array v[i] 4. ? 5. ? NOt sure what other checks I would be able to do? Seems like all possible. any help is greatly appreciated. Thanks.

Member Avatar
Member Avatar
+0 forum 5

Below is a documented code example showing how to use the [PDO](http://php.net/pdo) classes/objects to connect and query your database (and check for errors). If there are any questions, or you want to see different features, let me know. UPDATE: I've encountered a problem with PDO and bit fields (MySQL). If you experience any problems with those I suggest changing the column type to TINYINT(1).

Member Avatar
Member Avatar
+2 forum 1

Below is a documented code example showing how to use the [MySQLi](http://php.net/manual/en/book.mysqli.php) (MySQL improved) classes/objects to connect and query your database (and check for errors). If there are any questions, or you want to see different features, let me know.

Member Avatar
+5 forum 0

Below is a documented code example showing how to use the [MySQL functions](http://php.net/manual/en/book.mysql.php) to connect and query your database (and check for errors). Please note that using the MySQL extension is **NOT RECOMMENDED**. This extension is no longer maintained and will be deprecated soon. If you want your scripts to be future proof it is better to switch to [MySQLi](http://www.daniweb.com/web-development/php/code/434480/using-phpmysqli-with-error-checking) or [PDO](http://www.daniweb.com/web-development/php/code/435142/using-phppdo-with-error-checking). If there are any questions, or you want to see different features, let me know.

Member Avatar
+3 forum 0

Hi folks, just a queary about checking chars. I have a char[] variable. I ask the user a question and the user types a response and presses enter. I need to check the variable to see if it said particular things and more importantly if it said nothing. #include <iostream> #include <fstream> using namespace std; char _cFileName[100]; int main() { cout<<"Enter the name of the file to open or press enter for HELP: "; cin>>_cFileName; if(_cFileName == 'HELP') { cout<<"DISPLAY HELP FILE"<<endl; system("PAUSE"); return 0; } if(_cFileName == '') { cout<<"DISPLAY HELP FILE"<<endl; system("PAUSE"); return 0; } ifstream infile("data.txt"); cout<<"Your …

Member Avatar
Member Avatar
+0 forum 6

We all know how to open a mailbox using `imap_open`. Here the problem is i'm creating a maill system here. I'm not able to find to create a mail account with `imap/pop3` in `php`. Is it is possible ? Assume suppose my domain is www.studentmug.com. I want to create a mail for another user with out using cPanel. Ex:- `radhakrishna@studentmug.com`. I'm not finding any script for it. could any one got this problem ? Thanks in advanse.

Member Avatar
Member Avatar
+0 forum 6

Hello masters, I want to know how to check an empty textbox in the form. I can check it by assign Text1.Text = "". But i have many textbox in form. Thank you in advance

Member Avatar
Member Avatar
+0 forum 2

Hi guys well my code is below I am trying to set up error checking so that CREATETABLE will only execute when String v and string d are false and when string t is true. I've started the code. Which it works when String v or String d are null so what else would I need to do or change to get it to work when string v,d are false. Thanks for any help you can give: [CODE] String t = TABLENAME.getText(); String v = colum1NAME.getText(); String d = colum2NAME.getText(); if (e.getSource() == CREATETABLE) { if (v.equals("") ^ d.equals("")) { …

Member Avatar
Member Avatar
+0 forum 4

Hi guys! I'm back with more problems! I've tried everything... I just can't seem to get it to work. :( Okay, a short explanation of what the goal is. I have 5 buttons, and a list of records which are pulled from the database. Import CSV Create Edit Delete View Details Each one runs through a validation check to make sure the radio button (which is assigned the value of the employee ID in the database) - then it performs the action submit and submits to X php file to do the deed. For some reason though, I'm getting quite …

Member Avatar
Member Avatar
+0 forum 1

I am trying to create a page where a registered user can go, view the information from their profile, and update that information if necessary. I've started putting something together however it's inefficient in my opinion. Here's what I'm trying to figure out: [LIST=1] [*]Is there a way to check if a change has occurred in each field before it updates the DB? It seems to me that there's no need to update everything when maybe only 1-2 items has changed. [*]I have a state drop down box which is created from the DB. I currently have it set to …

Member Avatar
Member Avatar
+0 forum 3

ok so what does this do.. 1.) read the text file(most likely a c++ code in text form) line by line and display it line by line... 2.) (as the title says) check for syntax errors. ( only minor ones like missing ";" or a lack of closing braces) soooo..... [CODE] #include <iostream> #include <fstream> #include <cstdlib> using namespace std; void main() { ifstream readFile("check.txt"); if(!readFile) { cout << "Please check the file's existance"<<endl; exit(1); } char read[999]; while(readFile) { readFile.getline(read, 999); if(readFile) cout << read << endl; } readFile.close(); } [/CODE] sadly.. I don't know how to verify if …

Member Avatar
Member Avatar
+0 forum 4

[CODE] DELIMITER $$ DROP PROCEDURE IF EXISTS `AddTranMast` $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `AddTranMast`(mDocDt date,mDocType CHAR(2)) begin declare mDocNo char(5); declare Code double; select max(docno) into Code from tranmast; if code=00000 then set mDocNo=00001; else set Code=(100000+Code+1); set mDocNo=substring(Code,2,5); end if; insert into tranmast(docno,docdt,doctype) values(mDocNo,mDocDt,mDocType); end $$ DELIMITER ; [/CODE] I want to check whether the Max(Code) is NULL for blank database [if code=00000 then]. But It is generating Error : mDocNo can't be NULL. as I think the max(docno) is generating NULL value as the Database is blank now. Please help me. Suggest me a way to check the NULL …

Member Avatar
Member Avatar
+0 forum 1

The End.