Re: [PHP] Pass Windows credentials

2007-10-31 Thread Dan Shirah
The server variable AUTH_USER contains the windows login name. If I rememebr correctly, within IIS you need to have your website setup for windows authentication. Otherwise you will only be pull the Anonymous access name for your server. I haven't worked much on Linux, so I don't know if there is

Re: [PHP] Email question

2007-10-31 Thread Dan Shirah
Couldn't you just use the wordwrap function? Something like this: $my_text = "This is a story all about how my life got flipped turned upside down. I'd like to take a minute just sit right there, I'll tell you how I became the Prince of a town called Belaire." $my_wrapped_text = wordwrap($my_text

Re: [PHP] Function return

2007-11-02 Thread Dan Shirah
Okay, so instead I should probably use: if($due_date != "") $insert2.=", due_date='$due_date'"; Instead of using empty() On 11/2/07, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > On 11/2/07, Dan Shirah <[EMAIL PROTECTED]> wrote: > > > &

[PHP] Function return

2007-11-02 Thread Dan Shirah
TGIF!! I have an insert statement that checks to see if a condition is met. If it is, then it adds that value to the insert statement. However, when I try to run it I get the error: Can't use function return value in write context Below is a sample of what I am using which gives me the error(Th

Re: [PHP] Function return

2007-11-02 Thread Dan Shirah
Ah, okay. So I could probably simplfy it more by trimming it from the start like this?? $due_date = trim($_POST['due_date']); On 11/2/07, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > On 11/2/07, Dan Shirah <[EMAIL PROTECTED]> wrote: > > > > Okay, so i

Re: [PHP] Function return

2007-11-02 Thread Dan Shirah
format I want. :) On 11/2/07, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > On 11/2/07, Dan Shirah <[EMAIL PROTECTED]> wrote: > > > > Ah, okay. So I could probably simplfy it more by trimming it from the > > start like this?? > > > > $due_date = tri

Re: [PHP] Loop issues

2007-11-16 Thread Dan Shirah
into my table? On 11/16/07, Daniel Brown <[EMAIL PROTECTED]> wrote: > > On Nov 16, 2007 1:57 PM, Dan Shirah <[EMAIL PROTECTED]> wrote: > [snip!] > > if($cs_num > 0) { > >while ($cs_row = mssql_fetch_array($cs_type)) { > > $cs_type2 = $cs_r

[PHP] Loop issues

2007-11-16 Thread Dan Shirah
lated to my table is James Smith. Because of this I think I need to put a loop where the echo "$cs_name\n"; is so it will loop through all of the returned names and show them all. I have tried a for, foreach and while loop but I just can't seem to wrap my fingers around the right way to use it. Any help is appreciated. Thanks, Dan

Re: [PHP] Loop issues

2007-11-16 Thread Dan Shirah
'Alice'. The reason is because the first time > the while loop executes, it sets $name from unset to 'Bob' and on the > second time through, it sets $name from 'Bob' to 'Alice'. The issue > isn't just echoing in a loop, but defining an array

Re: [PHP] Loop issues

2007-11-19 Thread Dan Shirah
7;last_name']."\n"; it is returning something like this: John Smith Bob Smith Jane Smith Robert Smith The gap between the names contains a single space " ". I tried to trim the results but cannot get rid of it. Any ideas? On 11/16/07, Jim Lucas <[EMAIL PROTECTED]>

Re: [PHP] Loop issues

2007-11-19 Thread Dan Shirah
FANTASIC! Worked like a champ! Thank you to everyone. On 11/19/07, Philip Thompson <[EMAIL PROTECTED]> wrote: > > On Nov 19, 2007 12:16 PM, Dan Shirah <[EMAIL PROTECTED]> wrote: > > > Jim, > > > > I used your suggestion and modified it a little bit. All

Re: [PHP] PHP + Amazon to retrieve book data

2007-11-22 Thread Dan Joseph
Hi Scott, This should help: http://hades.phparch.com/ceres/public/article/index.php/art::web_services::php5_soap/2 -Dan Joseph On Nov 21, 2007 7:39 AM, Scott Wilcox <[EMAIL PROTECTED]> wrote: > Hey folks, > > Does anyone have any resources or links to resources concerning > o

[PHP] Batch process PDF files -- reduce color depth and resolution

2007-11-29 Thread Dan Harrington
Hello, Does anyone know of a good PDF library that works well with PHP (or even not) that can process multi-page PDF files (I am talking thousands) and reduce their color depth from color to black and white as well as reduce the resolution. I'd like it to run well on Linux. Thanks Dan --

Re: [PHP] Calling a stored procedure

2007-11-30 Thread Dan Shirah
event_sequence', '$event_code')"; $call_result = ifx_query($connect_id, $call_procedure); } And I get the error: PHP Warning: ifx_query(): supplied argument is not a valid Informix link resource I don't know if this is a step in the right direction or not. On 11/30/07, Dan S

Re: [PHP] Calling a stored procedure

2007-11-30 Thread Dan Shirah
!!! The stored procedure still runs and updates my data correctly. Any ideas what might be throwing that error and how to get rid of it? Thanks! Dan On 11/30/07, Andrés Robinet <[EMAIL PROTECTED]> wrote: > > > -Original Message- > > From: Dan Shirah [mailto:

Re: [PHP] Calling a stored procedure

2007-11-30 Thread Dan Shirah
ormix server to execute the procedure, right? On 11/30/07, Daniel Brown <[EMAIL PROTECTED]> wrote: > > On Nov 30, 2007 1:39 PM, Dan Shirah <[EMAIL PROTECTED]> wrote: > > Hello all, > > > > I am having soem difficulty when trying to call an INFORMIX stored >

[PHP] Calling a stored procedure

2007-11-30 Thread Dan Shirah
rror message: PHP Fatal error: Call to a member function query() on a non-object I have never tried to call a stored procedure in PHP before so I'm not even sure if I am on the right track. Any help is greatly appreciated. Dan

[PHP] Problems with MIME emails and multipart/mixed

2007-12-14 Thread Dan Storm
perfectly in gmail). I cant see what I'm doing wrong. Could anyone please have a look at the two mails I've been comparing and tell me where I go wrong? The mails are located at http://pastebin.ca/815768 -- //Dan Storm -- PHP General Mailing List (http://www.php.net/) To unsubscr

RE: [PHP] Securing your Sites

2007-12-17 Thread Dan Parry
did > them on the source viewing. None of them are executable in that > folder. > > You got it from elsewhere. I thought that too as I checked the site this morning and they all were .phps However, wandering back over there sees that they are all now .tar.gz files and, upon scannin

RE: [PHP] Securing your Sites

2007-12-17 Thread Dan Parry
emonstrating? I'd like to thank you for supplying the source for these exploits... If I've made a mistake and compounded an incorrect situation I do apologise Dan > [EMAIL PROTECTED] wrote: > > I want to personally thank you for 6 hours of work to remove the > > PHP-

[PHP] PGCon 2008 - call for papers

2007-12-20 Thread Dan Langille
proposals 19 Apr 2008 Final papers/slides must arrive no later than this date See also <http://www.pgcon.org/2008/papers.php> Instructions for submitting a proposal to PGCon 2008 are available from: <http://www.pgcon.org/2008/submissions.php> -- Dan Langille - http://www.langille

Re: [PHP] Question about cURL, and iFrames...

2008-02-18 Thread Dan Joseph
he fields, then display the finished product on the screen. One thing you may also want to keep in mind is that I think you'd have to go through and fix the image links and url links if they don't have the full url path in the html. -- -Dan Joseph "Build a man a fire, and he will be w

Re: [PHP] Question about cURL, and iFrames...

2008-02-19 Thread Dan Joseph
ite.com and they are seeing Google's content. If you scrubbed all the hyperlinks and replaced google.com with mykillersite.com, when they clicked on the Advertising link, they'd end up on www.mykillerlink.com/intl//ads/ instead, which would 404 of course unless you created that too. -- -Da

Re: [PHP] checking for and enforcing https

2008-02-25 Thread Dan Joseph
header("Location: > https://".$url.$_SERVER['PHP_SELF']."?".$_SERVER['QUERY_STRING']); >exit; >} > ?> > > An alternative to this if you don't know the port would be to check $_ENV["HTTPS"] for "off": if

Re: [PHP] checking for and enforcing https

2008-02-26 Thread Dan Joseph
for instance. We have a web server here with http and https pointing to the same place. then we have an admin login for the site and we want to force people to go https even though they can do http to get there. So when our users go to http://domain/admin/ it then redirects them to https://domain

Re: [PHP] checking for and enforcing https

2008-02-26 Thread Dan Joseph
On Tue, Feb 26, 2008 at 10:56 AM, tedd <[EMAIL PROTECTED]> wrote: > > So, let's say I wanted script "secure.php" to be forced to use https > -- do I use something like what Dan provided, namely? > > if($_SERVER['SERVER_PORT'] != '

Re: [PHP] checking for and enforcing https

2008-02-26 Thread Dan Joseph
On Tue, Feb 26, 2008 at 11:04 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: > Surely you mean $_SERVER['HTTPS'] and not $_ENV['HTTPS']. > > > woops! yep, I meant $_SERVER, thanks :) -- -Dan Joseph "Build a man a fire, and he will be warm for th

Re: [PHP] Making sure an include file works

2008-02-28 Thread Dan Joseph
rick walls. > > The include itself or the contents in the include file? If you use require() instead of include(), your script will error out if there are any issues with the inclusion of the file. -- -Dan Joseph "Build a man a fire, and he will be warm for the rest of the day. Light

Re: [PHP] Is this the best way?

2008-03-14 Thread Dan Joseph
r if there is a > better way? > > > I don't see anything wrong with that method. One thing I would suggest is that you make username unique in your database if you want to avoid duplicate results. But your way of checking is just fine as it is. -- -Dan Joseph "Build a man a fire

Re: [PHP] Double click problem

2008-03-19 Thread Dan Joseph
our applications here. I ended up adding some javascript to disable the button once clicked, and then putting in code in the php to prevent duplicates. It seemed to do the trick. I can send over some sample code if you need. For the javascript I just made the submit button hit a function, disabl

Re: [PHP] Date Issue

2008-03-31 Thread Dan Joseph
ibe, visit: http://www.php.net/unsub.php > > > > > > > -- > Some people have a "gift" link here. > Know what I want? > I want you to buy a CD from some indie artist. > http://cdbaby.com/from/lynch > Yeah, I get a buck. So? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Well, to re-iterate what Andrew said, you're on the 31st day of the month. Feb 31st translates to March, April 31st translates to May. -- -Dan Joseph "Build a man a fire, and he will be warm for the rest of the day. Light a man on fire, and will be warm for the rest of his life."

Re: [PHP] Include fails when "./" is in front of file name

2008-04-07 Thread Dan Joseph
ple - require_once( "./library/urs/URS.Framework.php" ); His should work fine also. -- -Dan Joseph "Build a man a fire, and he will be warm for the rest of the day. Light a man on fire, and will be warm for the rest of his life."

Re: [PHP] Double billing problem

2008-04-19 Thread Dan Joseph
ww.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Does paypal offer duplicate transaction protection? The merchant providers I've worked with in the past has had it as part of their fraud protection modules. For instance, you can set it how soon after that ca

Re: [PHP] Re: php framework vs just php?

2008-04-22 Thread Dan Joseph
re essentially arguing the same point that everyone else is. You've just isolated it to Radicore. Do you even realize that? -- -Dan Joseph "Build a man a fire, and he will be warm for the rest of the day. Light a man on fire, and will be warm for the rest of his life."

Re: [PHP] Big companies that use PHP?

2008-04-23 Thread Dan Joseph
:) > > > > > > Do any of you know? > > > > And what % of the web market share does PHP take? > > > > > > Thanks, > > Thiago Pojda > > I'm with my 3rd company over $100 million in sales per that uses PHP. There are lots out there. -

Re: [PHP] php 5 and mysql failure

2008-04-30 Thread Dan Joseph
r help, > > YEHUDI GARRETT > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Have you tried output your SQL query and pasting it into mysql to see if it runs? Sounds to me like it isn't a valid query, that would

Re: [PHP] Categories like wordpress

2008-05-01 Thread Dan Joseph
eyword information, then an associations table with the image id and keyword id link. Either way should work ok. -- -Dan Joseph "Build a man a fire, and he will be warm for the rest of the day. Light a man on fire, and will be warm for the rest of his life."

Re: [PHP] Where to start!

2008-05-05 Thread Dan Joseph
ut, maybe you could explain a little more about this application. How big do you think it will be. How much acitivity, etc? That would probably help us point you in the right direction. -- -Dan Joseph www.canishosting.com - Plans start @ $1.99/month. Reseller plans and Dedicated servers available

Re: [PHP] Recommended book on PHP/SOAP

2008-05-05 Thread Dan Joseph
you'll want to grab NuSOAP. Its actually a pretty nice SOAP library. You can ifnd it on google. I was able to work with it by searching for examples just fine. You may not even need a book. -- -Dan Joseph www.canishosting.com - Plans start @ $1.99/month. Reseller plans and Dedicated se

Re: [PHP] Setting up a program that can be accessed by all domain on a server

2008-05-08 Thread Dan Joseph
eb site? If its just needing to get data, you could build a web service and give access to it for all other domains. -- -Dan Joseph www.canishosting.com - Plans start @ $1.99/month. Reseller plans and Dedicated servers available. "Build a man a fire, and he will be warm for the rest of the d

Re: [PHP] Setting up a program that can be accessed by all domain on a server

