Search Results

Showing results 1 to 18 of 18
Search took 0.01 seconds.
Search: Posts Made By: tomjohnson
Forum: PHP Aug 23rd, 2008
Replies: 83
Views: 4,596
Posted By tomjohnson
Thanks for all of your help Langsor! I will review your example and this entire nights postings.
Forum: PHP Aug 23rd, 2008
Replies: 83
Views: 4,596
Posted By tomjohnson
Hey Langsor, I understand.. Get some rest. To answer your question, it is the latter. It is an array. I have the results from the db loaded into an array and then call them out with the foreach. The...
Forum: PHP Aug 23rd, 2008
Replies: 83
Views: 4,596
Posted By tomjohnson
LOL... I get that all the time too. :)


Ok, in the report.txt file, no.. I only have straight html code in there. I don't have any php or anything else in that txt file.


This sounds like the...
Forum: PHP Aug 23rd, 2008
Replies: 83
Views: 4,596
Posted By tomjohnson
Yes Langsor, this is what I am trying to do. Hooray!. However, it doesn't work. :)
Forum: PHP Aug 23rd, 2008
Replies: 83
Views: 4,596
Posted By tomjohnson
Yes, this is exactly what it looks like. The tags are empty just like you have them and I reference the ids in the dom.

I drew you a cute little paint photo but I see that I can't upload files...
Forum: PHP Aug 23rd, 2008
Replies: 83
Views: 4,596
Posted By tomjohnson
LOL.. I'm also laughing... I also am very dense and stubborn. :) I am going to throw together some actual sample data for you to look at. Maybe visualizing it will help. brb
Forum: PHP Aug 23rd, 2008
Replies: 83
Views: 4,596
Posted By tomjohnson
I'm not sure if we are on the same page. Please let me explain again what I am trying to do, using your dom.

I have a plain old txt file with html in it. I am only interested in changing what is...
Forum: PHP Aug 23rd, 2008
Replies: 83
Views: 4,596
Posted By tomjohnson
Smartie.. :) I didn't even thing about using a switch. Thanks. Looks better too. :)

This is the loop that needs to loop the database records.

require_once("db.php");
$db = new...
Forum: PHP Aug 23rd, 2008
Replies: 83
Views: 4,596
Posted By tomjohnson
Congrats on that. I bet it will be nice. You do some nice coding also. A lot of c syntax I see. I am not that advanced yet but I can can get the idea of what is happening.

I must have missed this...
Forum: PHP Aug 23rd, 2008
Replies: 83
Views: 4,596
Posted By tomjohnson
Langsor:

here is the dom
$doc = new DOMDocument('1.0');
$doc->loadHTMLFile( 'report.txt' );

$tags = $doc->getElementsByTagName('*');
foreach ( $tags as $i => $tag )
{
if (...
Forum: PHP Aug 23rd, 2008
Replies: 83
Views: 4,596
Posted By tomjohnson
I know how that can be. It can be equated to eating too much cheesecake sometimes. I feel like that quite often and have yet to learn that taking small breaks will help.


Ok, now on this, That...
Forum: PHP Aug 23rd, 2008
Replies: 83
Views: 4,596
Posted By tomjohnson
Hi Langsor, I am using php5.

What I have so far are 3 files. I don't know what the heck is going on with the dom and don't truly understand how it ties together. Here is the loop that is working...
Forum: PHP Aug 20th, 2008
Replies: 83
Views: 4,596
Posted By tomjohnson
And.... We're back. :) Looks like ol Dani put the fire to the monkeys to send me the reverification email. I got it this morning if you can believe that. 14 hours later?? Wow. Great system they have
Forum: PHP Aug 18th, 2008
Replies: 83
Views: 4,596
Posted By tomjohnson
Hi langsor. Thank you for the response, help and comment about my sql. :) I'd be happy to help. I have always been more of a database guy than a programmer.

Let me see if I can try and give you...
Forum: PHP Aug 18th, 2008
Replies: 83
Views: 4,596
Posted By tomjohnson
Hello everyone. I have never really ever had a handle on nested loops and would like to optimize this piece of code. What I have works but I am not happy with it. The first query sets up the...
Forum: PHP Oct 20th, 2007
Replies: 3
Views: 3,104
Posted By tomjohnson
Hey guys,

Thanks for the response.. These are really good ideas and I am going to try and implement them. I will post back and let you huys know how it went. :)
Forum: PHP Oct 20th, 2007
Replies: 3
Views: 3,104
Posted By tomjohnson
Hello everyone,

I have a bit of a problem. I am in the middle of developing a site that needs to use transactions. I have several different tables that comprise a single insert form. Table A, B...
Forum: Database Design Sep 5th, 2007
Replies: 1
Views: 1,113
Posted By tomjohnson
Hi all. My first post here. I would like to know if someone can give me some advice on how to model inventory that comes in and goes out and then comes back in again. The inventory is basically...
Showing results 1 to 18 of 18

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC