Posts
 
Reputation
Joined
Last Seen
Ranked #336
Strength to Increase Rep
+10
Strength to Decrease Rep
-2
89% Quality Score
Upvotes Received
86
Posts with Upvotes
74
Upvoting Members
47
Downvotes Received
12
Posts with Downvotes
11
Downvoting Members
7
33 Commented Posts
2 Endorsements
Ranked #621
Ranked #161
~613.31K People Reached
About Me

Software developer and gamer

Interests
None, I am 100% inactive and like nothing :D
PC Specs
Phenom II X4, 16GB Ram, Radeon HD5770
Favorite Tags
Member Avatar for Duki

I have roast potatoes with beef and veg (Gravy as well, of course). Simple but tasty :)

Member Avatar for Dani
22
17K
Member Avatar for sam023

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 …

Member Avatar for Dani
1
33K
Member Avatar for mrcniceguy

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 …

Member Avatar for ashkan_3
0
9K
Member Avatar for camelNotation

[QUOTE=ardav;1171804]Camtasia Studio 6[/QUOTE] Looks like it has quite a few features, but it is rather expensive :-O

Member Avatar for Andre_14
0
2K
Member Avatar for Espanhol

You need to replace 'your_username' and 'your_password' with the username and password for the MySQL database.

Member Avatar for ray101
0
391
Member Avatar for vegaseat

[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!

Member Avatar for vegaseat
11
9K
Member Avatar for shahiduop
Member Avatar for pushpatiwari
0
2K
Member Avatar for oskido2010

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 …

Member Avatar for diafol
0
234
Member Avatar for BeckyAnne87

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 …

Member Avatar for diafol
0
5K
Member Avatar for Zurompeta

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 …

Member Avatar for dave.shaw.37
0
1K
Member Avatar for jakx12

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 …

Member Avatar for wadeshuler
0
4K
Member Avatar for happygeek

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 …

Member Avatar for ­V­­
4
381
Member Avatar for antwan1986

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?

Member Avatar for com00085
0
3K
Member Avatar for >shadow<

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 …

Member Avatar for stultuske
0
450
Member Avatar for atkinsonsits

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 …

Member Avatar for Icone
0
1K
Member Avatar for PriteshP23

> 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 …

Member Avatar for PriteshP23
0
203
Member Avatar for pavitrakannan

`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.

Member Avatar for Will Gresham
0
135
Member Avatar for Clanstrom

$_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']

Member Avatar for simplypixie
0
242
Member Avatar for <M/>

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.

Member Avatar for <M/>
0
122
Member Avatar for DaveyMoyes

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 …

Member Avatar for hakeemtunde
0
315
Member Avatar for mbhanley

It might help to post some code, but the most likely reason is an error with the callback function in your ajax call.

Member Avatar for mbhanley
0
2K
Member Avatar for <M/>

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.

Member Avatar for Will Gresham
0
187
Member Avatar for maki.tabasa

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 …

Member Avatar for Will Gresham
0
259
Member Avatar for James singizi

You can set the order that the data comes in your query, example MySQL: SELECT * FROM `table` WHERE `column` = "value" ORDER BY `column` ASC

Member Avatar for James singizi
0
103
Member Avatar for Clanstrom

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 …

Member Avatar for moneeshot
0
248
Member Avatar for rm_daniweb

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 …

Member Avatar for talad
0
3K
Member Avatar for sillyboy
Member Avatar for rori

[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.

Member Avatar for joelbezerrapinho
0
253
Member Avatar for jdgieschen

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 …

Member Avatar for jdgieschen
0
896
Member Avatar for Will Gresham

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 …

Member Avatar for peter_budo
0
129