Fungus1487 55 Posting Pro in Training

after pressing submit validate fields i.e.

if ($textboxvalue == "") {
  // go back and error
}

then perform an sql request (im guessing you using a database)

"SELECT * FROM databasename WHERE statementnumber = " . $statementnumber . ";";

then check if a result is returned.
if one is then you know you have a result in the database with this number and you can refer the user to whichever page required.

also you will not need to empty any variables as you will always perform this check and if there is a value and they press back it will falg a record is already in the database. Hope this helps

Fungus1487 55 Posting Pro in Training

after pressing submit validate fields i.e.

if ($textboxvalue == "") {

Fungus1487 55 Posting Pro in Training

and that gave me an idea why not share what ive done to all the lovely people out there. encryption http://www.daniweb.com/code/showsnippet.php?codeid=726

Fungus1487 55 Posting Pro in Training

hah i found two (supposed mng applications) both did not work. how can u write an application that doesnt work and distribute it ? i rekon mng will be as trendy as ming the merciless

Fungus1487 55 Posting Pro in Training

you can use any old file even make one up to meet your needs. the best solution would to make an encryption yourself. this could be a really simple one or as complex as you wish to make it. But storing the data shouldnt be too much of a problem. Just make sure you know how you have saved it and how to read from it. A the end of the day all applications are not HACKER PROOF some are just harder to beat than others.

i actually have a encryption class i use in .net which is a pretty easy one. it just converts a string to its hex value perhaps something as simple as this would meet your requirments. there are plenty of tutorials out there that would show you how to do this.

Fungus1487 55 Posting Pro in Training

sounds sensible to me. look into using 'oreg_replace' as you can specify regular expressions to convert the string http://uk2.php.net/manual/en/function.preg-replace.php

Fungus1487 55 Posting Pro in Training

ok well justs think of it logically.

1. load application
2. check current user (i.e. login)
3. find if user has expired (from database or other source that holds signup date
4. if it has expired disable / hide form and show signup for full trial

basically you will need someway of storing the users details about when they first used the app / installed it.

Best way i can see of doing this is via a database of users (as wouldnt you be using a database to login if this was the case anyway ?)

i dont really know what you want all these sections if you dont know how to perform them will be easily found by googling. if you need anymore help just pb.

Fungus1487 55 Posting Pro in Training

im pretty impressed that works but lets be serious who on gods green earth would use that technique ?

Fungus1487 55 Posting Pro in Training

im certain that animating an image in css would require some scripting and as far as im aware css contains no scripting?

Fungus1487 55 Posting Pro in Training

For some reason the stylesheet containing box layout isn't applied in IE.

I mainly use firefox when designing, so it would be best to view the page in that one, but the idea is to also get it working in IE afterwards

majority of people use I.E. wouldnt it make sense to get it to work in that first ? although theres no reason why you cant get something working across all browsers. it just takes TIME and EFFORT

Fungus1487 55 Posting Pro in Training

i see no red on the page ? i see a small green box in the upper left corner. and btw i dont think min-height works in IE or it could be that it works just in IE

Fungus1487 55 Posting Pro in Training

im not saying it is right. but flash has become easier and easier to implement with each subsequent release adding more features and in the world of web2.0 pages higher bandwidth and resources, the overkill of flash or possibly other similiar animation techniques will outway the negative affects.

Fungus1487 55 Posting Pro in Training

i have two forms open in different frames of a page. form1 contains a tree and form2 contains an update method i.e. with text boxes etc to update this tree. is there a way that when i save i can reference the tree in the form1 from form2 ?

Fungus1487 55 Posting Pro in Training

is there any available free calendar swing components available or am i going to have to make one from scratch?

Fungus1487 55 Posting Pro in Training

brilliant thanks

Fungus1487 55 Posting Pro in Training

i cant say ive seen an MNG but if you wish to achieve animation why not just use flash ? i know it requires users to have aplugin, but nowadays id like to bet a good 90% of users have flash installed.

Fungus1487 55 Posting Pro in Training

those people are called the "wannabe" coders who dont wish to put in the time to learn the subject themselves.

Fungus1487 55 Posting Pro in Training

i dont understand which id and class refer to which item, perhaps a link to your page would help ?

Fungus1487 55 Posting Pro in Training

Hello all,

I'm new in here and i want learn something, CSS!.

Well i have some problem for css, i need to know how to make fixed image background, please see my attached file.

please help me for tag and css properties. i really need help. thanks

thanks all.

<HEAD>
  <STYLE type="text/css">
    background-image: url('imageurl.jpg');
    background-repeat: no-repeat;
    background-position: 30% 20%;
  </STYLE>
</HEAD>

you can change the background-postion line to suit where you wish to have your image, or to specify an absolute position use "px" instead of "%"

Fungus1487 55 Posting Pro in Training

well access isnt free lmao. Another LONG alternativie is to use flash/actionscript to achieve this form thing but again that would require a version of macromedia flash.

Fungus1487 55 Posting Pro in Training

well ive been doing some work with object oriented php and came across a question i couldnt answer. can you create a list i.e. similiar to a linkedlist in java or the like in php ?

Fungus1487 55 Posting Pro in Training

so you want it to make this random table every time the php is ran ? this would make anything stored completely irritrievable ?

Fungus1487 55 Posting Pro in Training

i love you

Fungus1487 55 Posting Pro in Training

very sorry. here we go.

<HTML>
  <HEAD>
  <script type="text/javascript">
    function reloadwin(w){
      if (w.closed) alert('window is closed')
      else return setTimeout('reloadwin()', 500)
    }
  </script>
  </HEAD>
  <BODY>
    <script language='javascript'>
      w=window.open('CIPFATree.aspx', 'CIPFA', 
          'width=360, height=160, status=yes, 
          menubar=no, resizable=yes,
          'scrollbars=yes');
      reloadwin(w);
</script>
  </BODY>
</HTML>
Fungus1487 55 Posting Pro in Training

i only need this to work in i.e. and im sure it does but i am getting a "closed is null or not an object" exception message

declared in HEAD::

<script type="text/javascript">
  function reloadwin(w){
    if (w.closed) alert('window is closed')
    else return setTimeout('reloadwin()', 500)
  }
</script>

called in BODY

<script language='javascript'>reloadwin(w)</script>

and sorry i call the window using this

<script language='javascript'>
  w=window.open('CIPFATree.aspx', 'CIPFA', 
  'width=360, height=160, status=yes, menubar=no, resizable=yes,
  'scrollbars=yes');
</script>
Fungus1487 55 Posting Pro in Training

i only need this to work in i.e. and im sure it does but i am getting a "closed is null or not an object" exception message

declared in HEAD::

<script type="text/javascript">
  function reloadwin(w){
    if (w.closed) alert('window is closed')
    else return setTimeout('reloadwin()', 500)
  }
</script>

called in BODY

<script language='javascript'>reloadwin(w)</script>
Fungus1487 55 Posting Pro in Training

say i have form 1 with a method SHOWME() and i want to call this method from form 2 (seperate window) cant his be done?

Fungus1487 55 Posting Pro in Training

ive done some research looking into this but cannot figure out a method to suite my situation.

i have an index.htm page this contains an Iframe containing another html page seperated using a frameset (just 2 frames) lets say '1' and '2' for example. I also have another window open. I wish to input a value into this 3rd window then pass this value all the way down to frame'2' without reloading the the index and frameset page using GET. can anyone help

for clarity

INDEX
----- FRAMEPAGE (visible as iframe in index)
------- FRAME 1
------- FRAME 2

please any help would be appreciated

Fungus1487 55 Posting Pro in Training

hmmm i dont see what is actually going wrong. why not print out everything the result returns and see if that works then move on from there ?

while ($row=mysql_fetch_array($r2)){
   foreach ($row as $value) {
      print($value + "<br>");
   }
}
Fungus1487 55 Posting Pro in Training

you have to use the escape "\" when entering a " qoutation mark inside a string otherwise it will close the string and you cant write a link without using a qoutation mark i.e.

<A href="...">somwehere</A>

otherwise i dont see how you could link it in the first place ?

and it is a backslash \
not a forward slash /

Fungus1487 55 Posting Pro in Training

woops i mean

print ("<tr><td><a href=\"morder.php");
print ("?p_id=");
print($row['id']);
print("\">");
print($row['p_name']);
print("</a></td>");
Fungus1487 55 Posting Pro in Training

your links wrong to start with

print ("<tr><td><a href\"=morder.php");
print ("?p_id=");
print($row['id']);
print("\">");
print($row['p_name']);
print("</a></td>");

what is $p_id a number or a string ?

Fungus1487 55 Posting Pro in Training

i have no clue of how to do this in JAVA but i am 99% certain you will not have to be logged in to do this you just use the userID value in the POST method which dani web send via a hidden input box i believe after looking at the html briefly daniweb uses the posthash input box to determine which thread to post in. just ismply firing this without telling it which thread it is in will not work. as if dani web have done their job correctly (and from the high quality of this site i presume so) they would have setup the databse to reject null entries in such fields.

Fungus1487 55 Posting Pro in Training

okidoke. content management, simply retrievieving / deleting / editing data in databases (oracle, ms access and IBM db2) also uses crystal reoprts using the data from these databases. That is essentially what the main application does. It also has sub sections such as GIS (similar to google maps) which uses cad drawings and an active x control to display it on the screen.

Fungus1487 55 Posting Pro in Training

yer i understand that it will all have to be done by hand but just wondered if there are any obvious problems when doing this that i can plan for.

Fungus1487 55 Posting Pro in Training

ok ive just started work for a company and second day in they have asked me whether its possible to convert there entire VB6 applications suite to asp.net making it available to run online for their clients. This is my first job outside uni and having played around with asp.net i feel this can be done. Ive been given a floating deadline of 9 months to complete this project which could benefit the company with alot of client interest. So are there any pointers / guides / ways i should go about planning this other than planning a normal project ? thanks for any help

Fungus1487 55 Posting Pro in Training

cheers, thats really helped. i didnt actually know it existed.

Fungus1487 55 Posting Pro in Training

????whuuh????

Fungus1487 55 Posting Pro in Training

i have a GUI application that needs to check that it is connected to a database every 30 - 60 secs. can this be done with java threads or do i need to look somewhere different. obviously i need the application to be fully useable whilst it is performing this.

Fungus1487 55 Posting Pro in Training

school boy error. sorry

Fungus1487 55 Posting Pro in Training

formatted text field supplys all you need to do this ?

it will defnatel do what you want it to.

if you have a go and post code then we can show you what your doing wrong.

Fungus1487 55 Posting Pro in Training

ok you want to do this with javascript heres a tutorial which should help alot http://www.tutorialized.com/tutorial/Drop-Down-Menu-Tutorial/1361 if you have no experience of using javascript it could take a while to grasp the tutorial but stick with it and youll have a fully working menu system that works well with your site.

Fungus1487 55 Posting Pro in Training

right MS Access is balls compared to other DB's i know but im working on a project which already uses an Access DB. Now after writing the following eclipse gives me a lovely error which im yet to figure out. Googling has thrown up people with similiar problems but no fix for me. can anyone help?

Error thrown...

Exception  : [Microsoft][ODBC Driver Manager] Invalid cursor state
Stack trace: [Ljava.lang.StackTraceElement;@e09713
Cause      : null

My Code...

try {
				Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
				con = DriverManager.getConnection(Settings.mysqlDetails());

				if (!con.isClosed()) {
					System.out.println("Connected to database '"
							+ Settings.mysqlDetails() + "'");
				}

				Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);

				ResultSet rs = stmt.executeQuery("SELECT * FROM `AppProjects` WHERE `appID` = " + id);

				Application app = new Application();
// FAILS FROM HERE ONWARDS
				app.appID = rs.getInt("appID");
				System.out.print("1");
				app.staffID = Integer.parseInt(rs.getString("staffID"));
				System.out.print("2");
				app.customerID = Integer.parseInt(rs.getString("customerID"));
				System.out.print("3");
				app.datePaid = Convert.readDate(rs.getString("datePaid"));
				
				app.print();
				rs.close();

				return true;

			} catch (Exception e) {
				Convert.exceptionToMessage(e);
				okFlag = Prompt
						.yesNo("Would you like to attempt this action again ?");
			} finally {
				try {
					if (con != null) {
						con.close();
					}
				} catch (SQLException e) {
					Convert.exceptionToMessage(e);
				}
			}

i tried adding a rs.first() to point to the first result but nothing ? help please

Fungus1487 55 Posting Pro in Training

i dont understand what you mean by needing a value for the stick() etc. why do you need to run stick at the start ? cant you just say stick(-1) and run a check in stick to see if -1 was entered and tell it to do what you want i.e. bypass the method ? but maybe you can clarify what you want it to do ?

Fungus1487 55 Posting Pro in Training

ok what format are you storing the images of the cards or are you drawing them using java ?

if you are loading them in, then you have two options. load them all at runtime of your GUI this way you wont have any wait time whilst playing the game but will obv take longer to load the app [you could achieve this by loading them into an array for example]. Or you can load them on the fly as you go along this will free up the load time at beginning.

this code will work for both.

import java.awt.Image;
import java.io.File;
import javax.imageio.ImageIO;


Image[] cards = new Image[52];
try {
cards[0] = ImageIO.read(new File("card.jpg"));
} catch (Exception e) {
System.out.println(e);
}

for it to work and load all you will need to add a loop.

showing the image in the GUI is the easy part. just simply create a JLabel wherever you wish thte image to be and use the following

JLabel.setIcon(new ImageIcon(cards[0]));

hope this helps if ive understood your question right

Fungus1487 55 Posting Pro in Training

what is on(release) ?


I think what you want is:

< .... onclick="gotoAndStop('scene x')">

similiar action as on click except it fires when the mouse is released

Fungus1487 55 Posting Pro in Training

digg.com under the labs section here http://labs.digg.com/ they have a real time news casting system, its great just try afew of them out and ull see how good the system is.

Fungus1487 55 Posting Pro in Training

ok im looking to upgrade to vista sometime in the next 12 months, and am wondering whether to take the plunge now. Most people will say wait for the service pack to iron out the kinks but what is your reaction abotu vista ? Im looking to buy the business / ultimate edition as i will need the extra features not supplied by home edition but pricing up at around $260 on microsofts website (im guessin after i upgrade everything to run it properly more like $500) is it worth it ?

Fungus1487 55 Posting Pro in Training

i have created websites for clients for some time now but recently i have found it difficult to add that little extra to a project to make it unique from all those that surround it. I wanted to know what you lot do to get the old juices flowing and design a website. How you motivate yourself, get the cogs turning and get into the creative spirit.

kanaku commented: great discussion. I wish it had more posts though... +2
Fungus1487 55 Posting Pro in Training

funnliy enough this happend to me too. Im not running win 2k but have u assigned any more drives recently ? As my computer used to set the usb stick to E: but since a network drive was regsitered as that it hasnt worked since, yet works on other comps ? sorry that another question and not an answer lol