Jump to content

Sakesaru

Members
  • Posts

    14
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Sakesaru's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. No, not unless you want to learn a low level programming language like C++.
  2. Your code doesn't redirect the browser to the file, it just tells it that the file will be named blah, it's a blah type file, then after the headers are sent, it doesn't send any data. You need to open the file in question with fopen(), then echo() the contents of the file out to the browser. OR You need to actually redirect the browser to the actual file.
  3. Their source code, or the HTML of a file?
  4. I don't mean to undermine MadTechie or anything, but personally I believe it's better practice to use a non-javascript solution when one exists.
  5. Of course you can have a form like that.... <?php if($_GET['button1']=="cake") { echo 'Button1 was clicked, run this code'; } else if ($_GET['button2']=="cheese") { echo 'Button2 was pressed, run that code'; } else { echo 'No button was pressed, you should press one so they don\'t feel unloved'; } ?> <form method="GET" action="/test.php"> <button name="button1" value="cake">Button1</button> <button name="button2" value="cheese">Button2</button> </form> Easy do. Whichever button you click will send it's value to the action="" page for the form, all the others will not send their value to the action="" page.
  6. echo '<table style="border:1px solid black;"><tr>'; // don't use "<table border="1"> use CSS for that. $count = 1; while($row = mysql_fetch_array($result)) { echo '<td style="width:150px; align:center;"><img src="http://www.americanmi-kiregistryassociation.com/images/puppy_pics/' . $row['photo'] . '"><br />'; // again swapped out width="150" align="center" for CSS echo "Date of Birth: " . $row['dob'] . "<br />"; echo "Date Available: " . $row['doa'] . "<br />"; echo "Puppy Number: " . $row['nbr'] . "</td>"; /* Just a simple loop to count which column we're on, if we're on the third, we need to end the row and reset our count back to 1 for the next row. */ if($count==3) { echo "</tr><tr>"; $count=1; } else { $count++; // does the same thing as $count = $count + 1; } } echo "</tr></table>"; Merry Christmas.
  7. You mean like this? (see attached image) [attachment deleted by admin]
  8. echo '<div style="display:block;">'; while ($results = mysql reading thing here) { echo '<img src="'.$results['imgname'].'" style="display:inline;">'; } echo '</div>'; Should do it, or you could use a table.
  9. Set up a WAMP server on your machine. Set up the website on said server. Set up a port forward on your router if needs be. Set up HTPassWD http://www.colostate.edu/~ric/htpass.html
  10. http://validator.w3.org/check?uri=www.hackingclan.com%2Fleetdesigns&charset=%28detect+automatically%29&doctype=Inline&group=0 First task is to fix 9 errors.
  11. You'll need to read up on AJAX to achieve that. Or you could use html frames. But everybody hates html frames. But really, don't worry about it. Just leave it as is. Sometimes it's best to just K.I.S.S., and this is one of those times
  12. Embed a flash file capable of playing back FLV files in your web page, one of the things that you provide in the <EMBED> tag will be the location of the FLV file, the format for this will depend on the player you make/get. There are free (& legal) flash based FLV players. I found one on this page (post #5): http://www.ozzu.com/flash-forum/how-embed-flv-swf-files-inside-html-for-video-streaming-t67590.html Link still seems to work. http://www.arronsfootball.co.uk/flvplayer.swf
  13. Sounds like a chmod error. You probably don't have permission to write to that folder. I'm guessing it's a *nix server..?
×
×
  • 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.