+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 10 of 14

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

  1. #1
    Newbie nicnicnic is an unknown quantity at this point
    Join Date
    Nov 2008
    Posts
    16

    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. #2
    Administrator Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan's Avatar
    Join Date
    Nov 2005
    Location
    Hendersonville, NC
    Posts
    24,556
    Blog Entries
    97

    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?

  3. #3
    Newbie nicnicnic is an unknown quantity at this point
    Join Date
    Nov 2008
    Posts
    16

    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

  4. #4
    Administrator Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan's Avatar
    Join Date
    Nov 2005
    Location
    Hendersonville, NC
    Posts
    24,556
    Blog Entries
    97

    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.

  5. #5
    Super Moderator WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther's Avatar
    Join Date
    Jul 2006
    Age
    36
    Posts
    11,673
    Blog Entries
    57

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

    It's this thread: problem with showing up an image

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

  6. #6
    Co-Administrator John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John's Avatar
    Join Date
    Jul 2006
    Age
    21
    Posts
    5,885
    Blog Entries
    25

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

    nicnicic, thanks for coming back and sharing your solution.

  7. #7
    Xav
    Xav is offline
    Code Slinger Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav's Avatar
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,210
    Blog Entries
    13

    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 05: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

  8. #8
    Co-Administrator John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John's Avatar
    Join Date
    Jul 2006
    Age
    21
    Posts
    5,885
    Blog Entries
    25

    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.

  9. #9
    Administrator Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan is a name known to all Jordan's Avatar
    Join Date
    Nov 2005
    Location
    Hendersonville, NC
    Posts
    24,556
    Blog Entries
    97

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

    Quote Originally Posted by WingedPanther View Post
    It's this thread: problem with showing up an image

    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.

  10. #10
    Newbie nicnicnic is an unknown quantity at this point
    Join Date
    Nov 2008
    Posts
    16

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

    yeah lol that was funny

+ Reply to Thread
Page 1 of 2
1 2 LastLast

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. StreamWriter & xml reading problem
    By Dumpen in forum C# Programming
    Replies: 1
    Last Post: 07-03-2008, 01:13 PM
  2. Verification Problem
    By mosesff in forum Java Help
    Replies: 7
    Last Post: 07-02-2008, 11:57 AM
  3. Peculiar UI Problem Needs Tackling
    By adriyel in forum C# Programming
    Replies: 2
    Last Post: 04-06-2008, 07:46 AM
  4. Problem read pwd protected Access2K dbase - CR9 & VB6
    By mrbar in forum Visual Basic Programming
    Replies: 2
    Last Post: 03-10-2008, 04:50 AM
  5. How to tackle a programming problem?
    By TcM in forum General Programming
    Replies: 10
    Last Post: 01-07-2008, 11:29 AM

Bookmarks

Bookmarks

     
        Algorithms and Data Structures

        Java tutorials

        Algorithms Forum

Posting Permissions

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