i have a project and i am trying to make it to jar files so i can run it from anywhere. problem is that i am trying for 3 weeks and its not working for me. i tried look up online but nothing works.

if i send you my project can some one plz make it to runable jar file? let me know if you can help me out and i can email you the project.

thanks

on mac is there a different way to turn eclipse project to runable files?

i right click on project and select export. than i went under java than runnable jar files. this lanuch a "runable jar file export" window. on it there is "lancuh configuration" option. when i click on it, its empty i cant choose any thing.

so i on "run configurations" window. right on "new lanuch configuration". i fill the project and applet. then i went back to "runable jar file export" window and still nothing. i cant select any thing.

may be there something different on mac side i am doing wrong. any ideas?

You can't write a query for this plus creating a table?

next time read before posting a comment. :)

commented: I read you comment very closely -2

so iam create a ecommerce base site. where user can buy stuff. i need some help with coming up a good database structures. so far i got 5 tables.

here is what iam thinking:
"user" table to keep track of users
"user_info" table to keep there detial inforamtion
"billing" table if they want to buy a item
"item" table info about item
"cart" table - not sure about this one.

-------
user
-------
user_id 
user name
password

-------
user_info
-------
user_info_id
user id
item_brought    //int array?
first_name
last_name
dob

-----------
item
----------
item_id
item_name
item_des
...

--------
billing
-------
billing_id
user_id
email
area_code  primary_phone
street_address
apt, suite, bldg.(optional)
zipcode
country
state
city

----------
cart
--------
cart_id
user_id
Quantity
color
size

let me know if i could add more tables or if there is a better way to create tables.

i though i should try again.. i tring to display all the images of user who is loged in. my database called image: which has
image_id
user_id
image(type long blob)(stores image here)
image_full_name
---etc
i have two files gallery.php where iam trying to display the images and it uses a image.php file.

i am getting these two error with i dont know how to fix them.

Notice: Undefined index: id in C:\xampp\htdocs\login_test\image.php on line 4

Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\login_test\image.php on line 7

image.php

<?php
    session_start();
    include("connect.php");
    $id = $_GET['id']; 
    $sql = "SELECT image FROM image WHERE image_id = $id";
    $result = mysql_query($sql);
      if ($row = mysql_fetch_assoc($result)) //should only be one record
    {
        $imgdata = base64_decode($row[image]);
        header("Content-Type: image/jpeg");
        header("Content-Length: ".strlen($imgdata));
        echo $imgdata;
    }
?>

gallary.php=====================================================================================================

<?php
session_start();
include("connect.php");

$user = $_SESSION['username'];
$id = $_SESSION['user_id']; //get user_id who ever is loged in
if($user)  //is user is loged in 
{               
    //select images from database
    $sql = "SELECT * FROM image WHERE user_id = $id ORDER BY image_id DESC";
    $result = mysql_query($sql);

    /*** table which holds images ***/
    echo "your gallery<br/><br/><br/>";
    echo "<a href='upload.php'>upload image</a>";

    echo "<table>"; // Your table
    echo "<tr>"; // first table row
    $count = 0;
    while($row = mysql_fetch_assoc($result))
    {
            echo '
                <td>

                    <img src="image.php?id='.$row['image_id'].'" />
                </td>
                ';

            $count++;
            if($count == 5)       //6 rows
            {
                echo "</tr><tr>"; // Start a new row at 6 cells
                $count = 0;
            }
    }
    echo "</tr>";
    echo "</table>";
    echo "<a href='index.php'>home</a><br/><br/><br/>";
}
?>

can you read?

WHAT PART OF "DONT WRRONG ABOUT SYNTAX" YOU DONT UNDERSTAND?

AND STOP WASTING MY TIME MAN. IF YOU CANT UNDERSTAND WHAT IAM TRYING TO DO, THAN STOP TRYING TO HELP ME. YOU ARE MAKEING NO SCENE.

commented: ROFL "you are making no scene" +0

First of all, i do not care about syntax error. i just need help with logic.

2nd of all, if you really had read my post you would have understand that i am trying to build a data struct that stores data from file.

VISH0203, I SUGGEST THAT YOU SHOULD READ MY POST BEFORE POSTING.

int main (void)
 {
  char ch;
  int num = 0;

  //get char
 while((ch = getchar()) != '\n')
    {
        //if its between 0 and 9
      if((ch >= '0' && ch <= '9'))
        {
           num = (int)ch - '0';        //convert in to int
           }
      }
      }
commented: code remembers only single digit not whole integer! +0