Jump to content

Lostvoices

Members
  • Posts

    20
  • Joined

  • Last visited

    Never

Everything posted by Lostvoices

  1. what id are you giving the the new <li> and whats the CSS you have for it?
  2. then are you sure you're images dont have whitespace on the top or bottom of them?
  3. really can't understand what you're trying to do.. IF YOU are tying to COUNT how MANY elements in the ARRAY contain the VALUE "YES" then why not just do something like foreach($Array1 as $value){ $value = strtolower($value); if($value == "yes"){ $countingVariable++; } }
  4. what is ArrayM1? you have defined Array1 but i dont see ArrayM1 defined anywhere and you should probably use a foreach loop and just ++ to a variable if it contains yes if all you're after is how many contain YES
  5. So, What have you done? what do you need help with?
  6. just wondering if this works <div style="clear: both;"> </div> <div id="right">
  7. Hey guys, My Work is looking at creating an Intranet. it will only involve things such as: * Announcmenets *polices *staff forms * birthdays * Holidays and Staff Leave. Would PHP be a suitable language to do this in? and if so would something like Drupal be overkill for it or best to create something from scratch? what are your guys thoughts on a php intranet?
  8. I have been asked if it's possible to do something like this image but i am not sure on how to pull this off. could anyone help with this.. having 2 images on both sides? would this be done with 3 divs?
  9. Hey All, I've been doing HTML and CSS for a while now and believe i understand them quite well. i have been studying JQuery, PHP and MySQL on top of these. I would like to start a Web design business and was thinking where to start?? I'm leaning based on my knowledge to start with Small Buisness websites and then expanding as i learn more such as learning an Open Source Shopping cart and such. Just wondering what people on here would suggest? I got my first client the other day so frantically trying to build a site for myself to link to on the clients site as teh designer. but would love to hear how you guys started out? what you would suggest first.
  10. it's ok got it solved. i didnt have my apache rewrite mod on
  11. i have this in my php.ini but when i upload i get error # 1 which is The uploaded file exceeds the upload_max_filesize directive in php.ini what am i doing wrong? <body> <form enctype="multipart/form-data" action="uploadfile.php" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="10485760" /> Choose a file to upload: <input name="file" type="file" /><br /> <input type="submit" value="Upload File" /> </form> </body> <?php include 'db_fns.php'; function RemoveExtension($strName) { $ext = strrchr($strName, '.'); if($ext !== false) { $strName = substr($strName, 0, -strlen($ext)); } return $strName; } $name = $_FILES["file"]['name']; $type = $_FILES["file"]['type']; $error = $_FILES["file"]['error']; $size = $_FILES["file"]['size']; $tmp = $_FILES["file"]["tmp_name"]; $date = date("Y-m-d"); echo $_FILES["file"]['error']; if($type == 'audio/mpeg' || $type == ' audio/mp3'){ $song_name = RemoveExtension($name); $query = "INSERT into uploads(song_name, created_at) VALUES ('$song_name', '$date')"; $result = mysqli_query($link, $query); $id = mysqli_insert_id($link); move_uploaded_file($tmp, "uploads/" . $id . ".mp3"); echo "your link is <a href='play.php?id=$id'> here</a>"; }else{ echo 'File must be in mp3 format'; } ?>
  12. Hello Peeps Let's see if i can get out what i need to ask. Origin for Question: I have started to get into making Music. I create it(incomplete songs) on one pc and then normally have to upload it to the web and download it on another pc hooked upto a stereo and sound system. What i would prefer: I would like to make it on one pc and then upload it to a site and then the other pc can just goto the site like.. mysite.com/play.php?id=4 The Question: What would i need to look up for the best way to be able to upload and then play the song. i would not want to have it so i upload it and have to download it but rather i can go to a page as quoted above and there is simply a song playing there. i would like it to do something like the following * mySite.com has an upload section * when the file is uploaded it is saved as $id.mp3 (so first upload is 3 snd upload is 4.mp3 and so on.) on that note i'm also thinking of having it so i have to be logged in so then i can have $username-$id.mp3 *i would then like it to display the link.. ( Thankyou your upload is complete. your link is mysite/play.php?$username-$id.mp3) *then on that play page i would like a player that can load the song and play it by the vars.. so it looks for the $id and $username vars and then plays the file with that name. So i'm not asking for anyone to build this. i want to build it but i'm not sure what to look up for this. i feel i could so far do the login and research the upload and saving file names But its the music player side im confused on is there something out there in jquery or something maybe? i do not want to use flash.. i dont think :S I hope this makes sense and hope someone can help. Thanks
  13. Thanks guys this worked <!DOCUMENT html> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <title>Bananas Hate Apples</title> <link rel='stylesheet' type='text/css' href= 'css/main.css'> <?php include 'db_fns.php'; ?> </head> <body> <?php include 'registration_form.html'; ?> </body> </html>
  14. hope that's not a password you want to give out mate
  15. that looks fine but that file is being included at the TOP of the index file. so if i don't include it after the <link rel='stylesheet.... > tag my css doesnt load for the error. i was wondering if it's ok to put the includes there or is there a way to bring the css into the php. i know i could you inline style but i really don't like that.
  16. hi guys.. im not sure if im in the right section but. i have this script below and it exits BUT i would like it to exit After it applies the CSS to my Error. i want it to display nothing except the error if there is an error.. the php is being included on the index.php page which links to the css. this works IF i put the include after the CSS link but wondering if theres a better way. PHP <?php $host = 'localhost'; $user = 'user'; $pass = 'password'; $db = 'upload'; $link = @mysqli_connect( $host, $user, $pass, $db); if(!$link){?> <div id='conn_error'> <?php echo 'There was an Error Connecting to the Server'; ?> </div><?php } ?> Css #conn_error{ background: red; font-size: 24px; font-family: arial; color: white; width: 500px; text-align: center; border: solid 2px black; position: absolute; top: 150px; left: 30%; padding: 2px; }
  17. your missing a ; at the end of your echo statement
  18. hi guys names MARK just came here to learn some php and have some fun just got booted from the other community i was at ... it was dying probably about 5 members active you guys fun and cool?? i hope so
  19. why is it then if i make my browser smaller the stupid form in my div will go down to the next line instead of keeping the page the same and just not showing it.. it wants to make sure the form is shown <html> <head> <style type='text/css'> body{ color:white; background-color: black; } #title{ margin-left: 370px } #left{ float: left; margin-left:300px; width:330px; } #right{ float:left; margin-top: 80px; } </style> </head> <body> <div id="holder" > <div id="title"><img src="title.jpg" width="446" height="97"> <br/> <br/> <br/> </div> <div id="left" > <img src="spooky.jpg" width="400" height="400"> </div> <div id="right"> <form > <br> <label>UserName:</label><br /> <input name="user" type="text" size="0" maxlength="30" /> <br> <br> <label>Password:</label><br /> <input name="pass" type="password" size="0" maxlength="30" /> <br> <br> <input type="image" src="login.gif" name="submit"> </form> Stay Tuned as soon something exciting and <br>scary will be in this spot </div> </div> </body> </html>
×
×
  • 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.