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
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
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:
> >
> &
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
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
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
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
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
'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
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]>
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
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
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
--
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
!!! 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:
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
>
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
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
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
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-
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
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
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
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
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
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'] != '
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
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
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
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
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."
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."
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 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."
:)
>
>
>
>
>
> 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.
-
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
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."
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
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
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
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
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
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."
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."
, 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.
--
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
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."
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
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
;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."
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.
--
-
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
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
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
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
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."
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
>&
;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."
to just be one digit shorter and rounded off.
My query is below:
Thanks in advance,
Dan
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
Sorry about the top posting.
You my friend are a genious! $rows = $rowcount['(count(*))'] works like a
charm!
Thank you all.
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
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
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
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
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
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
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
$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
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
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
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
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
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:
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
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
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
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
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
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
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
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_
_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
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
../../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
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
_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
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'
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
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
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
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
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
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
('
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
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
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.
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_
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
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
1401 - 1500 of 2161 matches
Mail list logo