2008-05-08 Thread Dan Joseph
On Thu, May 8, 2008 at 11:54 AM, Richard Kurth <[EMAIL PROTECTED]> wrote: > Dan Joseph wrote: > >> On Thu, May 8, 2008 at 11:47 AM, Richard Kurth < >> [EMAIL PROTECTED]> >> wrote: >> >> >> >>> I have a program that I am writing that

Re: [PHP] Why doesn't working with array's ever stick in my thick head?

2008-05-09 Thread Dan Joseph
he $_POST array has the proper values stored properly... I just can't seem > to figure out how to work with the values... Any ideas? Or slaps on the back > of the head to wake me up a little? :) > > I need help :P > > > > -- > > Jason Pruim > Raoset Inc. > Techn

Re: [PHP] validating textarea using php

2008-05-13 Thread Dan Joseph
ook thru the comments on http://us.php.net/chop and you'll find a few different ways of doing it. -- -Dan Joseph www.canishosting.com - Plans start @ $1.99/month. Reseller plans and Dedicated servers available. "Build a man a fire, and he will be warm for the rest of the day. Light a man on fire, and will be warm for the rest of his life."

Re: [PHP] JavaScript and PHP

2008-05-14 Thread Dan Joseph
tById('image1').src = " http://portulan-online.net/einstein-"; + + ".png"; You could do that. Also, I'd suggest using $_GET instead of $_REQUEST. Request works,b ut it is very broad. $_GET is more specific/secure. -- -Dan Joseph www.canishosting.com - Plans start @ $1.99/month. Reseller plans and Dedicated servers available. "Build a man a fire, and he will be warm for the rest of the day. Light a man on fire, and will be warm for the rest of his life."

Re: [PHP] Validating Form input

2008-05-14 Thread Dan Joseph
, as JavaScript is unreliable at best. Now, the only real advantage I've seen with JS validation is just to have that first line of validation to save the end user some time in between submits. If you don't want to bother with it, don't. I tend to just for that first layer. --

Re: [PHP] Problems with includes

2008-05-16 Thread Dan Joseph
ire() [function.require]: Failed opening required > '/Tools/dbtools/dbtool.php' (include_path='.:/usr/share/pear') > /srv/www/html/lib/index.php, line 16 > > Am I missing something? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: ht

Re: [PHP] Threads PHP

2008-05-16 Thread Dan Joseph
gt; Phone: +595-961-974165 > Check out: http://pecl.php.net/package/threads That might help you out. -- -Dan Joseph www.canishosting.com - Plans start @ $1.99/month. Reseller plans and Dedicated servers available. "Build a man a fire, and he will be warm for the rest of the day. Light a man on fire, and will be warm for the rest of his life."

Re: [PHP] Problems with includes

