User Profile

Collapse

Profile Sidebar

Collapse
bchaib
bchaib
Last Activity: Mar 14 '10, 09:44 PM
Joined: Jan 27 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • bchaib
    started a topic JSP comparison with PHP
    in Java

    JSP comparison with PHP

    Hello, I think all you can do in JSP is also possible in PHP? What I don't understand well is the differences in time (which is faster), installing and configure difficulty (apache vs tomcat? MySql vs Java DB), charge (hosting, development) and speed.

    Kind regards,
    C.
    See more | Go to post

  • bchaib
    started a topic postgres in java

    postgres in java

    hello
    how to connect my java application with postgresSQL BDMS, I means which connection string do I need and what about the using of SQL ?

    thx
    See more | Go to post

  • bchaib
    replied to What am I doing wrong in this application?
    in PHP
    Hi,
    Thank you so much, it works perfectly but there is a little diference between my code and yours:
    On line 47 you write:
    Code:
    $message = $teller > 1 ?  "Your number is correct! And you have found this in " . $_SESSION['teller'] . " attempts!":  "Your number is correct! And you have found this in 1 attempt!!";
    But I just use the variable $teller:
    Code:
    $message = $teller
    ...
    See more | Go to post

    Leave a comment:


  • bchaib
    replied to What am I doing wrong in this application?
    in PHP
    Yes, I know that I should use POST in stead of GET but this is just a test and simple to test in order to answer my question ..
    Ok, I also thought about session but why does this work for recomend_number and answer but not for teller ??

    I only know the theory and unserstand how to use the session for passing a variable between different pages, I truelly don't know where or how I have to use the session in this example ... ...
    See more | Go to post

    Leave a comment:


  • bchaib
    started a topic What am I doing wrong in this application?
    in PHP

    What am I doing wrong in this application?

    It is just one page called me.php
    [PHP]<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
    <html>
    <head>
    <title>Find the number ...</title>
    </head>
    <body>
    <h3>Find the numer generated by your PC between 1 and 100 </h3>
    <?php

    // I make a counter to save the number of attempts
    if (! isset($teller)) {
    ...
    See more | Go to post

  • bchaib
    replied to What should you use for this project ?
    in PHP
    Hello dear nathj
    I am going to use the list you posted :-)
    1. MySQL as the database
    2. PHP for the dataprocessing server side
    3. JavaScript for client side scripting
    4. AJAX for processing between the client a server side
    5. HTML and CSS for the display.

    Without Ajax because I don't have the basic understanding of this technology and sure I shall ask the questions come up during my exercices....
    See more | Go to post

    Leave a comment:


  • bchaib
    replied to What should you use for this project ?
    in PHP
    Thank you
    But the aim is to explain the ICT words in other language a full explanation or defenition ..

    kind regards
    See more | Go to post

    Leave a comment:


  • bchaib
    replied to What should you use for this project ?
    in PHP
    Yes I forget to tell you something which is very important
    I am not going to translate the words used in the ICT by myself but I want to program the web application for some friends who are going to translate the words and save them into the database.

    Thank youuuu
    See more | Go to post

    Leave a comment:


  • bchaib
    started a topic What should you use for this project ?
    in PHP

    What should you use for this project ?

    I would like to make an online computer dictionary (free :P )

    Some thing like this:

    Computer : saçba shi
    Programming: barmijiti
    HTTP: izi protokoli fantshi intaranti baro misti
    ...

    What should you use to make this one?

    Java Applet
    PHP
    CGI with Perl
    Flash with ActionScript
    Javascript with XML
    ...

    And why ?? I want just...
    See more | Go to post

  • bchaib
    replied to GET POST or which methode should you use ?
    in PHP
    after the php control:
    ............... ............... ............... ...........
    [HTML]<?php
    session_start() ;
    if (!IsSet($_SESSI ON['login'])) {
    header("Locatio n: index.php");
    exit(0);
    }

    ?>

    <!DOCTYPE html PUBLIC "-//W3C//Dtd XHTML 1.0 transitional//EN" "http://www.w3.org/tr/xhtml1/Dtd/xhtml1-transitional.dt d">
    <html...
    See more | Go to post

    Leave a comment:


  • bchaib
    replied to GET POST or which methode should you use ?
    in PHP
    But I get some errors :(...
    See more | Go to post

    Leave a comment:


  • bchaib
    replied to Listbox value in the textbox
    Thanks you very much ..

    best regards...
    See more | Go to post

    Leave a comment:


  • bchaib
    replied to String Array
    in Java
    That is absolutly not a Java implementation, but that's how it works ..

    Implementation you should give a string
    strVar[100] = some string

    thanks
    have a nice day...
    See more | Go to post

    Leave a comment:


  • bchaib
    replied to GET POST or which methode should you use ?
    in PHP
    Thanks, I'm going to do that .. but is that the only solution?
    You have also things like n-tier application, there you should split your application
    into different layers
    HTML with {example} PHP references
    PHP database
    PHP connection
    PHP variables
    ...

    Just like we do using CSS, Javascript and XHTML.

    I'm looking for a good tutorial using this way ..

    Thank...
    See more | Go to post

    Leave a comment:


  • bchaib
    replied to GET POST or which methode should you use ?
    in PHP
    :-) absolutly, I think I'm going to try sessions ..

    Thanks...
    See more | Go to post

    Leave a comment:


  • bchaib
    replied to Köll & Sam Classroom Blog
    in Java
    good choice, java is fun and teaches microsfot to discover the world of oop and runtime ..
    See more | Go to post

    Leave a comment:


  • bchaib
    replied to I would like some Java beginner's material
    in Java
    basic tutorial on the site of sun
    See more | Go to post

    Leave a comment:


  • bchaib
    replied to String Array
    in Java
    If you don't know how many strings you are going to use don't use arrays but arraylists or other classes from collections ..
    When you make this:
    this.gen = new String[];
    you have to tell the memory how many adresses it has to allocate for you array
    for example

    this.gen = new String[453234];
    String[] gen; // declares an array of strings (strings = array of charachters)
    gen=...
    See more | Go to post

    Leave a comment:


  • bchaib
    started a topic Listbox value in the textbox

    Listbox value in the textbox

    Hello all
    I have one list box ans text box on my site, lik this:

    Code:
    <select name="lstScript">
    <option>Javascript</option>
    <option>VBscript</option>
    <option>PHP</option>
    <option>Actionscript</option>
    <option>Other</option>
    </select>
    
    <input type="text" id="txtScript" readonly="yes"
    ...
    See more | Go to post

  • bchaib
    started a topic GET POST or which methode should you use ?
    in PHP

    GET POST or which methode should you use ?

    Good time everyone here
    When I created an account on this site I got this url:
    http://www.thescripts.com/forum/regi...hp?do=register
    So now I have a question about ?do=register and what does this mean ?
    Suppose you have a web page named main.php with some links to different pages with same layout (one table) but different contents depending on what the visitor clicks.

    For example:
    Link 1 leads...
    See more | Go to post
No activity results to display
Show More
Working...