-
Posts
39 -
Joined
-
Last visited
Everything posted by newhip
-
Well there is sort of a relationship. The artist_id field is the primary id field in the artist table.
-
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.
-
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?
-
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.
-
lol what cat? the one in my avi? What is plUpload? i downloaded it and have no clue what it is
-
We use Chrome or Firefox
-
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.
-
i mean the company hosting my my website. and i have created a custom ini file but they have set restrictions
-
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!!!
-
nvm got it
-
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.
-
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
-
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.
-
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?
-
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.
-
oops nvm very dumb mistake on my part
-
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.