User Profile

Collapse

Profile Sidebar

Collapse
yeshello54
yeshello54
Last Activity: Feb 14 '10, 10:04 PM
Joined: Mar 7 '09
Location: San Diego , CA
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • yeshello54
    started a topic Remote Connection From Windows to Mac OS X

    Remote Connection From Windows to Mac OS X

    Is it possible to use the windows RDP protocol to remotely connect to a mac without downloading or using any other software?? So could it be as easy as changing the settings in mac to allow remote connections and then using the macs IP address in windows remote desktop to connect and control? Or do you have to mess with port forwarding and firewall stuff? Thanks
    See more | Go to post

  • yeshello54
    replied to php and javascript question.
    in PHP
    Oh just thought of something...
    Code:
    document.getElementById("table");
    does this code take multiple parameters so that I could do
    Code:
    var getelement = document.getElementByid("table1",table2","table3")
    or will i have to set a new variable for each button i make to close each table. so will i need to do this
    Code:
    var getelement1=document.getElementByid("table1")
    ...
    See more | Go to post

    Leave a comment:


  • yeshello54
    replied to php and javascript question.
    in PHP
    Thanks Frinny for that great help. I will see what I can do from here.
    See more | Go to post

    Leave a comment:


  • yeshello54
    replied to php and javascript question.
    in PHP
    and also does it make a difference that I have my php inside of my <body> brackets. this is my set up for my .php file

    it goes

    Code:
    <html>
    <body>
    
    *this is where i placed my javascript code
    
    <?php
    
    *inside here i have my tables being echoed in a loop when a search is done.
    
    
    ?>
    </body>
    </html>
    See more | Go to post

    Leave a comment:


  • yeshello54
    replied to php and javascript question.
    in PHP
    thank you. yes i understand that a little bit more. so in my table that i have in my php code should i set the id this way??

    Code:
    echo "<tableborder ='1'>
    echo "TABLE";
    
    <tr id ="tableID">
    <th>"table"</th>
    becuase if i do it like above it wont work
    See more | Go to post

    Leave a comment:


  • yeshello54
    replied to php and javascript question.
    in PHP
    i want to hide/show my whole table.. this is my code for my working table that displays fine when a search is preformed.

    Code:
    $term = $_POST['term'];
    if ($_POST){
    $sql = mysql_query("select * from sequence_data  where name like '%$term%'");
    echo "SEQUENCE_DATA TABLE:";
    echo "<table border='1'>
    
    <tr>
    <th>name</th>
    </tr>";
    ...
    See more | Go to post

    Leave a comment:


  • yeshello54
    replied to php and javascript question.
    in PHP
    i still get nothing..is it a problem that i have my php code inside of my html brackets. because i can place the javascript code anywhere but the second I change <tr> to <tr id=" something"> it wont work.
    See more | Go to post

    Leave a comment:


  • yeshello54
    started a topic php and javascript question.
    in PHP

    php and javascript question.

    So I am confused on where to put things in my code to work right. I found a simple javascript tutorial to add a function so that i can hide and show my php tables. but when i put it all together i cant get it to work. It works fine displaying the table without the javascript added and adding the "<tr id="table"> line of code. I dont know if the javascript is in the wrong place or not.any help would be great.thanks

    ...
    See more | Go to post

  • yeshello54
    started a topic search question
    in PHP

    search question

    hello. I have a question about my search function in my php page. I have a search function that when the user types the ID# in it will return all the data from the database connected to that id#. My problem is that I have over 350 numbers and if I search for instance the number 15 .. it returns all the data for 15,5,150,151. How do I get it to just recognize just the number 15???

    here is the code i use to collect the input number and...
    See more | Go to post

  • yeshello54
    replied to php connection problem
    in PHP
    Yes of course how simple. Thank you.

    solved with one line of code

    Code:
    if ($_POST)
    {
    do something
    }
    See more | Go to post

    Leave a comment:


  • yeshello54
    started a topic php connection problem
    in PHP

    php connection problem

    Here is my problem. I have a small php page that has a search function that returns the table that you search. It works fine . but my problem is that i dont want the data to show up until the user hits search. as of now when you go to the webpage all of the data tables are displayed and dont change untill you submit a new search. Any Ideas on how to fix this..

    Thanks.
    See more | Go to post

  • yeshello54
    replied to java loops
    in Java
    actually i just figured it out..i fixed it with the following:

    Code:
    for(int i=0; i < dataTable.getRowCount(); i++) {
        	int entry = Integer.parseInt( (String) dataTable.getValueAt(i,4));
        	sum += entry;
       	 String total = Integer.toString(sum);
    	total1.setText(total);

    Thanks for your help!
    See more | Go to post

    Leave a comment:


  • yeshello54
    replied to java loops
    in Java
    ok ..i posted print statements to see what was going on. i did a print statement after
    Code:
    sum += Integer.parseInt((String)dataTable.getValueAt(i, 4));
    System.out.println(sum);
    and it prints out 0.

    so is the sum+= not working right??
    See more | Go to post

    Leave a comment:


  • yeshello54
    replied to java loops
    in Java
    ok i got the error to stop..now when it displays the total it just gives a 0.
    the values i had were 50 and 40..

    Code:
    int rowIndex = dataTable.getSelectedRow(); 
             int sum= 0;
                for (int i= 0; i < rowIndex; i++)
                
               
                sum += Integer.parseInt((String)dataTable.getValueAt(i, 4));
                String total = Integer.toString(sum);
    ...
    See more | Go to post

    Leave a comment:


  • yeshello54
    replied to java loops
    in Java
    im must be tired..so i was not paying attention but my getValueAt() returns an object not a string. so does that make things different??
    See more | Go to post

    Leave a comment:


  • yeshello54
    replied to java loops
    in Java
    I think im still a little confused on what to do
    See more | Go to post

    Leave a comment:


  • yeshello54
    replied to java loops
    in Java
    line 469 which is

    Code:
    sum += (Integer)dataTable.getValueAt(i, 4);
    See more | Go to post

    Leave a comment:


  • yeshello54
    replied to java loops
    in Java
    i still get an error of "java.lang.Clas sCastException: java.lang.Strin g cannot be cast to java.lang.Integ er"

    this is my code
    Code:
    int sum= 0;
    
    	 	for (int i= 0; i < Contact.NUM_FIELDS; i++)
    	  		sum += (Integer)dataTable.getValueAt(i, 4);
    			String total = Integer.toString(sum);
    			total1.setText(total);
    See more | Go to post

    Leave a comment:


  • yeshello54
    replied to java loops
    in Java
    sweet thank you. I guess i have more questions on casting. so once i get the value it is stored in an int. I try to use the setText() on one of my textfields. but this functions parameter is only a string. so when i try to convert the int to a string i get a error that says string cant be cast to int..am i doing this wrong??

    Code:
    String total = Integer.toString(sum);
    See more | Go to post

    Leave a comment:


  • yeshello54
    replied to java loops
    in Java
    thank you. But i get an error message when trying to compile. Do you know what this means?? here is my code
    Code:
    int sum= 0;
    	 	for (int i= 0; i < Contact.NUM_FIELDS; i++)
    	  	sum += dataTable.getValueAt(i, 4);
    Prog3.java:368: operator + cannot be applied to int,java.lang.O bject
    sum += dataTable.getVa lueAt(i, 4);
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...