Thanks tgus.
You don't need the $ sign because I am just grabbing the variable value from the GET associative array
eg www.domain.com/index.php?page=page1
Echoing out the value of $page and indeed the {PAGE} placeholder confirms that the variables are being passed and set.
The problem, it...
Hi - I am using PEAR IT and it all seems pretty straight forward. However, i am tryign to assign a place holder dymanically by using the <!--INCLUDE --> statement, and it doesn't seem to work for me. Basically I am grabbing a page name from $HTTP_GET_VARS[] and then trying to set it to a...
Hi,
Possibly a simple question. I am trying to get away from using the mouse as much as possible (because I find that it slows me down) by using the built in shortcut keys.
The one that I am yet to find a short cut for is how to invoke the 'right mouse click' menus without actually using the...
Cheers Tiago
There is no real purpose to my ImageStack class - it is mainly an exercise to demonstrate wrapper classes. SO I guess I need to make a wrapper for my Images so that they are just passed to the Stack as any other Object would be.
Thanks for your quick reply Tiago.
I have changed my push() method as you suggest, but the compiler throws this error:
--------------------------------------------
C:\Ben\University\cosc1295\lab4>javac ImageStack.java
ImageStack.java:15: cannot resolve symbol
symbol : class Image
location...
Hi - I have written the following class which impliments a Stack:
//ImageStack.java
import java.io.*;
import java.util.*;
class ImageStack implements IsaStack {
private Vector myStack;
public ImageStack(){
myStack = new Vector();
}
public void push(Object o){
myStack.add(o);
}
public...
Thanks idarke - that is exactly what I have done
<code>
//MyCipher.java
public class MyCipher{
public MyCipher(){ }
public String encrypt (String msg){
String toEncrypt = msg;
String encrMessage = "";
char[] arrayOfChars = new char[toEncrypt.length()]...
Hey Rastko,
I take it that you have a specific reason for making the Integer value an Integer object and not just declaring it as a primitive, ie:
int x = 0;
Declaring it as a primitive makes it dead simple to incriment. Using an Integer wrapper class makes it not so straight forward. Once an...
I am new to Java so bare with me! I would like to write my own trivial Cipher class so that I can encrypt message going back and forth from a client / server program that I have written.
The cipher algorithm is super simple. All I want to do is encode/ decode a character on its ASCII value...
New to PHP and MySQL....
I have a form to update data in a specific row. Data types for each of the columns are mostly VarChars but I also have a text field.
When I run an update query such as:
$sql = "UPDATE EMPLOYMENT SET ref='$ref',date='$date',title='$title',desc='$desc' WHERE...
Thanks to both theKobler and scrat for your replies.
I haven't had the chance to do any further work on this, but at least now I have something to go on! Will post again if I need further ideas.
Hi - I am a Java newbie and I need some help in getting started on a problem. I want to create a swing applet thatHas a circle that moves under mouse control. Thats is to say, that when you click on the applet, the circle will start moving toward the position that the mouse was clicked and...
Thanks Jeff
I din't really want to have seperate site for different browsers. The site this is for is written in PHP, so I have used some of the built in functions to handle browser checking on the server side and all is working.
Thanks for your quick post though!
Cheers
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.