Posts
 
Reputation
Joined
Last Seen
Ranked #339
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
~616.03K 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

492 Posted Topics

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
395
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
238
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
383
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
453
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
206
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
136
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
244
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
125
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
321
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
191
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
260
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
104
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
253
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
260
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
909
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
131
Member Avatar for Will Gresham

Very simple question, looking on google brings up plenty of MySQL resources on triggers but I can't find the answer I am looking for. What I want to know is; When I perform a query on a database from PHP, Does MySQL provide any way for PHP to know a …

Member Avatar for mschroeder
0
221
Member Avatar for adkool

[QUOTE=vegaseat;1098264]I have totally switched to Mozilla Firefox. I really like the user interface.[/QUOTE] And Greasemonkey :D Best extension ever.

Member Avatar for crunchie
2
896
Member Avatar for OmniX

Very informative :) I will remember this one for future reference. Rep+ for you all :)

Member Avatar for Stefano Mtangoo
2
2K
Member Avatar for Will Gresham

Hello all, I have an issue with a class I am writing which is supposed to be able to multiple 2 matrices together. The issue I am having is not the actual multiplication (That bit works, thanks for the pointers yesterday). The problem, or so I assume, is with my …

Member Avatar for Fbody
0
156
Member Avatar for Will Gresham

Hello, I am having an issue with C++. I am relatively new to this language. The issue I am having is that I am unable to use a variable declared as private in my class. Definition: [code] class Matrix { public: Matrix(void); Matrix(int rows, int cols); Matrix(const Matrix& m); ~Matrix(void); …

Member Avatar for JasonHippy
0
163
Member Avatar for KBL

Make sure all PHP code which deals with sessions, cookies or such is above any output, for example; you have HTML above the PHP code, which will cause the headers to be sent, after which you cannot do session_start();. Always initiate sessions as the first line of the file (after …

Member Avatar for vibhaJ
0
245
Member Avatar for neclark2

The GD Library will alow you to add text to an image, the GD library can be obtained from [url]http://www.libgd.org/Main_Page[/url]

Member Avatar for cereal
0
757
Member Avatar for smith09

I'll go ahead and say what you are all (probably) thinking: Pictures and videos of pretty ladies (and men) in various states of undress and undertaking various activities not suitable for the minors present :) Or to put it bluntly, porn :P Edit: almostbob beat me to it...

Member Avatar for savis1
-6
823
Member Avatar for major_tom3

[QUOTE=major_tom3;1162094]1. Software developers are keyboard-friendly. When we've entered our log-in and password, we don't want to reach for the mouse to click on 'Go,' we want to tab to it. The tab key doesn't take you to it, however. It most definitely should.[/QUOTE] Hm, I will disagree with you there. …

Member Avatar for Dani
1
191
Member Avatar for coolest_987

If by control key you mean the key on the keyboard, you cannot with PHP. While it is possible to disable keys using Javascript, the user turning off Javascript would render this useless. Why would you want to disable a key anyway?

Member Avatar for coolest_987
0
1K
Member Avatar for devilstar1987

An array holds data, it does not display anything. As Ardav says, I suspect that the output of your [icode]<input>[/icode] or [icode]<button>[/icode] tag is what is causing the issue here.

Member Avatar for diafol
0
107
Member Avatar for jacob21

[QUOTE=jacob21]Hi,This is code [CODE]if(isset($_POST['submit']))//for email { $subject=$_POST['subject']; $desc=$_POST['desc']; $category=$_POST["category"]; $experience=$_POST['experience']; $location=$_POST['location']; $company=$_POST['company']; $dop=$_POST['dop']; [/CODE][/QUOTE] 1. Go read this:[url]http://www.tizag.com/mysqlTutorial/mysql-php-sql-injection.php[/url] 2. Implement this: [url]http://php.net/manual/en/function.mysql-real-escape-string.php[/url] 3. Never trust submitted values [QUOTE=jacob21][CODE]if(isset($_POST['submit']))//for email $result= mysql_query("INSERT INTO `ihm` (`subject`, `desc`, `category`, `experience`, `location` ,`company` ,`dop`) VALUES ('$subject', '$desc', '$category', '$experience', '$location' ,'$company' ,'CURDATE()');"); [/CODE][/QUOTE] Why …

Member Avatar for perfectweb
0
171
Member Avatar for Will Gresham

Hello all. I am receiving Bluescreens when I boot my PC up, randomly one of the 3 above. This is not every time I boot the system, but at least 70% of the time. This started when I installed a new graphics card into the PC (ATI HD5770), so my …

Member Avatar for tje210
0
144
Member Avatar for jake1496

[QUOTE=jwenting;1138145]There is no "best", nor can there be. Not only don't you supply any criteria to use in defining "best" that can be scientifically measured, you don't know all games out there so can't even apply those criteria to every game in existence in order to see how well it …

Member Avatar for davidlouis88
-8
863
Member Avatar for Will Gresham

Hi all. I am building a program to emulate a game 'Boggle', and have hit a dead end. I have tried to search for hints online as to what I need to do from here, but everything I find is either just a block of code sparingly commented or doesn't …

Member Avatar for Momerath
0
89
Member Avatar for lse123

Any reputable search engine will provide details of the company in their user agent string, use [icode]$_SERVER['HTTP_USER_AGENT'][/icode] to check this. There is plenty of information online with lists of search engine agents. Even going to google and entering the exact title of this thread brings up enough information that you …

Member Avatar for Will Gresham
0
82
Member Avatar for dinoboy

Look closely as the line: [CODE]echo '<script type="text/javascript"> doDecryption("<?php $myValue; ?>"); </script>';[/CODE] See anything wrong? I would suggest not outputting HTML code in an echo statement, but it is entirely up to you. If you still don't see the problem, hint ' != "

Member Avatar for Dragonbaki
0
195
Member Avatar for shrirang

A checkbox is a boolean value, look at your database field options; I am fairly confident you will find a boolean option there.

Member Avatar for Dragonbaki
0
66
Member Avatar for shenbagam

Vague question is vague. Are you storing the images as BLOB data? Are you storing a relative or absolute path to the location of the image? Your question cannot be answered without further details.

Member Avatar for stephen_UK
0
104
Member Avatar for zlloyd1

The End.