TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Showing results 1 to 25 of 110
Search took 0.03 seconds.
Search: Posts Made By: Dave
Forum: Absolute Beginners 03-16-2010, 01:17 PM
Replies: 8
Views: 629
Posted By Dave
I thought that had all been disproved, and Al...

I thought that had all been disproved, and Al Gore had switched to .NET.
Forum: Absolute Beginners 03-15-2010, 09:36 PM
Replies: 8
Views: 629
Posted By Dave
What does this function do?

Could someone briefly explain this function?

function l($var)
{
global $l;
return $l[$var];
}

Thanks!
Forum: Absolute Beginners 02-02-2010, 12:50 PM
Replies: 7
Views: 843
Posted By Dave
Will do. Also, I'm going to go through this...

Will do. Also, I'm going to go through this thing again with a fine-tooth comb and will hopefully find something. It is interesting how this little thing has given me so much trouble!
Forum: Absolute Beginners 02-02-2010, 03:17 AM
Replies: 7
Views: 843
Posted By Dave
Thanks again. I've reworked my script and have...

Thanks again. I've reworked my script and have posted it below. The problem is that after some rows are selected by checkboxes and the submit button is clicked, the $_POST array is empty, using...
Forum: Absolute Beginners 02-01-2010, 02:02 PM
Replies: 7
Views: 843
Posted By Dave
Thanks, maeltar... Yes, I have all that set up...

Thanks, maeltar...

Yes, I have all that set up and I have tried many unsuccessful variations. I really need to know what goes into the attributes of the <INPUT...>, and also how to process this at...
Forum: Absolute Beginners 02-01-2010, 05:40 AM
Replies: 7
Views: 843
Posted By Dave
Checkboxes and db rows

Hello again.

I have a query that pulls rows from a mysql db. The data is displayed in a simple HTML table. The first column of the HTML table has a checkbox for each row. It looks a little like...
Forum: Absolute Beginners 11-06-2009, 03:39 PM
Replies: 3
Views: 743
Posted By Dave
Thanks. I take it that, when PHP is directed to...

Thanks.

I take it that, when PHP is directed to a location, e.g., http://localhost/myfolder/mysubfolder, it will automatically try to open an index.php file within "mysubfolder." Is this...
Forum: Absolute Beginners 11-06-2009, 11:52 AM
Replies: 3
Views: 743
Posted By Dave
<a href...> question

The code below is from a simple social networking application that I'm studying (not interested in making a social network app, but the code is interesting to follow).

The table USERS has the...
Forum: Absolute Beginners 11-02-2009, 02:47 AM
Replies: 3
Views: 6,431
Posted By Dave
Guestbook script does not use a db...?

I like to read simple scripts in hopes that I might accidentally learn something. I downloaded a one-file script entitled "guestbook.php. The notes said:

--> Doesn't use database. Writes all info...
Forum: Absolute Beginners 10-31-2009, 12:18 AM
Replies: 13
Views: 5,129
Posted By Dave
Yes, thanks very much. That works...

Yes, thanks very much. That works perfectly!

The script I was using to learn from used the fgets() function. Later in the script, the split() function was used, based on a comma delimiter.

So, in...
Forum: Absolute Beginners 10-30-2009, 05:04 PM
Replies: 13
Views: 5,129
Posted By Dave
I'm a little confused. The tab delimiter is not...

I'm a little confused. The tab delimiter is not working properly.

I'm attaching a csv file (mycsvfile.txt) which, I think, is comma-delimited. I'm still inappropriately getting 2 separate fields...
Forum: Absolute Beginners 10-30-2009, 02:48 PM
Replies: 13
Views: 5,129
Posted By Dave
Here are a few lines below. Only 2 fields: a...

Here are a few lines below. Only 2 fields: a name field and an ID field. As you can see, the name field contains commas. When the program reads the CSV file, it generates a third field because it...
Forum: Absolute Beginners 10-30-2009, 02:04 PM
Replies: 13
Views: 5,129
Posted By Dave
Just wanted to make sure I'm on the right path. ...

