Jump to content

Boxerman

Members
  • Posts

    275
  • Joined

  • Last visited

Everything posted by Boxerman

  1. I have sites up like www.radio101.co.uk etc.. im not too bad at php and mysql its the fact i can do it... but dont know how... if you get me
  2. Hmm.. well basically i need to Create a database... enter all the information then on the website page.. how would i sort it out like that site has with the drop down etc...
  3. kinda like this.. http://www.skateparkpages.co.uk/cgi-bin/skateparkhome.asp
  4. So what you saying? is there not a script out there like where u enter the information and it adds to your site automatically and people click it... i think its ending is like parks.php?ID203 like skatepark id is 203 etc..?
  5. Hi all! Im planning to create a big information bank containing lots of information about skate parks all over the world! whats the best way to keep track of all this and edit/add new ones and display them on the site?
  6. sorry thats not what im after... I need to to do this all automatically... like Guest comes to site.. uploads a image and its displayed on another page....
  7. Hi guys.. i need to make a script where a user uploads a image and it shows it to all of a different page.. hwo do i do this? thanks
  8. thanks all for your help! fixed myself!
  9. is there not a simple one... like Delete record *textbox* and a sumbit button ?
  10. Hi guys, im creating a staking site, and i want to add records of stuff and i want a table like this... Name | Location | Features(then heres the thing i need) |DELETE Test England some text here Delete record test england some other text Delete record for the delete i need something that is by the side of all the entrys on the database so say i had 100 entrys.. i want a delete to show next to every single one... but only entering 1 link in the code.. if you get me thanks all
  11. how do i display the uploaded images... all of them?
  12. this is what i have.. <?php define ("MAX_SIZE","100"); function getExtension($str) { $i = strrpos($str,"."); if (!$i) { return ""; } $l = strlen($str) - $i; $ext = substr($str,$i+1,$l); return $ext; } $errors=0; if(isset($_POST['Submit'])) { $image=$_FILES['image']['name']; if ($image) { $filename = stripslashes($_FILES['image']['name']); $extension = getExtension($filename); $extension = strtolower($extension); if (($extension != "jpg") && ($extension != "jpeg") && ($extension != "png") && ($extension != "gif")) { echo '<h1>Unknown extension!</h1>'; $errors=1; } else { $size=filesize($_FILES['image']['tmp_name']); if ($size > MAX_SIZE*1024) { echo '<h1>You have exceeded the size limit!</h1>'; $errors=1; } $image_name=time().'.'.$extension; $newname="images/".$image_name; $copied = copy($_FILES['image']['tmp_name'], $newname); if (!$copied) { echo '<h1>Copy unsuccessfull!</h1>'; $errors=1; }}}} if(isset($_POST['Submit']) && !$errors) { echo "<h1>File Uploaded Successfully! Try again!</h1>"; } ?> <form name="newad" method="post" enctype="multipart/form-data" action=""> <table> <tr><td><input type="file" name="image"></td></tr> <tr><td><input name="Submit" type="submit" value="Upload image"></td></tr> </table> </form> how do i display the uploaded images... all of them?
  13. Hi all, another question... i want all on 1 page... how can i show pictures uploaded by users? so on a page i want a upload bar etc.. and when its uploaded it gives them a link etc..but also displays it as uploaded?
  14. so with that code if i add... ?today to the end of the file it will display? Thanks!
  15. hi guys... i was wondering how do you do the thing where say you had index page and it had Todays News (CLICK HERE) and some site have a url on CLICK HERE like "www.worldnews.com/news.php?today" and it shows todays but it you went to just news.php it will show all... (im not after a news on like) if you get me?
  16. Hi guys, i need a php script that is basic, all it needs is register, login, protect etc.. and the database stuff... does anyone know any good scripts or tuts?
  17. Hi guys not sure if this is css or html but its fine in firefox but not in internet explorer www.radio101.co.uk/index.php try it in both firefox and i.e how do i fix? Thanks
  18. this is the outcome http://radio101.co.uk/testfolder/random.php
  19. Right sorry to confuse you in my show.txt is this Boxermans Summer Hits DJ K On The Decks Live! Nightmares Rock Hour DJ Duxs Liverpool Invadsion nothing else jsut them on ech new line how would i assign a picture to each one? a different picture
  20. how do assign a qoute id in the shows.txt then? as thats just lines like Boxerman cool etc.. and i want a different image for each one? thanks! you are a big help!
  21. just thinking about it, i fort can i do quote numbers? like [1] means quote 1 [2] qoute 2 etc... and in the php script have it so if [1] is displayed show the picture in [1] which will contain image url or something?
  22. Hi guys, my question is, is there a way to display a image if a curtain text is typed? so like: "Hello" when that is said a picture that i upload to my webroot called hello.jpeg or something will be displayed next to the text? i use a random quote system, and i want to add it in that? but how? Thanks P.S this is my random quotes code <? $quoteFile = "shows.txt"; //File holding qoutes $fp = fopen($quoteFile, "r"); //Opens file for read $content = fread($fp, filesize($quoteFile)); $quotes = explode("\n",$content); //Put quotes into array fclose($fp); //Close the file srand((double)microtime()*1000000); // randomize $index = (rand(1, sizeof($quotes)) - 1); //Pick random qoute echo $quotes[$index]; //Print quote to screen ?>
  23. Hi guys, im using sam broadcaster and i am wanting to us the php script that comes with it, at the moment in the config you can only use 1 ip. is there a way i can add lots of ips(all djs ips) and do a if fuction? so it saves changing the ip everytime? Thanks config code: $stationid = 122; //The ID of your registered station on AudioRealm.com $sam["host"] = "localhost"; //The IP address of the machine SAM is running on (DO NOT use a local IP address like 127.0.0.1 or 192.x.x.x) $sam["port"] = "1221"; //The port SAM handles HTTP requests on. Usually 1221.
×
×
  • 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.