Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: What are some programs i can use to create a database?

  1. #1
    Join Date
    Mar 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default What are some programs i can use to create a database?

    Hello,

    What are some programs i can use to create a database


    Mario123

  2. #2
    Join Date
    Feb 2007
    Location
    Earth
    Posts
    133
    Thanks
    6
    Thanked 1 Time in 1 Post

    Default

    mysql? phpmyadmin

  3. #3
    Join Date
    Mar 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I have tried to download phpmyadmin but some dreamweaver files open up there is no exe or other installation file.

    Mario123

  4. #4
    Join Date
    Feb 2007
    Location
    Earth
    Posts
    133
    Thanks
    6
    Thanked 1 Time in 1 Post

    Default

    i suggest downloading wamp

    www.wampserver.com i believe, then you can put your test files in the www folder and access phpmyadmin easier

  5. #5
    Join Date
    Mar 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks

  6. #6
    Join Date
    Jun 2006
    Location
    Acton Ontario Canada.
    Posts
    677
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    phpmyadmin is only a php module that manages mysql...(Meaning, its only a set of php files.)

    i rarely use an SQL DB.

    I prefer flat file DB myself..
    Ive found there's less code involved and they only en=mploy php or whatever other server side language you want.

    For example, my comment system.
    "Submit.php"(includes directory)
    PHP Code:
    <hr /><?php
    if ($_POST['opt'] == "sub") {
      
    $bad = array("#","|");
      
    $gtlt = array("<",">");
      
    $ampcode = array("&lt;","&gt;");
      
    $name $_POST['name'];
      
    $mail $_POST['mail'];
      
    $text $_POST['text'];
      if (
    $name == "") {echo "Name Required.";}
      else {
        
    $name str_replace($bad " " $name);
        
    $mail str_replace($bad " " $mail);
        
    $text str_replace($bad " " $text);
        
    $all $name ."|"$mail ."|"$text ."\r\n";
        
    $fin stripslashes(str_replace($gtlt $ampcode $all));
        
    $prev file_get_contents("comment.txt");
        if (
    $prev == "") {
          
    $combined $fin;
        } else {
          
    $exploded explode("#"$prev);
          
    $done array_merge(array($fin), $exploded);
          
    $combined  implode("#"$done);
        };
        
    $handle fopen("comment.txt","w+");
        
    fwrite($handle $combined);
        
    fclose($handle);
        echo 
    "Comment Posted.";
      };
    } elseif ((
    $_POST['opt'] == "del") && ($_POST['pass'] == "mod password")) {
      if (
    $_POST['num'] == "wipe") {
        
    $handle fopen("comment.txt","w");
        
    fclose($handle);
        echo 
    "Deleted.";
      } else {
        
    $delnum $_POST['num'];
        
    $contents file_get_contents("comment.txt");
        
    $contents explode("#" $contents);
        unset(
    $contents[$delnum]);
        
    $towrite implode("#" $contents);
        
    $handle fopen("comment.txt","w+");
        
    fwrite($handle $towrite);
        
    fclose($handle);
        echo 
    "Comment "$delnum ." Deleted.";
      };
    } else {echo 
    "Invalid Option.";};
    ?><hr />
    "Veiw.php"(base directory)
    PHP Code:
    <div style="width:400px;margin:0 auto;">
    <a href="URL To Forms...">Post A Comment</a>
    <?php
    $full 
    file_get_contents("includes/comment.txt");
    $ready explode("#"$full);
    $count "0";
    while ((
    $count >= "0") && ($count <= count($ready)-1)) {
    echo 
    "<hr />";
    $set explode("|"$ready[$count]);
    echo 
    $count ." - "$set['1'] ." <b>"$set['0'] ."</b>\r\n";
    echo 
    "<div>"$set['2'] ."</div>\r\n";
    $count++; };
    ?></div>
    Formsbase directory)
    HTML Code:
    <h4>Add A Comment</h4>
    <form action="includes/submit.php" method="post">
    <div><input type="hidden" name="opt" value="sub" />
    Name:<input type="text" name="name" /><br />
    Title:<input type="text" name="mail" /><br />
    Entry:<textarea name="text" rows="10" cols="40"></textarea>
    <br />
    <input type="submit" value="submit" /></div></form>
    <hr />
    <h4>Delete A Comment</h4>(Disregard This, Moderates Comments)
    <form action="includes/submit.php" method="post">
    <div><input type="hidden" name="opt" value="del" />
    Number:<input type="text" name="num" />
    Password:<input type="text" name="pass" />
    <input type="submit" value="submit" /></div></form>
    - Ryan "Boxxertrumps" Trumpa
    Come back once it validates: HTML, CSS, JS.

  7. #7
    Join Date
    Feb 2007
    Location
    Earth
    Posts
    133
    Thanks
    6
    Thanked 1 Time in 1 Post

    Default

    your welcome

    boxer that would work as well but who has the time to code all that when you can just use phpmyadmin :P

  8. #8
    Join Date
    Jun 2006
    Location
    Acton Ontario Canada.
    Posts
    677
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    ...

    for making a web application, a flat file DB is easier to code...

    You cant use phpmyadmin to create webapps... only the SQL code that the apps use.

    And that took me less than an hour to code, test, and implement.
    - Ryan "Boxxertrumps" Trumpa
    Come back once it validates: HTML, CSS, JS.

  9. #9
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Also, if you want to manage your own database with your own program, you don't have to mess with any kind of manager, or program download. I find that writing my own scripts for viewing/editing/updating databases are much easier.
    - Mike

  10. #10
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    for making a web application, a flat file DB is easier to code...
    Until you have to do something remotely complex. Then you find yourself essentially implementing a SQL server. Let's not forget the performance hit, too. All in all, you're much better off with a real SQL server (or even just with sqlite).

    All SQL implementations of which I know come with a client that allows one to enter queries directly. These are quite sufficient for creating databases.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

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