- Strength to Increase Rep
- +10
- Strength to Decrease Rep
- -2
- Upvotes Received
- 86
- Posts with Upvotes
- 74
- Upvoting Members
- 47
- Downvotes Received
- 12
- Posts with Downvotes
- 11
- Downvoting Members
- 7
Software developer and gamer
- Interests
- None, I am 100% inactive and like nothing :D
- PC Specs
- Phenom II X4, 16GB Ram, Radeon HD5770
Re: I have roast potatoes with beef and veg (Gravy as well, of course). Simple but tasty :) | |
Re: That will remove any preceding or trailing white space from the string. Also, you may want to phrase your initial question better :P You asked for a script to add a space 'after every 4 digits' which is what you got.. \w will match a-z, A-Z, 0-9 and underscores, so … | |
Re: The simplest way to do this would be to read the number of active sessions as nikesh.yadav said. I have added the code I use on my sites to give an example: [code=php] <? $number=0; // define the directory to save sessions in session_save_path("session_directory"); session_start(); // set the session as … | |
Re: [QUOTE=ardav;1171804]Camtasia Studio 6[/QUOTE] Looks like it has quite a few features, but it is rather expensive :-O | |
Re: You need to replace 'your_username' and 'your_password' with the username and password for the MySQL database. | |
Re: [QUOTE=GrimJack;1038560]The Oasis Of The Sea is 5 times larger than the Titanic and 3 times larger than QE2.[/QUOTE] :-O That is a huge ship! | |
Re: [url]http://lmgtfy.com/?q=delete+multiple+records+using+checkboxes+in+php[/url] | |
Re: Add a friends table to the database, with something along the lines of the following: id: int - Unique ID, auto increment. user1: int - ID of the user who sent the friend request user2: int - ID of the user receiving the request status: bool - Whether or not … | |
Re: When you upload the image, get the files location. Store the file location into the database and when the profile page is viewed, echo a img tag with the location field as the 'src' value. The other way would be to actually save the data from the image into a … | |
Re: Do you have a re-direct on the logout.php script? If you do comment this out and run the code to see if the cookies are being deleted at all, its possible depending on how your script works that it is re-creating the cookies when the user is re-directed. The code … | |
Re: Did you start a session [icode]session_start()[/icode] or did you just assign a session variable [icode]$_SESSION['someitem'] = 'somevalue';[/icode]? Try this to assign the session value: [code=php] <?php // Start/register the session session_start(); // Assign the variable $_SESSION['logged_in'] = 'logged.in'; ?> [/code] And this to check the session: [code=php] <?php // Check … | |
Re: I thought my collection was big... Sega Master System II N64 Gameboy (Original, Pocket and Colour) PlayStation (Both big and small case) SNES All working and still used from time to time :D I also have an XBOX, PS2 and PSP... but they don't count as vintage yet.. Though I … | |
Re: Yes, you could use a foreach statement to do this: [code=php] foreach($_POST as $key => $value) { // Process here using $value for the content of the field. } [/code] Is that what you're looking for? | |
Re: My library is about 30GB which is just right for my 30GB iPod, I have recently removed all the stuff I don't listen to anymore (about 11 months since I reinstalled windows and I deleted the ones with 0 play count It was 60GB =O ) But then, 8GB of … | |
Re: The benefit of using DateTime is that you can perform actions on the data in the query, MySQL has a host of functions that will work on DateTime fields. If you really need the date as a Unix timestamp, then there is a MySQL function to convert DateTime to a … | |
Re: > Lines 24+27: You don't use a comma to concatenate a string. Actually, you can in an echo. echo is a language construct, and can take multiple arguments. If you want to get down to micro seconds, it is also slower to use concatenation in an echo instead of comma … | |
Re: `mysql_fetch_array` returns either a resource, or false. If it returns false, then there is an error in your query. It is always good to check if the query result was false so you can debug and SQL errors. | |
Re: $_GET is an array, not a functon. If your URL was http://localhost/DIRECTORY/FINAL/ref.php?id=category&another=test&another2=test2 for example, you could use $_GET['id'] $_GET['another'] $_GET['another2'] | |
Re: You don't need MySQL to store data in a CSV, if you are using CSV for storing data rather than reporting on or exporting data, then I would have to wonder why you aren't just storing it in MySQL. The function you need is fputcsv, plently of examples on google. | |
Re: So much wrong information here, if I were you I'd disregard all the things LastMitch has posted. 1. You can use multiple header() calls. 2. $_SERVER['PATH_INFO'] will not give you the UserAgent, it's to do with the query string. 3. All changing the URL to what LastMitch suggested will do … | |
Re: It might help to post some code, but the most likely reason is an error with the callback function in your ajax call. | |
Re: It will be showing all the time because you are checking if the captcha response only, you will need to also check if the form has been submitted otherwise the IF will always validate to true. | |
Re: mysql_query will return either a resource, or a boolean FALSE depending on the query result. Boolean FALSE means that there is an error in your query. It is good practice to try and catch errors in your code, so that messages like this do not appear, for example, on any … | |
| Re: You can set the order that the data comes in your query, example MySQL: SELECT * FROM `table` WHERE `column` = "value" ORDER BY `column` ASC |
Re: If the example provided in your post is what you are using, then you are not getting any output because of the following errors: - Your form action is page1.php, not page2.php, so you never POST the data to the second script. - The value attribute of your hidden tag … | |
Re: The code you put would be exactly the same as typing [code=html] <script language="javascript" type="text/javascript"> function ILovePHP() { b = "I love PHP ! by Arman de Guzman de Castro :-)"; alert(b); } </script> [/code] As ShawnCplus said, PHP is not being run in the onChange event. To 'run' PHP … | |
Re: [QUOTE=mom_of_3;602933]If the register globals are set to off then you are going to have to use $_POST. [/QUOTE] If register globals is on, turn it off, this is possibly the worst function ever, it encourages slack programming and security problems. | |
Re: Blindly copying $_POST variables into $_SESSION variables is doing nothing different than your first script. At the very minimum you should be doing a isset() check on them to see if they contain any data before assigning the session variable. That way you won't be overwriting the session contents with … | |
Hello I am here seeking knowledge of people who actually know what they are talking about. In mobile development, specifically Andriod, is there any reason to use [icode] variable1 = variable1 + variable2[/icode] over [icode]variable1 += variable2[/icode]? This was a subject that came up recently and my lecturer simply said … |