Just wanted to make sure I'm on the right path. So, I did a "search & replace" in the CSV file and changed the commas in the name field to the ASCII value.

The HTML table then displayed the...
Forum: Absolute Beginners 10-30-2009, 01:48 PM
Replies: 13
Views: 5,129
Posted By Dave
Right. That's the problem. The comma-delimited...

Right. That's the problem.

The comma-delimited CSV file contains commas in the NAME field (e.g., "Doe, John"), but my delimiter in the program I'm studying is a "," (comma).

Thus, when the file is...
Forum: Absolute Beginners 10-30-2009, 03:45 AM
Replies: 13
Views: 5,129
Posted By Dave
Thanks! I'll try it, but I know I'll have a...

Thanks! I'll try it, but I know I'll have a follow-up question!
Forum: Absolute Beginners 10-30-2009, 01:20 AM
Replies: 13
Views: 5,129
Posted By Dave
Importing comma-delimited csv file, containing commas

I'm working on learning how a particular script works. The script imports a comma-delimited text file, and outputs the contents to an HTML table.

The file contains a name field, i.e., "Doe, John"...
Forum: Absolute Beginners 10-28-2009, 02:49 AM
Replies: 6
Views: 871
Posted By Dave
Thanks. I had read the PHP manual advisory...

Thanks. I had read the PHP manual advisory previously, but since then I have also read a couple of blogs about how great extract() was. But I hadn't thought about it overwriting existing variables,...
Forum: Absolute Beginners 10-28-2009, 01:23 AM
Replies: 6
Views: 871
Posted By Dave
$_POST: Are both approaches equally good?

Take a look at the code below regarding POST. Which is better?

$sql = "SELECT teachername
, statecourse
, semester
, meetingcode
,...
Forum: Absolute Beginners 10-27-2009, 10:10 PM
Replies: 2
Views: 724
Posted By Dave
Yesss! The echo solves the problem!

Yesss! The echo solves the problem!
Forum: Absolute Beginners 10-27-2009, 09:49 PM
Replies: 2
Views: 724
Posted By Dave
Wait... Should statement #2 be...? value =...

Wait...

Should statement #2 be...?

value = "<?php echo $varname ; ?>"

...Just thought about the ECHO.

Dave
Forum: Absolute Beginners 10-27-2009, 09:39 PM
Replies: 2
Views: 724
Posted By Dave
$_POST problem

I working on another "learning" project. In this one, I am attempting to move a radio button selection ("varname") to another page in order to do a MySQL query, etc., using the $_POST method.

Both...
Forum: The Lounge 10-27-2009, 09:18 PM
Replies: 2
Views: 578
Posted By Dave
Yep, you're right. BTW, Gecko is written in...

Yep, you're right. BTW, Gecko is written in C++.

Dave
Forum: The Lounge 10-27-2009, 12:08 AM
Replies: 2
Views: 578
Posted By Dave
Mozilla 1.9 branch?

I'm using the free Komodo Edit 5.2 editor, which I really like. The ActiveState website says this:

"Komodo is now built on the Mozilla 1.9 branch, the same code base Firefox 3.0 is built on."

Does...
Forum: Absolute Beginners 10-20-2009, 12:54 AM
Replies: 2
Views: 1,146
Posted By Dave
Thanks. I "thought" I understood that the \...

Thanks. I "thought" I understood that the \ character allowed the next character to not be literally taken (e.g., \n). However, I have now re-learned that it depends on the character, e.g., \" vs...
Forum: Absolute Beginners 10-18-2009, 09:11 PM
Replies: 2
Views: 1,146
Posted By Dave
onfocus and onblur events -- I'm confused, of course...

This is the first time I have dealt with onfocus and onblur. I researched it, so I know a little more that I did.

In the following example snippet, however, I don't get the \" part. I know that...
Showing results 1 to 25 of 110

 

All times are GMT. The time now is 07:49 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design