45 Solved Topics
Remove Filter Hi all, I've just started to work on a lazy mans network - everything is unmanaged. I've now been asked to install a media server so that we can provide a source for the 90+ TV screens in our thirty remote offices, a system such as this: http://www.cabletime.com/how-it-works/ The only … | |
Hi all, I'm looking into the management of duplicate records in MySQL, but this case is a little bit more specific. A record is only duplicated if column A and column B have the same value. So a record is only a duplicate if two specific columns have the same … | |
Hi all, I'm working on an old project of mine that I used to self-study PHP which used Bootstrap 2. Revisiting the project a year on I'm looking to restrict the max-height of dropdown.js but can't - for the life of me - get it done. The best solution would … | |
Geeks, My client, an international online modelling agency, needs to state the following: "Age restrictions depend on the juristiction over your nationality". He has a section where applicants can apply for Nude photography (Nude Artistic, Nude Erotic, Adult Nude and semi-nude). Some countries require you to be 21 and some … | |
ello ello, I'm currently calling a file using JQuery but every so often (very randomly) Google Chrome would crash (Just the tab, not the browser). Soooo I began investigating and discovered that browsers cache AJAX calls? This would mean that the tab would be using a stupid amount of memory … | |
Hi all. I'm having a mad issue... totally mad. I mean I've never had this before. I have the following HTML form: <form action="" method="POST" name="createForumCategory"> <label>Create a new category:</label> <input type="text" name="category" class="m-wrap placeholder-no-fix" /> <input type="hidden" name="id" id="id" value="<?php echo $forumOrange['id']; ?>" /> <button class="btn green" type="submit">Add Category</button> … | |
Boo! Yeah sorry it's me again... I'm launching a modal with: <a data-toggle="modal" data-target="#loginModal" href="javascript:;">Register</a> The modal has 3 tabs. It should usually open on tab one (it does), but in this instance I would like it to automatically open on tab 2 when a particular link is followed... so … | |
Hi all, I have a hidden division that is supposed to appear when the button, as shown below, is clicked by the user. The division is hidden on page load, and does actually appear when the button is clicked, but nothing happens on the first click. To clarify, you have … | |
Hi all, I'm trying to add spacing between the <option> tags by padding, height and margin - yet none have worked. Does anyone have any ideas? It's the simple things that stop me in my tracks haha. All of the options look cramped up and untidy, I'd like to give … | |
Hi all, This is so simple and it's driving me mad. I've done it many of time before but at this moment in time - blank! How does one display the text: © and stop it from changing to a copyright symbol? Thanks, M | |
I'm having difficulty opening message content for each unique message because I'm struggling to get the PHP variable `$message['id']` to a url defined in a javascript file. My foreach loop that echos out all of the messages for the user: foreach($mess_data as $message){ echo' <tr '.(($message["read"] == '0') ? 'class="unread"' … | |
Had no idea where to stick this, so I'll try here :) I have created a CNAME for domain1 to direct traffic to domain2 that has the value of `*` (so `*.domain1.com` goes to `domain2.com`). This works if the user types `www.domain1.com` but not if they just type `domain1.com` which … | |
Hi all, the following PHP MysSQLi query works in XAMPP but not in WAMP: <?php include('../../inc/config.php'); $mysqli = mysqli_connect($config['host'], $config['user'], $config['pass'], $config['db']); $responseQuery = "SELECT tr.id as trid,tr.topicid,tr.usersid,DATE_FORMAT(tr.date_added,'%b %d, %Y %H:%i') AS format_date_added,tr.date_added,tr.response,tr.status, t.id, t.usersid as creatorid, u.id, u.authuser, u.memtype, u.fn,u.ln,u.avatar FROM topic_response tr LEFT OUTER JOIN topic t ON … | |
Hey hey! I'm about 70% into completing a web application that will allow our clients to white label our service. They can then in turn resell the service to their audiences without any involvement from me or my colleagues. Now, something I need to figure out is how to allow … | |
I've focused my night on better grapsing authentication security and believe I have made good progress. To date I have simply relied on SHA1 hashing and prepared statements - not much, right... So I knew it was time to pick up some new skills. What I came across was very … ![]() | |
I'm about 80% into my first attack on JQuery/AJAX... how would one correctly write this function: function reloadResponses(){ $('#responses').load('pages/community/load-responses.php?id=<?php echo $id;?>'){ window.setTimeout(reloadResponses, 10000); }; }; I would like to reload `<div id="reponses"></div>` every 10 seconds. Is this the best way? I am currently using this to reload the div every … | |
Should be simple right? Well I've been at the PC for 16 hours so far and the answer is probably screaming at me in the face, but I can't hear it... # This code... # $differenceInSeconds = 448005; if($differenceInSeconds >= "86400"){ $calcDays = floor($differenceInSeconds / 86400); if($calcDays = "1"){ $daysPlural … | |
DaniWebers, We have a category for Jobs and Resumes in the Business Exchange and it's used regularly for recruitment, however all over the forums I find and repsond to people in search for careers advice. Could we possibly add a new category 'Careers Advice' under the Business Exchange parent? Cheers, … | |
[Image of design issue](http://imgur.com/seWlte0) Hi peeps, Struggling to locate the source of this issue. The dropdown for ALL of the menu items appears on the far left of the nav and not below te menu item selected. For example, in the image above I clicked programming and the dropdown appeared … | |
Hi all, I'm still playing around with OOP and to be totally honest really enjoying it! I can't believe I haven't made the switch from procedural earlier... Something I would like to know is, how can I set default arguments for methods / functions? What i'm getting at is, if … | |
Hi all, I've literally JUST dived into OOP and it's a totally different world. I've written some pretty awful code just to grasp OOP basics. The following code is all in the same file and runes fine, there are no warnings, errors, notices and so forth yet it doesn't work … | |
Hi all, I've been playing around with PHP for a while now and never really studied hardcore (Just used it as best as I could on a whim) but I've now decided to sharpen the skill and get much better. I'm playing around with my first class and would like … | |
Hi all, I'm currently looking at this [JSFIDDLE](http://jsfiddle.net/MH8e4/6/) and it's 50% of what I need. I have a series of Accordions on my page (a list of courses). What I would like to do is assign these accordians to categories so that when a checkbox is pressed with the id … | |
Hi all, My local development project has been working perfectly for...6 days now? I haven't even touched the login/register page for 2 days+ yet all of a sudden all JavaScript has seized up! I've been using the page to login all day and only now has it stopped working. I'm … | |
Good'ay all, I'm looking for a method of saving a users session (I.e. automatically logging them back into the same page they logged out from). But I have a few things to consider: 1) Will they logout or will they just close the browser? This means I can't add the … | |
There has got to be a better way of doing this. First of all pay no attention to the lack of validation and error checking. I just want the core of the script to work first. Also, Block 1 and Block 2 execute, Block 3 does not. Whats the best … | |
Now this one always bugs me! I'm dealing with a lot of checks that result in redirection dependant on certain results. **Example:** 1) If session exists and users lands on login.php they are pointed to index.php. 2) When landing on any page after loggining in, if their account isn't complete … | |
Kill me now! I have two tables in my DB. One has a list of certifications and one has a list of exam boards. I need to list the exam boards in a foreach loop giving each one an accordion. The certifications must be listed under their correct exam board. … | |
Hi all, I've been playing around with this for 30 odd minutes now and basically been making a right fool of myself... I want to make a function called `userInfo()` that uses the users email address, stored in `$_SESSION['auth'];`, to get any information required from sql. I'm using **MySQLi** and … | |
My form won't submit... nothing happens when clicking the submit button. Any ideas? N.B. I am knackered, I've been up 26 hours :/ Thanks in advance for any suggestions! <form action="contact_me.php" method="post" class="contact-form" id="contactForm"> <div class="controls controls-row"> <div class="control-group span6"> <input class="span12" name="name" placeholder="your name" type="text" /> </div> <div class="control-group … | |
Hey all, cant get this very very simple query to work but I have been going 26 hours and my thoughts are numb. Please assist? I have error reporting on and request mysql errors but I'm getting nothing. Contents of config.php $db_host = 'localhost'; //IP of database server (most likely … | |
Hi all, I've setup a simple cart where users choose how much they would like to deposit as virtual currency using the PayPal sandbox - I've tested it and it works great. So far I've got to successful money transfers between accounts and notifications. However what I can't figure out … ![]() | |
Would you say its time to increase the RAM on this lil machine or is it okay? Could you please explain this output? free -m -s 5 total used free shared buffers cached Mem: 496 439 57 0 20 250 -/+ buffers/cache: 167 328 Swap: 511 5 506 Thanks, M | |
Hey all, I am currently using the following to echo the 1st Current_month: echo "1st '.date('F').'."; So that would say, for example, 1st October. What would I need to do to echo the next month? In this case 'November'? Thanks for any help! | |
Whats the best way to collect all the users where `server_id = X` Table: id server_id user 1 2761 adam 2 2567 tom 3 2761 luke 4 2761 mike 5 2346 lucy So what should I do to echo all users where `server_id = 2761`? What output should look like... … ![]() | |
This could be a PHP issue or a linux issue. My form uses the following code to allow users to upload their banner and worked fine on my old server: if ($_FILES["banner"]["name"]!="") { $folder_path = "images/server_banners/"; $myfileext=substr($_FILES["banner"]["name"], - 4,4); $banner_file_path=$username."-".$server_id.$myfileext; $file_path = $folder_path.$banner_file_path; if (file_exists($file_path)) { unlink($file_path); move_uploaded_file($_FILES["banner"]["tmp_name"],$file_path); } else … | |
Hey all. All I need is to collect every `id` from `servers` where `active ='1'` and then cycle the results in a loop right until the end for each individual id. (I've written this on daniweb, might be typo's or errors. I'm not interested in code errors it's the process … | |
Hi all, I have a menu on the left side of my design. When the user scrolls and the object hits the top of the screen I want it to float there. I have the float working fine now, but how can I say "Only float when you meet the … | |
Hey all, I have a folder called 'templates' in my root dir (../templates/). When a PHP form is submitted I want to copy a folder out of 'templates' called 'template1' (../templates/template1) and paste it into the root directory but with the new name of 'username123'. How can I copy, rename … | |
I'm hoping not to post much code (to do this myself) but I'm having issues in figuring out why a mysql_query isn't be executed. This is the mysql_query: mysql_query("UPDATE `servers` SET `status` = 'online.png', `cur_players` = '".$online_count."', `max_players` = '".$max_slots."', `software` = '".$software."', `plugins` = '".$plugins2."', `players` = '".$players2."', `version` … | |
$plugins = $Server->Get('plugins'); echo "<br /><br /><b>Plugins</b><br> "; foreach($plugins as $plugin) { echo $plugin."<br>"; } That snippet above spits out a long list of plugins from a server. How can I store each plugin listed into SQL so that its stored as '$plugin[0]<br/>$plugin[1]<br/>$plugin[2]<br/>' and so on so that when I … | |
Sorry people but I'm really struggling with this and I don't know why... but still. I have a stored unix timestamp. [a] I have the current timestamp not in unix format (YYYY-MM-DD HH:MM:SS) [b] I need to: 1) convert the current timestamp [b] into a unix timestamp 2) I need … | |
Okay so here it is. The code below is my player counter for a game called Minecraft. It connects to a server and brings back 2 values. 1) The number of current online players and 2) the maximum number of player slots. Then it stores these two variables in to … | |
Hi all, I have an issue with a loop as it contains communication between my server and a remote one. If the remote server has an issue then it takes forever to complete the loop and the execution times out. What it currently is: $servers = mysql_query("SELECT * FROM server_tab;e … | |
Hey all, This website is a directory and the problem is authenticating users to edit a server, even after they've logged in. The idea is to stop any SQL mix-ups due to my weak code (I'm learning PHP). When they click 'Edit' next to the server after logging in they … |
The End.