Search found 292 matches

by smpdawg
Fri Mar 11, 2005 8:55 pm
Forum: PHP - Code
Topic: [SOLVED] adding a percent sign into the variable
Replies: 5
Views: 935

Code: Select all

select * from tbl where userName = '{$select}' and date like '{$date1}%'
by smpdawg
Mon Mar 07, 2005 6:50 pm
Forum: PHP - Theory and Design
Topic: When should a class be used?
Replies: 80
Views: 35520

Incidentally, how do you pass vars around in your non-OOP "OOD"?
Don't go there, we will spin off in an entirely different and ugly direction. ;)
by smpdawg
Mon Mar 07, 2005 5:01 pm
Forum: PHP - Theory and Design
Topic: When should a class be used?
Replies: 80
Views: 35520

I had actually made those same points a while ago in this thread and the consensus seems to be this. I believe what I believe. You believe what you believe. etc. There seems to be little room for discussion when it comes to those of us that have been programming for some time and have made up our ow...
by smpdawg
Mon Mar 07, 2005 4:51 pm
Forum: PHP - Code
Topic: Odd session error
Replies: 7
Views: 1758

Understandable.

Do you have error_reporting set to E_ALL and display_errors on?

Do you get any feedback from PHP about what is happening?
by smpdawg
Mon Mar 07, 2005 3:26 pm
Forum: PHP - Code
Topic: Odd session error
Replies: 7
Views: 1758

This is odd to say the least. I use code that is very similar to yours and haven't encountered this. Do you have a test area that we can log into to see what may be happening?
by smpdawg
Mon Mar 07, 2005 3:08 pm
Forum: PHP - Code
Topic: Image Type (photo album)
Replies: 12
Views: 1787

There are some good classes on phpclasses.org that would simplify your task.
by smpdawg
Mon Mar 07, 2005 2:53 pm
Forum: PHP - Code
Topic: Odd session error
Replies: 7
Views: 1758

Out of curiousity, please place an echo $sql; after this line.

Code: Select all

$sql = "SELECT * FROM SYS_staff WHERE username='$usernameї1]'";
by smpdawg
Mon Mar 07, 2005 2:46 pm
Forum: PHP - Code
Topic: potential problems with $PHP_SELF?
Replies: 21
Views: 2549

You can check register_globals by running phpinfo() and looking for the entry that mentions register_globals. If it is off, you will not be able to access post variables, etc. by name and must you the $_POST superglobal instead. BTW - This is the preferred behavior in PHP. So instead of saying this ...
by smpdawg
Mon Mar 07, 2005 2:31 pm
Forum: PHP - Code
Topic: simplexml & foreach error
Replies: 3
Views: 870

1. Please edit your existing post and use the code tags.

2. Is this test page somewhere that we can view it?
by smpdawg
Mon Mar 07, 2005 2:27 pm
Forum: PHP - Code
Topic: Uncaught exception 'com_exception' with message
Replies: 3
Views: 1440

You would need Word installed to do COM automation.
by smpdawg
Mon Mar 07, 2005 2:20 pm
Forum: PHP - Code
Topic: potential problems with $PHP_SELF?
Replies: 21
Views: 2549

I never saw the answer to the question about register_globals. Is it on or off right now?
by smpdawg
Sun Mar 06, 2005 12:01 pm
Forum: Databases
Topic: No errors coming up!!!!
Replies: 23
Views: 2412

The form looks normal. Please post the structure of the parts table.
by smpdawg
Sat Mar 05, 2005 10:07 pm
Forum: PHP - Code
Topic: How to filter one database query by another
Replies: 2
Views: 649

Perhaps this will help. Fix the $product_id so it matches whatever variable you were going to send to the query.

Code: Select all

SELECT a.* FROM products p, accessories a WHERE (p.vehicle_type = a.vehicle_type) AND (p.id = $product_id)
by smpdawg
Sat Mar 05, 2005 6:40 pm
Forum: Databases
Topic: No errors coming up!!!!
Replies: 23
Views: 2412

Are you POSTing data from a PHP script or HTML? Post the form portion of it here I can take a look at it.
by smpdawg
Sat Mar 05, 2005 5:51 pm
Forum: PHP - Code
Topic: Beginner Q: Need help linking...
Replies: 11
Views: 1665

It is a very valid point and I wasn't trying to minimize the importance of what you said.