2008-05-16 Thread Dan Joseph
On Fri, May 16, 2008 at 3:41 PM, Jim Lucas <[EMAIL PROTECTED]> wrote: > Tyson Vanover wrote: > >> Jim Lucas wrote: >> >> Their are two ways that come to mind. >>> >>> 1. Like Dan suggested, use the full path. >>> >>> 2. (I

Re: [PHP] Problems with includes

2008-05-16 Thread Dan Joseph
On Fri, May 16, 2008 at 4:36 PM, Tyson Vanover <[EMAIL PROTECTED]> wrote: > Jim Lucas wrote: > >> Their are two ways that come to mind. >> >> 1. Like Dan suggested, use the full path. >> >> 2. (I prefer this way), change your include_path setting ei

Re: [PHP] php training institutes

2008-05-17 Thread Dan Joseph
;ll have all the resources you'll need to learn it. -- -Dan Joseph www.canishosting.com - Plans start @ $1.99/month. Reseller plans and Dedicated servers available. "Build a man a fire, and he will be warm for the rest of the day. Light a man on fire, and will be warm for the rest of his life."

Re: [PHP] Enterprise

2008-05-20 Thread Dan Joseph
7;s eyes is that there must be something wrong with it. PHP falls into this category. I work for a large corporation, we use PHP here, Yahoo uses it, a lot of places use it. It can handle enterprise. Really, I think the architecture of the software would dictate that more than that language. -- -

Re: [PHP] page suck attack

2008-05-21 Thread Dan Joseph
Are you talking about a DOS attack? (Denial of Service) -- this is usually where your site is flooded with hits and you can't get to it because its overloaded. -- -Dan Joseph www.canishosting.com - Plans start @ $1.99/month. Reseller plans and Dedicated servers available. "Build a ma

Re: [PHP] PHP eg.

2008-05-30 Thread Dan Joseph
P so that i can > study and learn. > > thank you. > Best thing to do is stay on this mailing list, and use php.net, phpbuilder.com, and other php web sites as a reference. There are a lot of code examples out there. Come up with a project, and start coding. -- -Dan Joseph www.can

Re: [PHP] going from procedural style to object orientated style coding

2008-05-30 Thread Dan Joseph
ling List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > If you want to go the book route, look for "Design Patterns" on Amazon.com, its a good general overview. That's how I got started, from there it starts to become natural for you. Maybe sear

Re: [PHP] About MS SQL Connections...

2008-06-03 Thread Dan Joseph
enas intenciones está empedrado el camino al infierno..." > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > Can you post your code and error so we can take a look? -- -Dan Joseph www.canishosting.com - Plans sta

[PHP] WSDL/SOAP/PHP5

2008-06-06 Thread Dan Joseph
used to generate the WSDL? Should I just abandon PHP5's SOAP and use NuSOAP? -- -Dan Joseph www.canishosting.com - Plans start @ $1.99/month. "Build a man a fire, and he will be warm for the rest of the day. Light a man on fire, and will be warm for the rest of his life."

Re: [PHP] WSDL/SOAP/PHP5

2008-06-07 Thread Dan Joseph
On Fri, Jun 6, 2008 at 6:33 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Fri, Jun 6, 2008 at 2:53 PM, Dan Joseph <[EMAIL PROTECTED]> wrote: > >> Hi Everyone, >> >> I'm struggling with a WSDL trying to make it work right. I don't even >&

[PHP] NuSOAP assistance.

2008-06-08 Thread Dan Joseph
;xsd:string' ), array( 'firstname'=>'xsd:string' ), array( 'lastname'=>'xsd:string' ), array( 'companyname'=>'xsd:string' ), array( 'dealername'=>'xsd:string' ), array( 'contact_address1'=>'xsd:string' ), array( 'contact_address2'=>'xsd:string' ), array( 'contact_city'=>'xsd:string' ), array( 'contact_state'=>'xsd:string' ), array( 'contact_zip'=>'xsd:string' ), array( 'emailaddress'=>'xsd:string' ), array( 'phone'=>'xsd:string' ), array( 'cellphone'=>'xsd:string' ), array( 'fax'=>'xsd:string' ), array( 'contactpref'=>'xsd:string' ), array( 'referral'=>'xsd:string' ), array( 'origin_contactname'=>'xsd:string' ), array( 'origin_contactphone1'=>'xsd:string' ), array( 'origin_contactphone2'=>'xsd:string' ), array( 'origin_address1'=>'xsd:string' ), array( 'origin_address2'=>'xsd:string' ), array( 'origin_city'=>'xsd:string' ), array( 'origin_state'=>'xsd:string' ), array( 'origin_zip'=>'xsd:string' ), array( 'dest_contactname'=>'xsd:string' ), array( 'dest_contactphone1'=>'xsd:string' ), array( 'dest_contactphone2'=>'xsd:string' ), array( 'dest_address1'=>'xsd:string' ), array( 'dest_address2'=>'xsd:string' ), array( 'dest_city'=>'xsd:string' ), array( 'dest_state'=>'xsd:string' ), array( 'dest_zip'=>'xsd:string' ), array( 'vin'=>'xsd:string' ), array( 'year'=>'xsd:string' ), array( 'make'=>'xsd:string' ), array( 'model'=>'xsd:string' ), array( 'color'=>'xsd:string' ), array( 'vehicletype'=>'xsd:string' ), array( 'inop'=>'xsd:string' ), array( 'buyer_id'=>'xsd:string' ), array( 'item_id'=>'xsd:string' ), array( 'engine_size'=>'xsd:string' ), array( 'modified'=>'xsd:string' ), array( 'enclosed_carrier'=>'xsd:string' ), array( 'pickupdate'=>'xsd:string' ), array( 'latestpickupdate'=>'xsd:string' ), array( 'quote_type'=>'xsd:string' ), array( 'savequote'=>'xsd:string' ), array( 'return'=>'tns:VehiclesArray' ), $NAMESPACE ); function getQuote( $quoterequest ) { $vehicle = array(); // Create book (hardcoded author) $vehicle[] = array( 'author' => "Jack London", 'title' => "blah", 'numpages' => "pages", 'toc' => "toc" ); return $vehicle; } $HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : ''; $server->service($HTTP_RAW_POST_DATA); ?> -- -Dan Joseph www.canishosting.com - Plans start @ $1.99/month. "Build a man a fire, and he will be warm for the rest of the day. Light a man on fire, and will be warm for the rest of his life."

[PHP] Row Count

2008-06-10 Thread Dan Shirah
to just be one digit shorter and rounded off. My query is below: Thanks in advance, Dan

Re: [PHP] Row Count

2008-06-10 Thread Dan Shirah
Jay, I am querying an Informix database, not MySQL. When I count the rows against my MSSQL database I do use the mssql_num_rows function and it works great. I tried using the ifx_num_rows function with the ifx_fetch_row function but could not seem to get it to work, so instead I used the ifx_affe

Re: [PHP] Row Count

2008-06-10 Thread Dan Shirah
Sorry about the top posting. You my friend are a genious! $rows = $rowcount['(count(*))'] works like a charm! Thank you all.

Re: [PHP] Row Count

2008-06-10 Thread Dan Shirah
Okay, I decided to try the COUNT method since all I really wanted to get in the first place was how many rows would be returned for a specific query. So, I have the below: I'm not getting any errors, but no number/data displays for $rows when it should be telling me there is over 100,000 record

Re: [PHP] Row Count

2008-06-10 Thread Dan Shirah
print_r($rowcount); returns Array ( [(count(*))] => 110796.0 ) and 110796 is the correct number of rows in my table, but that number isn't coming through the the variable. On 6/10/08, Daniel Brown <[EMAIL PROTECTED]> wrote: > > On Tue, Jun 10, 2008 at 1:43 PM, Dan Shir

Re: [PHP] printer problem with network shared printers

2008-06-11 Thread Dan Shirah
Kasun, I would suggest using simple Javascript to allow them to print. Something like: **THE JAVASCRIPT** **PUT THIS ANYWHERE IN YOUR FORM** Print This Page

[PHP] Result problem

2007-04-25 Thread Dan Shirah
Any ideas why my query only returns the very last record that matches the criteria specified?? $sql_record ="SELECT * FROM payment_request WHERE status_code = 'P'"; $result_record = mssql_query($sql_record) or die(mssql_error()); if(!empty($result_record)) { while ($row_record = mssql_fetch_arr

Re: [PHP] Result problem

2007-04-25 Thread Dan Shirah
Okay, print_r($result_record) for the query result. But I still don't know why it's only returning the last record of the query instead of all the results. On 4/25/07, Zoltán Németh <[EMAIL PROTECTED]> wrote: 2007. 04. 25, szerda keltezéssel 16.56-kor Dan Shirah ezt írta: &g

Re: [PHP] Result problem

2007-04-25 Thread Dan Shirah
PROTECTED]> wrote: On Wed, April 25, 2007 3:56 pm, Dan Shirah wrote: > Any ideas why my query only returns the very last record that matches > the > criteria specified?? > > $sql_record ="SELECT * FROM payment_request WHERE status_code = 'P'"; > $result_r

Re: [PHP] Result problem

2007-04-25 Thread Dan Shirah
it ago. On 4/25/07, Dan Shirah < [EMAIL PROTECTED]> wrote: > > I'm sorry, perhaps I confused everyone by including the print_r. > > My table has 79 records all with a status_code of 'P' that this "should" > be > returning. But instead of all the

[PHP] Similar to yesterday

2007-04-26 Thread Dan Shirah
$id_support contains 8 results $id_traffic contains 0 results (this is correct) $id_card returns a *single* result when it should return an amount equal to the number of records retrieved by $id_support + $id_traffic. So, if $id_support returns multiple records as an array and $sql_card is a quer

Re: [PHP] Re: A problem with passing $_GET in an url

2007-05-03 Thread Dan Shirah
Could you please post your code. It sounds like you have a submit button that when clicked goes to a javascript function which pops up a confirmation box. Is that correct? On 5/3/07, Travis Moore <[EMAIL PROTECTED]> wrote: If you're using window.location="./script.php?var=value", it's not ac

Re: [PHP] Creating a table for login system

2007-05-03 Thread Dan McCullough
http://www.devshed.com/c/a/PHP/Logging-With-PHP/ enjoy! On 3 May 2007 18:38:02 GMT, Karl James <[EMAIL PROTECTED]> wrote: Team, Can you provide a very accurate tutorial on how to create a login system. I am using website to control a fantasy football league and teams. one sign in only for each

[PHP] Limit query results

2007-05-04 Thread Dan Shirah
Good Morning everyone. In the below code I am pulling records from two tables. the records are tied together by a common key in a 3rd table. Everything works correctly down to the $result. // Connect to the database $connection = mssql_pconnect($host, $user, $pass) or die ('server connection

[PHP] Loop problem

2007-05-04 Thread Dan Shirah
Okay, I think this is a 1/2 PHP problem and 1/2 Javascript problem. And I think my Javascript problem is being caused by my PHP. Follow? The code below is a loop of records returned from my query: 1 - If the result is not empty it will loop through the results. 2 - It assigns variables based o

Re: [PHP] Loop problem

2007-05-04 Thread Dan Shirah
ID: Case Number: Payment Amount: $ If 'C' isn't a constant, but rather a dynamic value from a column in a database (named the same as the convention in your example suggests), then simply modify it as such:

Re: [PHP] Problem with mssql_query()

2007-05-09 Thread Dan Shirah
Post your block of code from your connection string (Leave out your username/password info please) to the end of the result set for your query so I can take a look at it. On 5/9/07, Chris Boget <[EMAIL PROTECTED]> wrote: I noticed the following in my logs: 22:04:42 [warning] [D:\PHP\pear\DB\m

[PHP] Include???

2007-05-23 Thread Dan Shirah
Okay, I think I'm doing everything right, but for whatever reason my include isn't working. The echo of my status_code retruns the correct value so the if should trigger. This is my include page: VERY simple, but for some reason is not working

Re: [PHP] Include???

2007-05-23 Thread Dan Shirah
Thank you for all of the quick responses. I guess jumping between ColdFusion, PHP and Informix all day long got the better of me. Thanks again! Dan On 5/23/07, Daniel Brown <[EMAIL PROTECTED]> wrote: On 5/23/07, Greg Donald <[EMAIL PROTECTED]> wrote: > > On 5/23/0

Re: [PHP] Project Management

2007-05-24 Thread Dan McCullough
On 5/24/07, Christian Haensel <[EMAIL PROTECTED]> wrote: Hi Edward, thanks for your comment. I use a lab book too... And already fille two of them in the last 8 weeks I just wanna use the project management thing to collect my ideas, and write a howto for "future generation developers" who

Re: [PHP] Check if Record was Entered Today.

2007-05-24 Thread Dan Shirah
Ave, I have a dbase (dbf) database and I¹m using PHP¹s dbase function to open & search the database. Each row in the database contains an Account Number and the Date it was inserted. I want to search this database for to see if the Account number ($thekey) was inserted today (using date() to fi

[PHP] More include issues

2007-06-06 Thread Dan Shirah
Okay, I'm stumped!!! I have all of my database connection info in a file: connection.php This info is stored in a folder: Connections Example of connection.php: I am trying to include the connection.php file in all of my pages so I don't have to hard code the info into every page. But, my data

Re: [PHP] More include issues

2007-06-06 Thread Dan Shirah
include) it returns an empty drop down and none of the rest of my form is displayed. On 6/6/07, Jim Lucas <[EMAIL PROTECTED]> wrote: Dan Shirah wrote: > Okay, I'm stumped!!! > > I have all of my database connection info in a file: connection.php > This info is stored i

Re: [PHP] More include issues

2007-06-06 Thread Dan Shirah
If I put an echo into my included file, the echo displays on the screen. But no results are returned. However, if I copy the data from my include file and paste it directly into my page, I get the results. On 6/6/07, Stut <[EMAIL PROTECTED]> wrote: Dan Shirah wrote: > I have error_

Re: [PHP] More include issues

2007-06-06 Thread Dan Shirah
_type_code'] == $_POST['credit_card']) echo "{$c['credit_card_type_desc']}\n"; else echo "{$c['credit_card_type_desc']}\n"; } ?> On 6/6/07, Stut <[EMAIL PROTECTED]> wrote: Dan Shirah wrote: > If I put an echo into my in

Re: [PHP] More include issues

2007-06-06 Thread Dan Shirah
st to be safe, but I forgot to do it before posting this one. One thing I'd suggest you add is a check after the mssql_query to see how many rows were returned. Beyond that I'm stumped. -Stut On 6/6/07, Stut <[EMAIL PROTECTED]> wrote: Dan Shirah wrote: > Ask and you shall r

Re: [PHP] More include issues

2007-06-06 Thread Dan Shirah
../../Conn/prpr_mssql.php or ../../Connections/connection.php These are the same file, I was just changing the name to Connections/connection.php for a little added security of my info being on the web is all. On 6/6/07, Jim Lucas <[EMAIL PROTECTED]> wrote: Stut wrote: > Dan Shi

Re: [PHP] More include issues

2007-06-06 Thread Dan Shirah
Using required() it still echoes the text I put in the include file for testing. On 6/6/07, Jim Moseby <[EMAIL PROTECTED]> wrote: > > I have error_reporting set to E_ALL and display_errors is set to On. > > And no errors are displayed As a troubleshooting step, use require() instead if includ

Re: [PHP] More include issues

2007-06-06 Thread Dan Shirah
_type_desc']}\n"; else echo "{$c['credit_card_type_desc']}\n"; } ?> On 6/6/07, Stut <[EMAIL PROTECTED]> wrote: You can't rely on everyone seeing the different colours in your text. Please lay out your replies so they can be read in plai

Re: [PHP] More include issues

2007-06-06 Thread Dan Shirah
If something was being displayed in there, then we wouldn't be getting to the blank dropdown box. But just for you I put something in there and it doesn't get echo'd out. On 6/6/07, Stut <[EMAIL PROTECTED]> wrote: Dan Shirah wrote: > if(!empty($_POST['max_id'

Re: [PHP] More include issues

2007-06-06 Thread Dan Shirah
I only added those echo's since we have been trying to figure this out, so I could see how far it was getting before it stopped. When I select "VIew Source", the last line of code is: On 6/6/07, Stut <[EMAIL PROTECTED]> wrote: Dan Shirah wrote: > > * *** This

Re: [PHP] More include issues

2007-06-06 Thread Dan Shirah
se. Since I have my database connection set as mssql_pconnect(persistent connection) I should not have to include the connection file before every attempt to retrieve something from the database, but that is the only way it is working right now. On 6/6/07, Stut <[EMAIL PROTECTED]> wrot

Re: [PHP] More include issues

2007-06-06 Thread Dan Shirah
uld only have $connection instead and then specify $database before the query to the database. Does that sound like the correct solution? On 6/6/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Wed, June 6, 2007 3:24 pm, Dan Shirah wrote: > Yes, I have error_reporting = E_ALL and s

Re: [PHP] More include issues

2007-06-06 Thread Dan Shirah
So if my query just starts out with $sql = "Select * from..." it doesn't really know which connection to use. On 6/6/07, Stut <[EMAIL PROTECTED]> wrote: Dan Shirah wrote: > I thought that if you made a connection at the beginning of a page, that > you could use that c

Re: [PHP] More include issues

2007-06-06 Thread Dan Shirah
o turn to except google/forums/this list. So once again, thank you, and thanks to everyone else that is helping this novice become more familiar with PHP. On 6/6/07, Stut <[EMAIL PROTECTED]> wrote: Dan Shirah wrote: > It seems that PHP is getting confused unless I post the $database = &g

Re: [PHP] Question on Connecting to Microsoft SQL Server from PHP

2007-06-12 Thread Dan Shirah
In my PHP page I have the following: $sql = mssql_connect ("xx.xx.xx.xx:", "xx", "xx"); $conn=mssql_select_db("xx", $sql); Since both servers are within your local network, you should be able to connect as follows: $connection = mssql_connect('SERVERNAME','username','password') or die ('

Re: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread Dan Shirah
Wouldn't a little javascript solve this problem?? Have your first dropdown menu, then when an option is selected use a javascript Onchange function to refresh (post) the page to itself. This would set the selected option as your "form1" value. Then just write a simple query using that value to

[PHP] IF with multiple values for a variable

2007-06-13 Thread Dan Shirah
Okay, I know this has got to be easy but it's not working any way I try it. When a record is selected it opens up a new page. My query will display the specific results based on the type of record selected. There can be multiple values in each if. However I am having a brain fart in my if stat

Re: [PHP] IF with multiple values for a variable

2007-06-13 Thread Dan Shirah
Excellent! Double pipes to seperate possible multiple variable values. Thanks Daniel! On 6/13/07, Daniel Brown <[EMAIL PROTECTED]> wrote: On 6/13/07, Dan Shirah <[EMAIL PROTECTED]> wrote: > Okay, I know this has got to be easy but it's not working any way I try it.

Re: [PHP] Date

2007-06-20 Thread Dan Shirah
If you are pulling $start_date from a database, depending on the format you could use something like the following: Assuming the data is 20070215. Connect and query your database, get the result and assign it to a variable. $start_date = $my_result_row['start_date']; $start_year = substr($start_

Re: [PHP] Real-World BUSINESS Problem

2007-07-05 Thread Dan Shirah
Okay. All of the orders are in your database, correct? 1. Write a query that selects all of the days orders from 12:00am-11:59pm. 2. Create a form for the specific data and layout you want in your packing slip. 3. In your loop for each record, send the data to a printer. 4. For your electronic c

Re: [PHP] About DREAMWEAVER

2007-07-05 Thread Dan Shirah
There is a "Find and Replace" function in Dreamweaver, but it is very specific and will only find specific words/tags. If these comments are from outside of Dreamweaver and it does not recognize them, then it is probably interpreting them as basic HTML text. And as such there would be no way for

<    10   11   12   13   14   15   16   17   18   19   >