- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
28 Posted Topics
Re: You could use box-shadow. Will work for all current browsers. css3. http://www.w3schools.com/cssref/css3_pr_box-shadow.asp Though I would use images. Images will work on any browser. One way would be to edit the body background in photoshop and find the right spots then add the shadow. Another way would be to split your … | |
Re: depending on your set up. If it's database driven u could add check boxes to ur back admin where users listed. then if u want them to be admin you could check the box submit and in your database where users are u could add a column called "isadmin" and … ![]() | |
Re: You would use "pretty urls" with mod-rewrite. Add an htacess file to your root directory with the rewrites in there You can search online for auto gens to create your file or re-write. I wont post a link because it seems they add rewrite spam. but below should work for … | |
Im grabbing a page with below. $homepage = file_get_contents('http://www.example.com/'); echo $homepage; How do I write it to a file.txt and overwite in the event the file exists ? Thanks. | |
Re: missing a ] after pid header('location: view_album.php?post_id={$_POST['pid']}&album_id={$_POST['album_id']}'); After you will use a get method on another page. echo $pid = $_GET['pid'] / $aid = $_GET['album_id']; and check for int if you like. | |
Re: Here is a link. You can do this with jquery. http://jquery-sort-table-rows.ssdtutorials.com/ for the demo. http://www.ssdtutorials.com/tutorials/title/sort-table-rows-jquery.html files and database I think it's mysql. Either way, Jquery works well. Many plugins. | |
Hello. I have this below SimpleXMLElement Object ( [item] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [id] => plid_2 [name] => Playlist [ro] => ro ) [content] => SimpleXMLElement Object ( [name] => Playlist ) [item] => Array ( [0] => SimpleXMLElement Object ( [@attributes] … | |
HEllo. If I do this.. <div>value | number</div> <?php $arr = array(10, 7, 2, 4); $i = 0; foreach ($arr as $value) { $i++; echo "<p>" . $value . " | " . $i; } ?> ill get something like number | value 1 | 10 2 | 7 3 … | |
Hello, I'm trying to get results from a mysql database based on values in an array. My tables look like this 1. id | articles | thumbs | etc 2. tag_id | tag_name | article_id I'd like to get related articles based on the tags for that particular article. So … ![]() | |
Hey Everyone. Im using jquery's Validation plugin to check post values before I submit a form. Im trying to check a mysql table column to match user name to check for a duplicate name before submitting. This snippet of code below works as expected.. [CODE]<?php $request = trim(strtolower($_REQUEST['login'])); //sleep(2); usleep(150000); … | |
Re: Thanks for this I came here looking for the same thing.. Thought I would have to do a bunch of joins but this worked perfect. | |
I was wondering, I want to change other elements that are inside of a main div when one hovers. [CODE]<div id="post"> <h1>The Title</h1> <p class="text">Text</p> <p class="other-text">Text</p> </div>[/CODE] So if one hovers over the "post" div then the the "#post h1" title would change from black to blue.. If it's … | |
Re: [CODE] $endminuscurrent = $due_end_date-$current_date; $sql_query = "SELECT * FROM sre_log WHERE current_date = '$endminuscurrent' ORDER by vreg"; [/CODE] | |
Re: pretty sure you have to make your names an array. [CODE]<input type="checkbox" name="ServicesRequired[]" value="CustomWebsiteDesign" /> Custom Website Design [/CODE] | |
Re: Define your element widths. Width="630px"; Then the widths will be set and wont move. sounds like you have it set to percentages or not set at all. if not set they will be 100 percent width and if set to a percent rather than a set pixel width then the … ![]() | |
how do I set the path of this cookie to my whole site "/"? [ICODE]setcookie("name$id$uid", $id, $month);[/ICODE] currently this is what I have. How do I format the above to set the cookie on a global scale for the entire site. | |
can someone help me with this pls.. [CODE]DELETE FROM site_post, site_comments WHERE site_post.id=$id AND site_comments.matchid=$id[/CODE] needing to delete two rows one from each table. | |
Re: Set a cookie. I just did this. [url]http://www.daniweb.com/web-development/php/threads/392196/1687380#post1687380[/url] | |
Hey. Im wondering how I would style the bottom row in a while loop. Can someone please help. How do I find the highest count and then if statement on my posts div. [CODE] <?php $query="select * from posts order by id desc"; $result = mysql_query($query); $i = 0; while($row=mysql_fetch_array($result)) … | |
Re: here you can use strpos. [CODE] if ( strpos($name, 'virus') !== false ) { echo 'virus not allowed try again'; } [/CODE] I think an issue is if you were to use the name database and you filtered out the word data then it would still return false. also a … ![]() | |
Hello. I'm wondering if someone could help me. I have a simple like/dislike voting voting system. Everything works fine but a user is able to click both up and down freely without checking if they have voted. So what I'm going for is 'Php sessions' because I dont want to … | |
Hi. I'm making a form with some fields. Once the form is submitted it updates the page with a new div containing the data entered without refreshing. Im using jquery form plugin. What I'd like to achieve is the new div(.record) to .slideDown. I guess I need to somehow specify … | |
Re: if u messed with the .htacess file this would cause it. also make sure mod rewrite is turned on. | |
hello. i've created this with help from a friend. |uid || id ||url| i have input fields to add the data. [CODE]<table width="100%"> <tr> <td width="140" style="padding:4px;">url 1:</td> <td ><input type="text" class="edit bk" name="urls[]" style="width:350px"></td> </tr> <tr> <td width="140" style="padding:4px;">link 2:</td> <td ><input type="text" class="edit bk" name="urls[]" style="width:350px"></td> </tr> <tr> … | |
What im doing is i have a form with 4 inputs like below. and im using the post method to store the fields values so i can send them to the database. what i neeed is each input to be put into a separate row in a databases table. also … | |
Hello. I've set up pagination for my results. I do this with a class. I also have pretty urls with mod_rewrite. I'm wondering how to echo the urls for the paginated data. Currently I have this below for the links. [CODE]$links .= ' ' . $prefix . '<a href="' . … | |
Hello, I'm wondering how to add predefined text to many input fields on click of an image. so I have 4 images and I click one and 4 fields are filled with predefined text. If I click another the text is changed with some other predefined text. Thanks | |
Hello, I'm making a tagging system for a script. The tagging system is much like the one here. be it's not normalized like this one. It's a single table in my database with three columns. uid | id | name The 'id' field is not auto increment. It is a … |
The End.