- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 59
- Posts with Upvotes
- 50
- Upvoting Members
- 41
- Downvotes Received
- 4
- Posts with Downvotes
- 4
- Downvoting Members
- 4
198 Posted Topics
Re: if you're seperating all emails by a certain character (like ; for example) you can just explode the string: `$emails = explode(';',$text_field);` | |
Re: It is showing as fully round on my end. nothing in the code is jumping out at me. What browser are you using? | |
Re: Arrays are assigned a numerical key automatically unless you override the key with your own custom name. When you're using the => you're assiging names to the keys instead of using the default numerical keys ( key => value ). You could still use the => for both, i.e. `array … | |
Re: Just a suggestion for those threads which do not get marked as solved. I would set it up as a 2 teir system, first send out a reminder to the OP once there has been no new posts in the thread for a set time (like 48 hours) something along … | |
Re: The submit button is not named submit, it's named B3, therefor that `$_POST['submit']` should actually be `$_POST['B3']` | |
Re: You'll need to add some relative and absolute positioning into your CSS to get the effect you're looking for. Take a look at this, should help you out: http://www.barelyfitz.com/screencast/html-training/css/positioning/ | |
Re: I can't find your JS code the handles the drop down menus, but best guess it you're applying the hover event on the link tag which does not extend to the bottom of the menu background so there is a small gap between the menu header and the sub menu … | |
Re: Perhaps try re-wording your question as it doesn't make sense, I have no idea what your asking, what problem are you trying to solve? Are you getting errors, if so what are they? Also include the code for your form which is posting to this script. | |
Re: You're combining two different methods of doing this which will fail, need to choose one or the other, try this (Sorry for these not being in code boxes, my work PC doesn't like DaniWeb): Change line 13 to: return this.front_gear * this.rear_gear; Change line 16 to: document.write("this is a " … | |
Re: Where are the following variables set? $albumPost and $aid ? If your var_dump them do you get the expected result? I'm guessing one of those is not set properly and your IF or query statement is failing. On a side note, it's very bad practice to put large groups of … | |
Re: Can you provide more info? It's diffacult to say with the limited info you've given. Are there any error messages displayed on screen or in the server's error logs? What kind of file are you trying to upload? What is the size of the file you're trying to upload? Also … | |
Re: $row is an array that contains your data that was retrieved from the DB, it is not a column in your table and it's not passed to update.php. You need to change your link so that it passes a unique identifier (The table row's Unique Key, possibly ID). Than when … | |
Getting a little tired of my current host so I've been looking around at some other hosts. It's hard to sort through all the fake reviews out there these days so thought I'd turn to my local DaniWeb community for suggestions :) Anyone have any recomendations for a quality shared … | |
Re: If your host allows remote MySQL, you'll have to add your local server's IP to their remote MySQL settings to their firewall allows the access. If you're host uses cPanel just look for the remote MySQL icon in the Database Tools section. | |
Re: Can you not just add the link to your output, I see no need to add it to your variable. Try this: while($results = mysql_fetch_array($result)) { ?> <tr align='center' bgcolor='#93dafb'> <td height='25px'> <?= $results['Name']; ?> <a href="Get-Details.php?id=<?= $results['id']; ?>View Details</a> </td> <td> <?= $results['Type']; ?> </td> <td> <?= $results['Address']; ?> … | |
Re: This is always going to evaluate to FALSE as you do not have a manager variable being passed from your form: if (isset($_POST['manager'])) I'm guessing you want to change that to username to see if a form was submitted. Also in your form, your username input field has the U … | |
Re: Try this: function validateEmptytextBox() { var inputField = document.getElementById("textArea1").value; inputField = inputField.replace(/^\s+/, '').replace(/\s+$/, ''); if(inputField == ""){ alert("please enter a value, textarea cannot be empty"); }else{ alert("Success"); } } | |
![]() | Re: I think you're talking about XSS or Cross-Site Scripting |
Re: You can either a) keep a record of all logins in your DB and display the previous one. b) Store a last login date in the member's DB, when they login get that date and store it into the session before you update it to the new date. | |
Re: Are you looking to have two seperate groups of images and choose an image from each group two display (I.E. Pool A has 5 images and Pool B has 6 images. Choose 1 random image from Pool A and one from Pool B) Or are you looking to just have … | |
Re: That would only work if your loading the page locally (If you double click the HTML file to open it in you default browser). If you try that through a web address on a server it will not work, the browser will not allow a page access to the C … | |
Re: Use the search function on the forums or search google for PHP login tutorial. Between the two, you'll find more than enough to get you on the right track. | |
Using IE and I've noticed that any member that does not have an avatar is showing a broken img box in it's place as default linking to http://www.gravatar.com/avatar/ac4f8177e88d582007f3333d1ce6efc0?d=identicon&s=80 ![]() | |
Re: I'm not sure if I understand what you're trying to accomplish. One thing I noticed was you're using the jQuery .val for a javascript call, should be .value instead. If you want the if statement you provided to open your login if the if evaluates to true you can do … | |
Re: you cannot do a getElementByID on an element, that function is not available. ID's are suppose to be unique in a document so you should just be doing a getElementID on the document to get your element: var outputResults = document.getElementById('goat'); outputResults.innerHTML = "what"; <div id="boxa"> <h1 id = "header">This … | |
Re: You have a buch of extra commas with the last few values of your third query so you're techinicaly trying to add more data than the number of columns specified. You alos have a space before the underscores with employee _c, employer _c not sure if that was intentional: $sql3="INSERT … | |
Re: Usually this happends because your query failed. If mysql_query fails it returns FALSE so $sql_query would end up being a boolean vice a object resource. Add a die statement to your query to see what gets posted back to you. You should surround your variable assignment into parenthesis as well: … ![]() | |
Re: Use PHP's strtotime to turn the am / pm into a timestamp and substract the diff. Than you can output the diff. $diff = strtotime("1:30 pm") - strtotime("11:30 am"); $hours = date('H', $diff); echo $hours . " Hours."; // 2 Hours | |
Re: Code ? Hard to tell you what's wrong when we don't see what it is you're doing. | |
Re: Never assume you know what the user will input. Check user input before doing anything with it to make sure it is what you expect it to be (I use regex expressions for this). If you're using PHP I highly suggest the use of prepared / parameterized mysqli queries. Using … | |
Re: your escape character isn't working as there is a speace between the \ and the " so it's not escaping the ". You also missed the closing > for your image tag before the br in all your echo statements. On all of your echo statements (I also suggest using … | |
Re: Can you post the Javascript code for the startUpload() function? | |
Re: As a standard practice you should be testing your queries before you try doing anything with them. Ideally this would be with an if statement so but at the very least you should add a die statement to your query. Add this and see what gets outputted: $from_query = mysql_query("SELECT … | |
Re: require 'localhost/phpads/install.php' is relative to your current file path so this would load C:\xampp\htdocs\phpads\localhost\phpads\install.php You need the leading slash require '/localhost/phpads/install.php'; | |
Re: NEVER assume what a user will input, always test and re-test user inputted data to esnure it is what you want. | |
Re: Line 14. when you use the get_where function it's running the info for your DB on that line get_where(table name, where evaluation, limit, offset). Same thing in line 15. If you're trying to actively build your where clause you need to use the where function: // Prep the query $this->db->where('username', … | |
Re: If you're going to change the folder names for the application and system folders you need to go into the main CI index.php file and change those values to your new file names. | |
Re: Few things; First your controller file name and class name need to be the same. So either change the class to Ctabel (recommended) or change the controller file name to table.php Second issue is your controller class needs to be split into functions, the functions forms part of your url … | |
Re: First you would need a lot more than PHP to make any sort of voice app. Second, I'm sorry but this site isn't a place to have people write code for you, it's to get help with code already written. You might want to look at a freelance programmer but … ![]() | |
Re: Two things I noticed, on line 7 you're calling $pages_query which is a result set that hasn't been fetched. Should be mysql_result($pages_query, 0) but that's not what's causing your issue. On line 15 you're subtracting 2 from $page vice 1 which is setting your start too far back. `$start = … | |
Re: Easiest way is to pass the id through your function call. `<input type='submit' name='submit' value='remove' onClick='showItem(id)'>` And your function function showItem(itemID) { //You now have your item's ID so you can pull the required data based on that ID } | |
Re: Connect in what manner? You just want the facebook Like, Follow us on Twitter type of things, or are you looking for integration where a user can login to your site with their facebook, twitter account? | |
Re: you would have to use a regex expression to extract that from the url which is somewhat pointless in this case. Not sure what you're trying to accomplish but it may be easier to use the html onclick attribute to call a function with the parameter passed to it: <script> … | |
Re: Google: PHP login tutorial You'll find tons of tutorials and examples. No one here is going to write the code for you. If you get stuck have a specific question, or have a bug in your code then we'll be more than happy to help you out. | |
Re: Disabled check boxes to not send their data on POST. Few alternatives: 1) Keep a hidden element with the check boxes with the same value. 2) Use javascript to enable all the check boxes on submit before the data is sent so they are included 3) Use CSS and JS … | |
Re: Where are you setting your $fname, $lname, $phone etc... variables? | |
Re: You need to set the domain when you're setting the cookie to include subdomains (including www) of that domain. `setcookie('CookieName', 'Cookie Value', time+3600, '', '.xxx.com'); ` Note the preceeding period '.' infront of the domain, that is important. | |
Re: Your load call is only within the document ready so it will only ever get called the once. If you add it to your submit event handler as well it will re-load it on the submit. You might want to add it to the ajaxSubmit success option so it only … | |
Re: <div style="float: left; background-color: white;"> <img src="Images/Books.jpg" alt="Books" width="225" height="125"/> </div> <div class="clear: both;"> </div> <div id="left-col">some text</div> | |
Re: Yes you can have as many scripts as you want on a single page. Is this throwing a JS or PHP error? |
The End.