Hi
I need some scripts written in PHP to interface with a mySQL database. There
will be a need for a high level of security.
Anyone interested in making some money ?
Call me
Regards
Pat
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Maybe something like this:
http://dev.mysql.com/doc/mysql/en/TRUNCATE.html
"John Taylor-Johnston" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> MySQL question:
>
> DROP TABLE IF EXISTS
>
> Instead of dropping the table, I want to truncate the table if it contains
something. ANyone
So, you have to know, first, what is your meaning of your empty variabe:
null, 0, "", array()?
For example, "$var = 0;", empty($var) says true... but you?
"Jason Davidson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> as suggeted the isset and empty functions are usefull,
> or if
problems. Anyone got any Ideas??
Thanks in advance.
Pat
6 8 $d = dir('/home/content/j/a/c/jackcards/html/tomdcam/photo/') or
die($php_errormsg);
9 while (false !== ($f = $d->read())) {
10 // only match alphabetic names
11 if (preg_match('/testPanasonicCamMotion/
utputs something like this:
http://.../chkout.php?NATURE-1.jpg=6&continue=Continue+Checkout, which
does show the $imageqty of "NATURE-1.jpg" value with the new qty of "6".
How can I get the script to pull the value?
$imageqty = $row["cialbum"]."-".$row[&quo
he form outputs something like this:
http://.../chkout.php?NATURE-1.jpg=6&continue=Continue+Checkout, which
does show the $imageqty of "NATURE-1.jpg" value with the new qty of "6".
How can I get the script to pull the value?
$imageqty = $row["cialbum"]."-"
Thanks to all who helped.
The answer...drumroll arrays for each entry:
load routine (partial):
print "name='imageqty[]' size='5' value='$qty'>";
print "value='".$row[cialbum]."'>";
print "";
print "value='".$row[ciimage]."'>";
print "value='".$row[cisize]."'>";
retrieval rou
I've read that an include file in each of your pages with the lines below
should do the trick for you with register_globals OFF..
Not sure if this is a valid way to go though...
Regards, Pat
"Davy Obdam" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]&q
ith the "or return" part. Any ideas why? I realize that
I could use an if statement instead, but I'm a lazy, lazy man and I don't
want to.
Pat Carmody
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
basic syntax page that addresses this.
Pat Carmody
On Tue, 7 Oct 2003, Robert Cummings wrote:
>On Tue, 2003-10-07 at 13:02, Pat Carmody wrote:
>>
>>
>> Calling the following retor_test() function causes a "Parse error: parse
>> error, unexpected T_RETURN" mess
o
return a value if istrue() failed, otherwise I wanted to continue in the
scope of the function. That may not have been obvious because the example
was a little contrived.
Pat Carmody
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I cannot seem to find the problem in my code. I have two pages. Both
need to select a product from a database. The first page works fine, the
product is found and I use the data in the page. The second one does not
fetch the product. The code is exactly the same:
$query="SELECT * FROM products WHE
a hit.
Pat
-Original Message-
From: Brad Pauly [mailto:[EMAIL PROTECTED]
Sent: Monday, January 05, 2004 3:28 PM
To: Pat Hanna
Cc: 'php help'
Subject: Re: [PHP] Strange coding bug
On Mon, 2004-01-05 at 12:59, Pat Hanna wrote:
> I cannot seem to find the problem in my cod
mailto:[EMAIL PROTECTED]
Sent: Monday, January 05, 2004 3:32 PM
To: Pat Hanna; Brad Pauly
Cc: php help
Subject: RE: [PHP] Strange coding bug
[snip]
I have tried printing out the query and got the exact same thing on both
pages. The only relevent code is the code I included. The $item_number
ERVER, $DB_LOGIN, $DB_PASSWORD;
if (@mysql_pconnect($DB_SERVER, $DB_LOGIN, $DB_PASSWORD))
{
return 1;
}
else
header("Location: blahblahblah");
}
This should establish a permanent connection to the database server. Is
there a way to permanatly select a certain database?
Pat
-O
I have a snipet of code i'm using for a file maintanance program. I have no
idea why but when the main loop repeats, the is_dir function doesn't return
true even though it prints out a directory in the server.
chdir("/certain/place/for/files/");
$handle=opendir(".");
$file=readdir($handle); //to
I have these pictures that I'm using for my webpage. Their background
changes from blue to white. When I loaded them onto the server, they looked
very nice and they always looked good on netscape browsers. Every once and a
while though, the background turns bad and all the pictures look terrible o
I'm trying to read the contents of a directory and it's subdirectories. I
use w while loop with readdir($handle) and then an if statement with
filetype($file)=="dir" and that works that far. The contents of the
subdirectory is listed. After that breaks out of the if statement though,
the script go
Anyone who uses Edit Plus. Can you send me the php function files and auto
complete file. The edit plus web page has the links but none of them work.
Thanks
Pat
I'm setting cookies for a shopping cart and they are setting fine but they
will not delete. I've tried every way of deleting them and they just won't
go away. Someone please help.
--
Patrick Hanna
Database integration--E-commerce solutions
The Wentworth Company
I've tried that but they still don't go away.
- Original Message -
From: "Brian Clark" <[EMAIL PROTECTED]>
To: "PHP is not a drug." <[EMAIL PROTECTED]>
Sent: Monday, April 16, 2001 6:23 PM
Subject: Re: [PHP] cookies
> Hi Pat,
>
> @ 6
I found out today after suffering from minor headaches and hair loss that if
you have functions defined in and outside file name 'foo.php', and in those
functions you use cookies, you must pass those cookies to the function
called. I tried using a value from a cookie in a function and it never cou
This may or may not have anything to do with PHP but my goal deals with it.
I have a box that I'm trying to turn into a linux box for php purposes. I
have reformatted the hard drive so I could install it. The problem is that
when I try to partition the disk during the installation, my hard drive i
I'm doing my senior exit project on database languages online. I'm asking
for help from anyone who can provide any information on the comparison
between the different languages. I'm comparing languages such as PHP, ASP,
ColdFussion, perl and any others that I might not know about that you guys
mig
dy know a way around this or
> can maybe provide some insight about why this is happening?
It probably isn't removing it, it's converting it into an EOT
character (0x04). That's pretty standard for most environments
that do backslash substitution. It should also convert \48 a
When using sessions with forms, a user presses the back button and gets the
message: Page has Expired. How can I get around this happening? I have to
use sessions because I store many different variables at a time for a
shopping cart. Forms are submitted depending on what item the user is
shopping
* Linux
* Dreamweaver
* Subversion
* Unix Shell/Perl
The link to apply is as follows.
http://www.wwe-careers.com/wwe/jobboard/SearchPositions.asp?ShowJobID=61
1&Keywords
<http://www.wwe-careers.com/wwe/jobboard/SearchPositions.asp?ShowJobID=6
11&Keywords> =
Thanks,
Pa
restling
Entertainment is all about. I'd really appreciate you keeping us in
mind if you hear of anyone who is looking.
Thx
- Pat
-Original Message-
From: tedd [mailto:[EMAIL PROTECTED]
Bullcrap!
If you think that nested tables gets you in the "ballpark" quicker,
then y
I'm trying to create thumbnails for my images and everything seems to
work correctly except for trying to save them. I've tried outputting
directly with imagejpeg($im) and that works, but when trying
imagejpeg($im, "new.jpeg") it does not create a new image in the current
directory. I even tried ch
yntax
error in the following line in the apache conf/httpd.conf file.
LoadModule php5_module c:/php5/php5apache2.dll
It says the specified module can't be found. The module certainly is there
and it worked with apache 2 before the upgrade. What am I missing here ?
Thanks;
Pat
--
PHP Genera
30 matches
Mail list logo