Thanks Zak,
Its really amazing.
It worked Properly.
Thanks once again.
Rinku
Zachary Krakov [EMAIL PROTECTED] wrote:
Hi Rinku,
The statement syntax that I believe will work you is the following:
If (($VARIABLE1 !== '') ($VARIABLE2 !== '')) {
print Rinku;
}
Let me know if this
I dont know much abt SSL .
But pls check the URL, I hope it wd be useful to you.
http://support.microsoft.com/?kbid=314864
Edgar Hassler [EMAIL PROTECTED] wrote:
Does PHP support SSL connections to MySQL? If no, does anyone have an idea
how to make an SSL conncetion to MySQL using PHP?
Thanks,
How can I query a MySQL table to get the latest results from a date field?
Basically, I am inserting several records at a time at the end of each week.
I want to have a page that displays the results for the last week only.
The date format in the field is -MM-DD
On 24 June 2004 16:44, H. J. Wils wrote:
this is the code, but this code works on my hosting provider but not
on my own server. I think i have to change settings in php.ini but
dont know which...
first page:
session_start();
include connect.php;
include functions.php;
How can I query a MySQL table to get the latest results from a date field?
Basically, I am inserting several records at a time at the end of each
week.
I want to have a page that displays the results for the last week only.
The date format in the field is -MM-DD
if you want the latest row
Tom Chubb [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
How can I query a MySQL table to get the latest results from a date field?
Basically, I am inserting several records at a time at the end of each
week.
I want to have a page that displays the results for the last week only.
Jeffrey,
Thanks for this,
I've just realised that it's always the same no of inserts, so perhaps I
should just order by date then my previous sort field and then limit the
result to 20?
(It's all 20 results that I need displayed)
Thanks,
Tom
-Original Message-
From: [EMAIL PROTECTED]
select * from table where week(date_field) = ( week(now()) -1 )
Tom Chubb wrote:
How can I query a MySQL table to get the latest results from a date field?
Basically, I am inserting several records at a time at the end of each week.
I want to have a page that displays the results for the last week
Just looking for opinions on sql injection while using prepared statements.
I've read at the oci8 extention that content should not be escaped
---
Do not use magic_quotes_gpc or addslashes() and oci_bind_by_name()
simultaneously as no quoting is needed and any magically applied quotes will
be
No, it's actually very easy to do the autocomplete once you get the hang of
it. Actually the way I've done it is to populate a multi-select box but you
could also use a DIV and write out the values
Dump the email addresses as an XML file (generate this dynamically) then
use XSLT to read out
Hope this helps:
?php
$days_2_search = array ( 1 = Fri , 2=Sun , 3=Tue);
$num_days = 365;
$day = (int) date(d);
$month = (int) date(n);
$year = (int) date(Y);
echo form action=\test.php\ method =\post\
select name=\days\;
for ($i = 1 ; $i = $num_days; $i++) {
$loop_day =
Gerard Samuel wrote:
snip
So Im guessing that this is how prepared statements are done on other
databases.
After being trained to do it one way (always escaping bad content), Im being
shown to do it the other way, and Im looking for any suggestions you may
have.
Yes, the idea with prepared
select * from table where TO_DAYS(date_field) ( TO_DAYS(NOW()) -7 )
this will give the entries of the last 7 days (and the ones that are in the
future)
Tom Chubb [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
How can I query a MySQL table to get the latest results from a date field?
On Friday 25 June 2004 01:03 pm, Hans_L wrote:
Gerard Samuel wrote:
snip
So Im guessing that this is how prepared statements are done on other
databases.
After being trained to do it one way (always escaping bad content), Im
being shown to do it the other way, and Im looking for any
Vincent Jordan [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I have a table that display's a list of users in a mysql db. In the table
I
have a echo input type=checkbox name{$row[$user_id]}
{$row[$username]}, {$row[$password}, {$row[$isactive]};
( this is not the exact code but
Hi there everyone,
I've been looking on Google for PHP Javascript tutorials but I can't find
any. I'm new to Javascript but can use PHP for what I need. I was hoping
someone would know of a tutorial that would show how to use PHP to get 2-3
datasets which javascript can then use in forms.
Hi there everyone,
Hello.
I've been looking on Google for PHP Javascript tutorials but I can't find
any. I'm new to Javascript but can use PHP for what I need. I was
hoping
someone would know of a tutorial that would show how to use PHP to get
2-3
datasets which javascript can then use
Steve,
You must turn the file to postscript before you can read anything out of it,
and even then, a lot of the time words are broken up into different show
statements.
use pdf2ps (part of GNU GhostScript) to convert to PS and then search for
patterns like this:
(text) show
that is the most
On Fri, 25 Jun 2004 19:36:11 +, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Is there any way to get PHP to simply read the PDF file for text only--just the
surface of it, just the words, as if it were a human reading the PDF itself--and not
for the internal code of the file?
I do this
Instead of
return $field[];
try
return $field;
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yeah I have try that... and when I : echo $field[1]
appear error msg : Undefined offset: 1
- Original Message -
From: Sam Chill [EMAIL PROTECTED]
To: PHP DB Help [EMAIL PROTECTED]
Sent: Saturday, June 26, 2004 11:21 AM
Subject: Re: [PHP-DB] return array
Instead of
return
21 matches
Mail list logo