User Profile

Collapse

Profile Sidebar

Collapse
ragonz
ragonz
Last Activity: Jul 18 '10, 12:29 AM
Joined: Jul 22 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ragonz
    replied to Ask substring
    in PHP
    thx for the help. i'll work on it..

    Regards Ragonz
    See more | Go to post

    Leave a comment:


  • ragonz
    started a topic Ask substring
    in PHP

    Ask substring

    Is there any function in php to break down string into its substring

    for example

    String : body
    it will return : "bo" and "dy"

    or return the number of substring of a string

    for example

    String : Miracle
    it will return : 3 substring ("Mi" , "ra", and "cle")

    thx in advance
    Ragonz
    See more | Go to post

  • ragonz
    replied to how to pass string to database query?
    in PHP
    try to
    echo $userLoginID;
    above that line, to see wheteher u fail or not gain the value from the previous page. If not than check ur method to post the data wheter using POST or GET method.

    Regards
    See more | Go to post

    Leave a comment:


  • ragonz
    replied to Create chart
    Found it already

    Seems like i missed place for asking this

    Creating chart is pretty easy. Just googling for php library called "libchart" and follow the instructions...

    Regards
    See more | Go to post

    Leave a comment:


  • ragonz
    replied to set number of decimal in avg() query
    Owh ye, sorry

    Just add the round() in ur query

    ==> select round(avg(temp) ,x) from people group by age;

    'x' is the number of decimal . Hope usefull

    Regards
    See more | Go to post

    Leave a comment:


  • ragonz
    replied to using libchart
    in PHP
    figured it out already... Thx ^^
    See more | Go to post

    Leave a comment:


  • ragonz
    started a topic using libchart
    in PHP

    using libchart

    i'm trying to create chart by using libchart. Here's my code

    Code:
    	include "libchart/classes/libchart.php";
    	
    	$chart= new VerticalBarChart(500,250);
    	
    	$dataSet = new XYDataSet();
    	$conn=OCILogon ("system", "kanjaktim");
    	$sql=OCIParse($conn,"select sto,sum(ano_pri) from rek_anomali group by sto");
    	OCIExecute($sql);
    	
    	while(OCIFetch($sql)){
    ...
    See more | Go to post

  • ragonz
    started a topic Create chart

    Create chart

    What will i need to create chart in my web, based on data from oracle table?

    regards
    See more | Go to post

  • ragonz
    replied to set number of decimal in avg() query
    No need....

    i figured it out already ^^
    See more | Go to post

    Leave a comment:


  • ragonz
    started a topic set number of decimal in avg() query

    set number of decimal in avg() query

    how to set the number of decimal when using AVG() query??
    for example

    select avg(temp) from people group by age;

    the result : 23,13214134

    i wanna make it into : 23,13

    any suggestion??

    thx in advance
    See more | Go to post

  • Hehhee, thx mod. It works
    See more | Go to post

    Leave a comment:


  • ragonz
    started a topic execute php from cmd (undefined function OCILogon)
    in PHP

    execute php from cmd (undefined function OCILogon)

    i tried to execute php file from cmd line. i'm using xampp version 1.67 with windows server 2003 as the OS. it'll also include oracle as the database,which means OCILogon() will be called in my php file and so other functions. i already configured the php.ini so that it connects to oracle. in web page, i can access the database(oracle ). But the problem is, when i tried to execute the php file through cmd line with this code :

    c:\xampp\php\ph p4\php.exe...
    See more | Go to post

  • ragonz
    replied to execute php from c++
    in C
    i figured something, the command in cmd line should be like this

    "c:\program files\xampp\php \php4\php.exe" c:\upload.php

    NOT

    c:\program files\xampp\php \php4\php.exe c:\upload.php

    with quote in the path of php.exe, now the problem is, how to put it in c++ line?
    thx
    See more | Go to post

    Leave a comment:


  • ragonz
    started a topic execute php from c++
    in C

    execute php from c++

    how to execute php file from c++ line? i've tried to use "system()" code, but showed no result.

    from cmd line the command look like this

    c:\program files\xampp\php \php4\php.exe c:\upload.php

    it works in cmd, n i tried to put it into c++ with system() syntax, it looks like this

    system("c:\prog ram files\xampp\php \php4\php.exe c:\upload.php")

    i compile it,...
    See more | Go to post

  • ragonz
    replied to php code no longer hidden
    in PHP
    silly post

    sorry for asking silly question, but where can i find link to post new thread in this forum. i looked for it already, but got no clue. sorry again.

    regards
    See more | Go to post

    Leave a comment:


  • ragonz
    replied to Connections between java and oracle
    in Java
    I'm so sorry, i'm pretty newbie with this. what .jar file did u guys mean? and how to inlcude it in my program's classpath.

    Pretty confused here....
    See more | Go to post

    Leave a comment:


  • ragonz
    replied to Connections between java and oracle
    in Java
    K, here's what i've tried
    Code:
    import java.sql.*;
    
    class TestOCIApp {
    
    	public void main(String args[]) throws ClassNotFoundException, SQLException {
    
    		Class.forName("oracle.jdbc.driver.OracleDriver");
    
    
    
    		Connection conn = DriverManager.getConnection("jdbc:oracle:oci8:@","ragonz","1234");
    
    		Statement stmt = conn.createStatement(
    ...
    See more | Go to post

    Leave a comment:


  • ragonz
    started a topic Connections between java and oracle
    in Java

    Connections between java and oracle

    Hy, i want to use oracle as my database in my java project. But, i don't know how to make connections between java and oracle.

    Can anyone give me an example for this case. Let's say i want to display the result of query "select * from tab" through java

    I'm using oracle 10.g

    Thx n advance
    See more | Go to post

  • ragonz
    started a topic Using variable from aother method
    in Java

    Using variable from aother method

    Hi, i'm kind of newbie in java programming. Now, i'm working on my task, n i hav a problem in using variable from other method. Here goes the code..

    Code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    
    public class Main{
        public static void main(String[] args){
            EventQueue.invokeLater(new Runnable(){
               public void run(){
    ...
    See more | Go to post

  • How to create object (ex:rectangle) in java by using mouse

    Hy, i'm kind of new in java language.

    I want to know, how to create simple object such as rectangle by using mouse. Just like "Paint" program. Can anyone give me simple sample code for that case.

    Thx in advance..
    See more | Go to post
No activity results to display
Show More
Working...