Closed Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: hi i found out the problem by myself without google.ca :p

  1. #1
    nicnicnic is offline Newbie
    Join Date
    Nov 2008
    Posts
    16
    Rep Power
    0

    hi i found out the problem by myself without google.ca :p

    Code:
    <html>
    <head>
    <title>Download Image</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>

    <body>
    <?php
    $connection 
    mysql_connect("localhost","root","") or die("impossible de se connecter au serveur mysql.<p>Veuillez réessayer plus tard");
    $res mysql_select_db("upload2") or die("impossible de sélectionner la base de données <b>ecole</b>.<p>Veuillez réessayer plus tard");

    $requeteStr "SELECT name,texteNouvelle FROM upload2";
    $resultatRequete mysql_query($requeteStr) or die("la requete de sélection a échoué.<p>Veuillez réessayer plus tard");


    while (
    $row mysql_fetch_array($resultatRequete)) 
         {
    ?>
        <img height="300" src="<?echo $row['name']?>">
    <?php           
        
    echo $row['texteNouvelle'];
        }
    ?>
    </body>
    </html>
    the problem was that i was echoing out the path but what i need it to do was to echo the image name <img height="300" src="<?echo $row['name']?>">
    but ty for these little tips it has help me out

    and lol when i query the select results twice i laugh it too LOL

    so just relax and have fun now

    if you want i will show you how i will animate my news when it will be done

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Jordan Guest

    Re: hi i found out the problem by myself without google.ca :p

    Please use code tags when posting code. Nice work on solving the problem, is this in reference to another question you have already asked?

  4. #3
    nicnicnic is offline Newbie
    Join Date
    Nov 2008
    Posts
    16
    Rep Power
    0

    Re: hi i found out the problem by myself without google.ca :p

    yeah Jordan but the thread of before was " problem showing up an image "
    has been locked thats why i start a new one so you guys can see it

    anyway no big deal i dont like trouble

    and sry about the tag i forgot to add it

  5. #4
    Jordan Guest

    Re: hi i found out the problem by myself without google.ca :p

    Can you post a link to the thread? Odd that it was locked and not resolved.

  6. #5
    Join Date
    Jul 2006
    Posts
    16,478
    Blog Entries
    75
    Rep Power
    143

    Re: hi i found out the problem by myself without google.ca :p

    It's this thread: http://forum.codecall.net/php-forum/...-up-image.html

    I couldn't get the merge to work for some reason.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  7. #6
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20

    Re: hi i found out the problem by myself without google.ca :p

    nicnicic, thanks for coming back and sharing your solution.

  8. #7
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    Re: hi i found out the problem by myself without google.ca :p

    I HATE your code, nicnicic.

    Try this instead:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">

    <head>
    <title>Download Image</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>

    <body>
    <?php
    $connection 
    mysql_connect("localhost","root","") or die("impossible de se connecter au serveur mysql.<p>Veuillez réessayer plus tard");
    $res mysql_select_db("upload2") or die("impossible de sélectionner la base de données <b>ecole</b>.<p>Veuillez réessayer plus tard");

    $requeteStr "SELECT name,texteNouvelle FROM upload2";
    $resultatRequete mysql_query($requeteStr) or die("la requete de sélection a échoué.<p>Veuillez réessayer plus tard");


    while (
    $row mysql_fetch_array($resultatRequete)) 
         {
    ?>
        <img height="300" src="<?echo $row['name']?>">
    <?php           
        
    echo $row['texteNouvelle'];
        }
    ?>
    </body>
    </html>
    Last edited by John; 11-18-2008 at 03:46 PM.

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

  9. #8
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20

    Re: hi i found out the problem by myself without google.ca :p

    Xav, use PHP tags when posting PHP -rep for you mister. And maybe he doesn't want his code to be xhtml strict. The top 5 most popular websites: yahoo, google, youtube, live, and facebook are not xhtml compliant.

  10. #9
    Jordan Guest

    Re: hi i found out the problem by myself without google.ca :p

    Quote Originally Posted by WingedPanther View Post
    It's this thread: http://forum.codecall.net/php-forum/...-up-image.html

    I couldn't get the merge to work for some reason.
    Ahh, I see why it was closed. I've had problems getting Merge to work the way I want it as well.

  11. #10
    nicnicnic is offline Newbie
    Join Date
    Nov 2008
    Posts
    16
    Rep Power
    0

    Re: hi i found out the problem by myself without google.ca :p

    yeah lol that was funny

Closed 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)

Similar Threads

  1. Replies: 3
    Last Post: 05-24-2011, 05:55 AM
  2. MAKE Problem - Command Not Found
    By BigLinux in forum Linux Applications
    Replies: 4
    Last Post: 07-05-2009, 01:35 AM
  3. Google Indexing Problem
    By Crane in forum Search Engine Optimization
    Replies: 12
    Last Post: 04-18-2007, 06:35 PM

Tags for this Thread

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