Jump to content

speals

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

speals's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Not sure what happened. I ended up reinstalling PHP and now it works. Thanks.
  2. Moving it to C:\Windows was the first thing I tried to no avail. I searched the entire drive and that was the only php.ini file found. I deleted it for the heck of it and I can still get all the results when I run phpinfo().  ??? My computer must be posessed with the PHP demons. Maybe reinstall?
  3. When I installed PHP I put the php.ini file on the C drive. When I make changes to that file, nothing happens When I run <?php phpinfo(); ?> to see the configuration, it says the php.ini file is in C:\Windows. Why would it say its there? Whats goin on? Only have the one on the C drive. Goin nuts here please advise. Thanks.
  4. Thank you so much. Was able to play with it and got exactly what I needed.
  5. Hi. I am trying to display all my data in table format with the first five results in the first row, the next five in the second row, ect. Right now it displays the first result five times in the first row, the second result five times in the second row, etc. How can I write the loop to have it display each result one time? Thank you for your time. [code]<?php $Host = "localhost"; $User = ""; $Password = ""; $mydatabase = "fashion"; $db = mysql_connect("$Host", "$User", "$Password") or die ("Couldnt connect to the server."); mysql_select_db ("$mydatabase",$db) or die ("Couldnt select the database. ".mysql_error()); $result = mysql_query("select * from pictures"); while ($myrow = mysql_fetch_row($result)) { echo "         <table cellSpacing=0 cellPadding=10 width=90% border=0 hspace=0 vspace=0>         <tr valign = top align=center>           <td><img POSITION: absolute; src='$myrow[2]' hspace=0 border=0></img></td>           <td><img POSITION: absolute; src='$myrow[2]' hspace=0 border=0></img></td>           <td><img POSITION: absolute; src='$myrow[2]' hspace=0 border=0></img></td>           <td><img POSITION: absolute; src='$myrow[2]' hspace=0 border=0></img></td>           <td><img POSITION: absolute; src='$myrow[2]' hspace=0 border=0></img></td>         </tr>         <tr align=center>           <td>$myrow[1]</td>           <td>$myrow[1]</td>           <td>$myrow[1]</td>           <td>$myrow[1]</td>           <td>$myrow[1]</td>     </tr>     </table> "; } ?>[/code]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.