+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: School project.

  1. #1
    Way Cool Dako's Avatar
    Join Date
    Jun 2009
    Posts
    36

    Default School project.

    Hello.
    I need help.
    I have to do a project for my programming class and i don't know what to do.
    I need ideas.
    I was thinking about something like the facebook's comicbook app where you choose your writers/artist/etc and they let you know when an issue is released and stuff like that, but i don't know.

    HELP!!

    thanks in advance.

    PS: i know php and c. But i can learn other things. The project if for October.

  2. #2
    Administrator Mark Seifert's Avatar
    Join Date
    May 2009
    Location
    The Cloud City of Avataria
    Posts
    2,631

    Default

    will you have access to a mysql database also?
    Avatar Press on: twitter | flickr | youtube | avatarpress.com

  3. #3
    Way Cool Dako's Avatar
    Join Date
    Jun 2009
    Posts
    36

    Default

    yes yes, it's like a free project. I can do whatever i want. My skills and imagination are the only limit. xD

  4. #4
    Dean of Cool University Static-Pulse's Avatar
    Join Date
    Jun 2009
    Posts
    2,221

    Default

    The hardest part to this is going to acquiring the data. Where are you going to get your list of issues and creators?

  5. #5
    Way Cool Dako's Avatar
    Join Date
    Jun 2009
    Posts
    36

    Default

    That's one problem and because i was asking for another ideas.

  6. #6
    Administrator Mark Seifert's Avatar
    Join Date
    May 2009
    Location
    The Cloud City of Avataria
    Posts
    2,631

    Default

    here's something:

    you could get the weekly text release listings at diamond's site: http://previewsworld.com/public/default.asp?t=3

    There's weekly listings there back to 2005 so it's plenty of data.

    You could make a program where you could enter a search term like "superman" and get an organized list of what superman issues came out when over the time period. stuff like that. you could also use it to make a bar chart showing how many superman (or x-men, or whatever) comics came out every month and so on.
    Avatar Press on: twitter | flickr | youtube | avatarpress.com

  7. #7
    Dean of Cool University Static-Pulse's Avatar
    Join Date
    Jun 2009
    Posts
    2,221

    Default

    I'll second Mark's suggestion. A program that took all that data and pushed it into a database, with search and graphing features, would be slick. You could build an entire portal around that kind of thing, a lot like HeardOnTV with comments about and links to reviews of the comic.
    Last edited by Static-Pulse; 08-01-2009 at 01:01 PM.

  8. #8
    Way Cool Dako's Avatar
    Join Date
    Jun 2009
    Posts
    36

    Default

    oh thanks, that would be great.
    I'll see what can i do.

    thanks again.

  9. #9
    Way Cool Dako's Avatar
    Join Date
    Jun 2009
    Posts
    36

    Default

    Well, i forgot about this.
    My partner, the one that i have to the project with, reject the idea. But i'm doing it anyway just for fun.

    I found a function that put a the information in a txt into a database.LOAD DATA INFILE
    I'm doing something like this:

    PHP Code:
    <?php
        $connect 
    mysql_connect ("localhost","root",""); 
        
    mysql_select_db ("comic"); 
        
    $sql "LOAD DATA INFILE 'D:\comic.txt' INTO TABLE comic FIELDS TERMINATED BY '\n' ";
        
        echo 
    "done";

    ?>
    I guess i'm doing something wron because it doesn't work. PLease help! ;_;
    comic.txt contains this:
    comic1
    comic2
    comic3
    The table have 1 field. Just for testing.

    thanks in advance.

  10. #10
    Dean of Cool University Static-Pulse's Avatar
    Join Date
    Jun 2009
    Posts
    2,221

    Default

    PHP Code:
    <?php

    $cfile 
    "D:\comic.txt";

    $connect mysql_connect("localhost","root",""); 

    mysql_select_db ("comic");

    $fh fopen($cfile"r");
    $contents fread($fhfilesize($cfile));
    fclose($fh);

    $lines preg_split("/\n/"$contents);

    foreach(
    $lines as $line) {
        
    $sql "INSERT INTO TABLE (column) VALUES('" $line "')";
        
    // your SQL execute command goes here
    }

    mysql_connect($connect);

    exit;

    ?>
    That might work.

+ Reply to Thread
Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts