Jump to content

newhip

Members
  • Posts

    39
  • Joined

  • Last visited

Everything posted by newhip

  1. Well there is sort of a relationship. The artist_id field is the primary id field in the artist table.
  2. Ok if have some code that i am trying to add to. <form action="#" method="post" enctype="multipart/form-data"> <input type="text" name="search"/> <input type="submit" name="search1"/> </form> <?php if(isset($_POST['search1'])){ $search=mysql_real_escape_string($_POST['search']); } include 'connect.php'; if(isset($_POST['search1'])){ $query=mysql_query("SELECT * FROM media WHERE extra_cred LIKE '%".$search."%' OR artist_id LIKE '%".$search."%' OR title LIKE '%".$search."%' OR content LIKE '%".$search."%' OR detail LIKE '%".$search."%' OR tags LIKE '%".$search."%' OR user LIKE '%".$search."%' OR type LIKE '%".$search."%' ") ?> What I would like to do is also search another table within that database by the name of artists with the same POST data. Anyone know what to do? I've been at this for a while.
  3. newhip

    $GLOBALS

    Ok i got a new problem regarding this same topic... I got everything working and I'm able to read off the the url with $_SERVER but now it's looking for a file on my server. How do i make it not look for a file and just know that it's actually just data that i've injected into the url?
  4. newhip

    $GLOBALS

    I don't know much about "$_SERVER" but after some quick research it seams like that is exactly what i'm trying to do. Thanks a lot guys!
  5. Ok I've seen urls like www.domain.com/title-of-page-blah-blah and i understand how to make the url with the dash. My question is how to I set that on the index page? I know how to do that after a set a $GLOBALS['q']['view'] and get the page like www.domain.com/view/title-of-page-blah-blah but not without the "view" or wtv i would set it to. Please help.
  6. newhip

    FTP

    lol what cat? the one in my avi? What is plUpload? i downloaded it and have no clue what it is
  7. newhip

    FTP

    We use Chrome or Firefox
  8. newhip

    FTP

    I do not code for IE I completely disregard it. I know a bit of javascript and jquery and "chunking it" seems like what i want to do.
  9. newhip

    FTP

    i mean the company hosting my my website. and i have created a custom ini file but they have set restrictions
  10. newhip

    FTP

    Ok I have a problem... My sever has a max_file_upload of 2mb that can't be modified. I need to load larger files than that through a form and not a client like filezila or wtv. I've looked through so many documents looking to find the answer and have found none. Does anyone know how this can be done? I want this to be done through php. I'm thinking maybe breaking down the file or using php ftp or something but have no idea where to start! HELP!!!
  11. Hey guys i have a general question not sure if this is the right place to post it but im going to go ahead and ask. I'm looking to design my own media player that can be embedded in other pages. Problem is i cant seem to figure out how to start. Could someone point me in the right direction? I'm assuming JavaScript is the language i should try doing this with but not sure! any Input is appreciated. would be an audio player.
  12. oh, the script still works though ill check that part out i guess ill just write different ones for each bar i make. lol i have a fat cat too but that's not a picture of mine
  13. hmm i'm not quite sure if i know what you're talking bout. I'm trying use the same javascript code and several sliders.
  14. Hey guys, I modified a script that i found on the web and and i'm trying to use it as a thumbnail gallery scroller (for lack of better words). The problem i'm running into right now is that when i click either the left or the right buttons all of the boxes scroll. I'm trying to use the (this) "selector" but i'm having trouble figuring it out can someone perhaps help me a bit with this one? would be greatly appreciated. Here's the html. <div class="container"> <div class="arrowL"><img src="left.png" width:'20'; height:'100'; /> </div> <div class="arrowR"><img src="right.png" width:'20'; height:'100';/> </div> <div class="list-container"> <div class='list'> <div class="item"> </div> <div class="item"> </div> <div class="item"> </div> <div class="item"> </div> <div class="item"> </div> <div class="item"> </div> </div> </div> </div> The css. .item{ background-color:#FFFFFF; width:120px; height:90px; margin:5px; float:left; position:relative; } .container{ width:1000px; height:100px; } .list-container { display:inline-block; overflow:hidden; width: 960px; float:left; } .list{ background:grey; min-width:1500px; float:left; } .arrowR{ width:20px; height:100px; float:right; cursor:pointer; opacity:0.5; } .arrowL{ width:20px; height:100px; float:left; cursor:pointer; opacity:0.5; } And the js. <script> $(document).ready(function() { var $item = $('div.item'), visible = 7, index = 0, endIndex = ( $item.length / visible ) - 1; $('div.arrowR').click(function(){ if(index < endIndex ){ index++; $item.animate({'left':'-=300px'}); } }); $('div.arrowL').click(function(){ if(index > 0){ index--; $item.animate({'left':'+=300px'}); } }); }); </script> Anyone know what i'm doing wrong?
  15. newhip

    overflow scroll

    sweet ill check up on this it looks like what i'm going for thanks!
  16. I have been trying to look up how to make a div that has a side scroll ability but with out the the ugly normal overflow:scroll attribute. I have seen it used plenty of times but its like nobody knows what i am talking about. Just a div that would inside or on either sides have a right, left ability to scroll. Could anyone help me out? I'm not even sure what language would support this kind of thing. I'm thinking jQuery but could find anything on the subject. Any help would be so appreciated.
  17. oops nvm very dumb mistake on my part
  18. Hey I have a piece of code that I sort of understand why it is not working but then i dont know how to get around it <?php include 'xconn.php'; $get_id = $_REQUEST["name"]; $seartt=mysql_query("SELECT * FROM work WHERE name=".$get_id); $row = mysql_fetch_assoc($seartt); ?> The error is "mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in" Not sure how to stagger or make this work. Any help is appreciated. Thanks.
  19. wow thnx teynon feel like a fool been stressing on this forever!
  20. its giving me still dont get ti
  21. i dont understand why my script wont insert can someone help me out per chance? <?php include 'xconnect.php'; $songtitle=$_POST['songtitle']; $songartist=$_POST['artist']; $songsingle=$_POST['single']; $songdescrip=$_POST['songdescription']; $songinsrt=mysql_query("INSERT INTO songtable (title,song,description) VALUES ('$songtitle','$songsingle','$songdescrip')"); $vidtitle=$_POST['videotitle']; $ARTISRS=$_POST['artist']; $vidvideo=$_POST['video']; $viddescrip=$_POST['viddescrip']; $insert=mysql_query("INSERT INTO videotable (title,,description,video) VALUES ('$vidtitle','$viddescrip','$vidvideo')"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <link rel="stylesheet" href="uploadstyle.css" type="text/css" /> </head> <div class="supercont"> <body><div id="songupload"><center><h2>SONGS</h2></center> <form enctype="multipart/form-data" method="post" action="uploadstyle.php"> <center><h4>Title:</h4></center><input type="text" name="songtitle" /><br /><br /> <center><h4>Artist:</h4></center><input type="text" name="artist" /><br /><br /> <center><h4>Single:</h4></center><input type="text" name="single" /><br /><br /> <center><h4>Description:</h4></center><center><textarea id="songdescrip" name="songdescription"></textarea></center> <center><input type="submit" name="submit" /></center> </form></div> <div id="videoupload"><center><h2>VIDEOS</h2></center> <form enctype="multipart/form-data" method="post" action="uploadstyle.php"> <center><h4>Title:</h4></center><input type="text" name="videotitle" /><br /><br /> <center><h4>Artist:</h4></center><input type="text" name="artist" /><br /><br /> <center><h4>Video:</h4></center><input type="text" name="video" /><br /><br /> <center><h4>Description:</h4></center><center><textarea id="viddescrip"name="viddescrip"></textarea></center> <center><input type="submit" name="submit" /></center> </form> </div> </div> </div> </body> </html> It wont insert into the videotable but does for others
  22. No i mean if i upload and then want to reference it later or something older in the database
  23. oh ok but if the id is 123 i should be able the access the populated page under www.example.com/upload.php?id=123 ?
×
×
  • 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.