is usually due to the SCRIPT_FILENAME being
incorrect. not the code in the script.
On Fri, Dec 19, 2008 at 2:54 PM, Gary Maddock-Greene
g...@maddock-greene.co.uk wrote:
Hi Philip,
Here is my code ...
?php
if (!function_exists(GetSQLValueString)) {
function GetSQLValueString($theValue, $theType
($query_rsSearch, $MyDatabase) or
die(mysql_error()); $row_rsSearch = mysql_fetch_assoc($rsSearch);
$totalRows_rsSearch = mysql_num_rows($rsSearch);
?
- Gary
It doesn't look like your code is the problem, how is the file being
executed.
Through the command line or IIS? In either case it sounds like
nginx has
a no input file specified - people ask about it all the time.
On Fri, Dec 19, 2008 at 3:15 PM, Gary Maddock-Greene
g...@maddock-greene.co.uk wrote:
the code was generated by Dreamweaver CS3 .. its php!
How do I check the SCRIPT_FILENAME please?
mike mike...@gmail.com wrote in message
am not
sure what I am looking for. That's always a problem with trying to find or
understand a bug .. if you don't know what you should be looking at.
How can I check the cgi .. and why could this be causing the problem?
Many thanks guys
- Gary
Nathan Rixham nrix...@gmail.com wrote in message
center
/center
/div
?php } while ($row_rsSearch = mysql_fetch_assoc($rsSearch)); ?
If anyone can assist I would really appreciate it
- Gary
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sorry guys .. resolved it doh!
I was freeing the recordset in
?php
mysql_free_result($rsSearch);
?
-Gary
Gary Maddock-Greene g...@maddock-greene.co.uk wrote in message
news:5a.42.33998.4b83e...@pb1.pair.com...
Hi All,
I am getting the following error - Warning: mysql_fetch_assoc(): 3
nice post Tedd and useful web site :)
-Gary
tedd tedd.sperl...@gmail.com wrote in message
news:p06240802c573f5a71...@[192.168.1.101]...
At 12:38 PM -0800 12/20/08, Stephen Alistoun wrote:
Hi all,
What is the best way in PHP to Resize an Image to a specific width.
For Example I have images
product_name LIKE
%s, GetSQLValueString(% . $colname_rsSearch . %, text));
$rsSearch = mysql_query($query_rsSearch, $sondia_lighting) or
die(mysql_error());
$row_rsSearch = mysql_fetch_assoc($rsSearch);
$totalRows_rsSearch = mysql_num_rows($rsSearch);
?
Thanks
- Gary Maddock-Greene
--
PHP General
/a
div class=clear/div
/div div class=clear/div
center
/center
/div
?php } while ($row_rsSearch = mysql_fetch_assoc($rsSearch)); ?
--
- Gary Maddock-Greene
Ashley Sheridan a...@ashleysheridan.co.uk wrote in message
news:1229873521.4229.6.ca
/a
div class=clear/div
/div div class=clear/div
center
/center
/div
?php } while ($row_rsSearch = mysql_fetch_assoc($rsSearch)); ?
--
- Gary Maddock-Greene
Ashley Sheridan a...@ashleysheridan.co.uk wrote in message
news:1229875150.4229.9.ca
are present. I cannot seem to add this code into the above after the
echo h3Please click on a product for further information./h3. I can't
get the syntax right ...
I appreciate everyones help
--
- Gary Maddock-Greene
Ashley Sheridan a...@ashleysheridan.co.uk wrote in message
news:1229878234.4229.12.ca
($rsSearch)); ?
--
- Gary Maddock-Greene
Anthony Gentile asgent...@gmail.com wrote in message
news:2ce4207d0812210959k3491690ctbc4f0dbf971ac...@mail.gmail.com...
...missing semicolon and some brackets.
?php
if (0 == $totalRows_rsSearch) {
echo h3Sorry no products were found/h3;
} else {
echo h3Please
That's got it thanks Anthony. I love when you learn something. It was the
back slash \ preceeding the 's in my html that I wasn't aware of. Now I
know they are needed if using in your code.
Thank you so much for your help.
--
- Gary Maddock-Greene
Anthony Gentile asgent...@gmail.com wrote
thanks for the advice re html and php mashup!! I will research to find the
way to do it outside the php.
- Gary Maddock-Greene
Anthony Gentile asgent...@gmail.com wrote in message
news:2ce4207d0812211021g215d5346wb0afcedf039ef...@mail.gmail.com...
?php
if (0 == $totalRows_rsSearch) {
echo
to the
drawing board for me :)
--
- Gary Maddock-Greene
Gary Maddock-Greene g...@maddock-greene.co.uk wrote in message
news:b4.82.23981.dee8e...@pb1.pair.com...
thanks for the advice re html and php mashup!! I will research to find the
way to do it outside the php.
- Gary Maddock-Greene
Anthony
to the
drawing board for me :)
--
- Gary Maddock-Greene
Gary Maddock-Greene g...@maddock-greene.co.uk wrote in message
news:b4.82.23981.dee8e...@pb1.pair.com...
thanks for the advice re html and php mashup!! I will research to find the
way to do it outside the php.
- Gary Maddock-Greene
Anthony Gentile
./h3;
while ($row_rsSearch = mysql_fetch_assoc($rsSearch)){
echo div class=\productitem\img src=\products.
$row_rsSearch['product_image'].\
- Gary Maddock-Greene
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
/a
div class=\clear\/div
/div div class=\clear\/div
center
/center
/div;
}
}
?
--
- Gary Maddock-Greene
Ashley Sheridan a...@ashleysheridan.co.uk wrote in message
news:1229955502.3530.3.ca...@localhost.localdomain...
On Mon, 2008-12-22 at 14:02 +, Gary Maddock
I know you are so right Richard .. beleive me ... I wish I was year down the
line so I knew how to get the html out of the php
--
- Gary Maddock-Greene
Richard Heyes rich...@php.net wrote in message
news:af8726440812220617l6c965cd0x6ae55f57fa96b...@mail.gmail.com...
Also (and I know the speed
Very helpful thanks Wolf. fyi the web site you see was done by my son.
This is a live project that I was just asking for help on ... a pointer
perhaps. Too much to ask I guess
--
- Gary Maddock-Greene
Wolf lonew...@nc.rr.com wrote in message
news:20081222141852.ovv8i.364383.r...@cdptpa-web15
(% . $colname_rsSearch . %, text));
$rsSearch = mysql_query($query_rsSearch, $sondia_lighting) or
die(mysql_error());
$row_rsSearch = mysql_fetch_assoc($rsSearch);
$totalRows_rsSearch = mysql_num_rows($rsSearch);
--
- Gary Maddock-Greene
Dan Shirah mrsqua...@gmail.com wrote in message
very helpful thank you :)
--
- Gary Maddock-Greene
Sándor Tamás (HostWare Kft . ) sandorta...@hostware.hu wrote in
message news:dbb55d182b624f26be7f5125e592d...@stgepe...
Yes, the error is here.
You get the record count with a mysql_fetch_assoc(), which reads the first
record, and then step
so the correct way to do this is remove the $row_rsSearch =
mysql_fetch_assoc($rsSearch); from my recordset query code. Thank you SanTa
--
- Gary Maddock-Greene
Sándor Tamás (HostWare Kft . ) sandorta...@hostware.hu wrote in
message news:dbb55d182b624f26be7f5125e592d...@stgepe...
Yes
Is there a quick and dirty way to include, file, or fsockopen content
from a remote server and make it appear as though the request was
straight from the browser's remote address?
Thank you for your assistance.
Respectfully,
Gary
--
PHP General Mailing List (http://www.php.net
-4.3.1 being used for installation.
Is there a work around for configuring phpcap-0.2e with php-4.2.3?
Thank you for your assistance.
Respectfully,
Gary
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ryan Grange wrote:
Gary C. New wrote:
Is there a quick and dirty way to include, file, or fsockopen content
from a remote server and make it appear as though the request was
straight from the browser's remote address?
Thank you for your assistance.
Respectfully,
Gary
I believe you
Quite possibly a stupid question, but here goes.
I have a form that is a list of jobs. On that list is a
checkbox. The form field is named 'changedate'.
I also have a hidden field called 'JobID'.
What I am trying to accomplish is if a checkbox is
checked, when the form is submitted, I want
Sorry, should have posted lastnight.. Stephen Johnson helped out a lot,
it's working great now.
Thanks for the relpy though
-Original Message-
From: Joe Henry [mailto:[EMAIL PROTECTED]
Sent: Friday, April 14, 2006 11:44 AM
To: php-general@lists.php.net
Cc: Stephen Johnson; Gary E
of a method or a sample piece of code that can achieve
the desired effect?
Thank you for your assistance.
Respectfully,
Gary
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
that there are a lot less $GLOBALS available under the
http location than there are under the https location.
I am using Apache 1.39 with Php 4.2.3.
Your comments are greatly appreciated.
Respectfully,
Gary
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
that there are a lot less $GLOBALS available under the
http location than there are under the https location.
I am using Apache 1.39 with Php 4.2.3.
Your comments are greatly appreciated.
Respectfully,
Gary
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
It turns out that SCRIPT_URI is a mod_rewrite global.
I simply had to turn the RewriteEngine On under the unencrypted (http)
location and it worked perfectly.
Thank you for the suggestions.
Respectfully,
Gary
pete M wrote:
try
$_SERVER['SCRIPT_URI'];
Gary C. New wrote:
I am writing some php code
processes?
Any suggestions on the best way to handle this?
Respectfully,
Gary
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
those of you who have requested it.
Respectfully,
Gary
Gary C. New wrote:
What is the best way to detach and run a command line based php script
in the background from a web-based php script, without the need for
reporting?
I have a web-based php script that gathers information
comments or suggestions.
Respectfully,
Gary
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Use MySQLODBC... I use it to manage my databases through MS Access.
I haven't integrated it yet with Word, but it is my intention in the
near future.
Hope this helps.
Respectfully,
Gary
Satch wrote:
Is there any way to have a web page (PHP) that draws data from a database (MySQL
and the
php code off of only 1, so I forced the command line to key off of only
1 passphrase--to no avail.
I am obviously missing something. Someone out there has had to have
done this at least once before.
Any other suggestions would be appreciated.
Respectfully,
Gary
Tom Rogers wrote:
Hi
Note quite there yet here but yes Happy 1234567890 day to you too
--
- Gary Maddock-Greene
Luke Slater l...@blog-thing.com wrote in message
news:200902131812.43295.l...@blog-thing.com...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Not sure that this is the problem BUT you should probably qualify the name of
the variable such that SELECT MAX(id) AS id FROM book. But you don't want
max(id) as id but rather max(id) + 1 as id. With that you can then just
return the final value. Also, if you don't want to alias the value
Being rather new to all this, I understood from the MySql manual that
the auto_increment is to b e used immediately after an insertion not
intermittently. My application is for administrators (the site owner
designates) to update the database from and administration directory,
accessed by
501 - 540 of 540 matches
Mail list logo