334 Posted Topics
Hi everyone, I've been trying different commands that check inputs that will be entered into the tables I've got. I want to check that Amount/Ename columns can not be NULL. What's <> do in SQL? [CODE] // first command ALTER TABLE Emp ADD CONSTRAINT CK_AMOUNT CHECK ( AMOUNT NOT NULL); … ![]() | |
Hi everyone, I am doing a Java course at uni at the moment and it kinda doesn't make you become a real programmer with the confidence that a programmer should have. I really want to program in Java and any language(not python though because it is not a user-friendly programming … | |
Re: I think w3schools.com is your source of the language you're using. And also, webdesign.about.com could be helpful. | |
Hi everyone; I'm working on a c# service that queries the DB and checks if the right info is available for users. It's an Airline tickets reservation system. I am not sure why my code is breaking after it gets the query and it gives an error about sqlclient.. [CODE] … | |
hey everyone, I'm just having a problem debugging this line and I don't see anything wrong with it. I tried using SelectValue and other ways but nothing seems to be working. The error message I get is that Exception Details: System.FormatException: Input string was not in a correct format. [code] … | |
Re: Nice and easy explanation. I can't add anything to it. | |
hey everyone, I'm just having a problem debugging this line and I don't see anything wrong with it. I tried using SelectValue and other ways but nothing seems to be working. The error message I get is that Exception Details: System.FormatException: Input string was not in a correct format. [CODE] … | |
Hi people, I just re-installed Linux on my machine and I am trying to update it by using the command [CODE] sudo apt-get update[/CODE] and the error messages I get in the terminal are [CODE]Err http://security.ubuntu.com natty-security InRelease Err http://extras.ubuntu.com natty InRelease Err http://security.ubuntu.com natty-security Release.gpg Could not resolve 'security.ubuntu.com' … | |
Hey everyone, I looked around if anyone has the same error. there are people who have had this error, but I couldn't really get to the point that what causes this error to occur. I thought the data types in my table are the reason and I changed them. But, … | |
Hi everyone, I'm just adding these two binary numbers and not sure about the sub-questions(a,b) of the question that are below: Q1 - What is the (5-bit) result of adding the 5-bit unsigned numbers 10001 and 00111? Answer: 11000 Q1a - What is the value of the carry in to … | |
Hello everyone, I'm just having a problem that is stopping me from doiing my work and I've tried fixing it. I don't know what's really wrong with what I've got typed in visual studio. [code] string connString = @"Data Source=.\SQLEXPRESS;AttachDbFilename='C:\..................\Database1.mdf'; Integrated Security=True; User Instance=True"; SqlConnection conn = new SqlConnection(); conn.ConnectionString … | |
Hello everyone, I'm trying to make a small application that checks on submission if a user is human or not by just copying what's shown on a page and submitting it for validation. OK, I have a few errors with this piece of code and am unsure how to fix … | |
G'day everybuddy, I just have a question about how to update a service on the server after changes are made to the code. Cheers, | |
G'day everyone, I just have a few questions about Java programming language. Before getting started with the question, I was actually doing some reading for my java course and there was an implementation of Coffee vending machine in java. Therefore, the questions came to my mind and these are: Do … | |
Hey, I'm getting this error every time I run my program. I dunno what it means and how to fix it. [code] Uncaught error fetching image: java.lang.NullPointerException at sun.awt.image.URLImageSource.getConnection(URLImageSource.java:99) at sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:113) at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:240) at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172) at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136) [/code] | |
Re: The adjective (public) given to a class meaning that it is accessible so you can use this public anywhere in your java project. (int void) means that it will return or give you an integer value. And this method takes/expects a String parameter which is specified in between the brackets … | |
Hey everyone, my if-statements are working as expected. Actually, they are not working at all. The syntax is right but they are never run. The program terminates before it runs them. [code] public static void main (String args[]){ Scanner input = new Scanner(System.in); Display fName = new Display(); // creating … | |
Hello, Are we allowed to assign different values to just one variable? For example, gender = [Female, female, fEmale] so if one a user enters any of the specified ones then he/she will be taken to the next step/level. I'm just doing a tute at the moment and coming up … | |
Hey everyone, Just curious why my little program doesn't go through the if-statement I specified in it. [code] public static void main (String args[]){ Scanner sc = new Scanner(System.in); System.out.println("Enter a value for girls:"); int GIRLS = sc.nextInt(); System.out.println("Enter a value for boys:"); int BOYS = sc.nextInt(); if (BOYS == … | |
Hello everyone, I have a book called "Java Genesis" and it has some files such as packages, projects and hints to enhance learning. So, I have set up a file structure in Eclipse and it shows that there are errors and warnings. When I tried running a Java Application using … | |
Hi everyone, I'm using a mk320 logitech that is connected to my laptop wirelessly. When I want to use the built-in keyboard on my windows7 starter, keys are giving me the values as they're expected to give like pressing button p gives me numeric value and likewise for o,l and … | |
Re: Hi there, To fix your PHP code, [code] <?php echo "My first program and its a failure" ; ?>[/code] a semi-colon was missing. Also, to fix your HTML [code] <head> <title> My first PHP program </title> </head> [/code] Always, try keeping your tags in lower case letters like <head> </head> … | |
Re: They are both database langauages and I think the difference between them is to do with the version of PHP that is used in the application. For example, if you're using the latest version of PHP and that is php5, you will need to use mySQLi because it's the improved … | |
Hi, How are you doin there? I'm just doing an example here. I wanted to access all elements that our user 'George' has. [code]$players = array( 'George' => array('Age'=>20, 'Hair Color'=>'Black', 'Cars'=>array('BMW', 'Toyota', 'Nissan', 'Shitty Cars lol') ), 'Mikayla' => array('Age'=> 16, 'Hair Color'=> 'Bruntte'), 'Mel'=> array('Age' =>21, 'Hair Color' … | |
Hi everyone, I am just having a few issues with Ubuntu system on my machine. It doesn't fix broken packages and everytime, I want to install/remove a software from my machine, it says "can't locate PACKAGE NAME" Now, I want to re-install Ubuntu. I logged into my other OS which … | |
Re: it is safer and cleaner to separate PHP section/query. Therefore, try putting all PHP codes into a PHP file. Then, name it, for example query.php, then put the name into the action attribute of your form. In regard to adding/updating data on your site, I can NOT see any fields … | |
Hi people, I am so interested in learning PHP as it is a powerful language in the web. I know a little bit of PHP so you can say that I've got an intro to PHP at this stage. What I am really struggling the logic of PHP. What would … | |
Re: Line 16 needs a ; it's OK. Sometimes, you write a bunch of lines and when you're trying to run them, you don't find an obvious mistake.But, having someone to look at your code helps a lot. | |
Re: I think you may have to change file size that is specified in your php.ini in the apache server. As I can slightly remember the line, it is " upload size maximum" or something like this. Because by default, it only allows you to upload a maximum of 4 MB, … | |
Re: Just a piece of suggestion for you. I think you should use CSS rather than using CSS properties in PHP because it gets a little harder to debug a piece of combined code. It's like a container inside another inside another. If one was broken, you would have to fix … | |
Re: Absolutely, PHP is just an amazing and powerful language to learn. However,with the goal you're trying to achieve, you will need AJAX (Asynchronous Javascript And XML) and PHP to build a web app that allows users to comment on things and the system get updated asynchronously. Good luck.. ![]() | |
Hey all, I'm just hoping to receive great help from you people.. I'm tryin to fix my PHP coding and it looks good,but the server says that a particular line is broken.. [CODE] <?php $hd = fopen('content.txt', 'r'); $line = fgets($hd); $content = array(); while($line) { $word = explode(',', $line); … | |
Re: Die(); // at the end of your code may be useful. Depending on what you're doing in the PHP coding. ![]() |
The End.