p80 wrote:
I do a mysql request like this one:
SELECT DISTINCT (brand), COUNT( brand )FROM `machines` where category like
'sold' group by brand"
Try adding aliases to your query, such as :
SELECT DISTINCT (brand), COUNT (brand) AS brand_count FROM `machines`
WHERE `category` LIKE 'sold' GROUP BY
John Taylor-Johnston wrote:
I want to include a phps file. But would like it to display the coloured
formatting of a phps, instead of executing the code with in. Is this possible?
This does not work:
include("sendmail.phps");
http://www.php.net/highlight-file
--
PHP General Mailing List (http://w
Read the contents of the file into a variable and then output the contents
of the variable via print or echo.
-Original Message-
From: John Taylor-Johnston [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 13, 2005 10:09 PM
To: php-general@lists.php.net
Subject: [PHP] include("sendmail.phps")
I want to include a phps file. But would like it to display the coloured
formatting of a phps, instead of executing the code with in. Is this possible?
This does not work:
include("sendmail.phps");
Thanks,
John
--
John Taylor-Johnston
-
> Do you mean by using virtual host directives of apache ?
>
> But how about the configuration to make requests for certain
> directories to be handled by php4 or php5.
>
> For ex.
>
> /var/www/html/site needs php5 but /var/www/html/legacy does not
> support php5 so I have to run php4.
>
> Any
Labunski wrote:
How to get url of the page the php script is on?
In other words, I want to know whether I'm in page "news.php" or in
"posts.php", or in some other page. Is there any simple way to get tis info?
Thanks,
Lab.
if (basename($_SERVER['PHP_SELF']) == 'news.php')
{
// do whatever
How to get url of the page the php script is on?
In other words, I want to know whether I'm in page "news.php" or in
"posts.php", or in some other page. Is there any simple way to get tis info?
Thanks,
Lab.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.p
Hi,
I searched on the net, found a lot of articles about it... followed all the
various one by one, tried a lot, but I am getting the famous error:
java.lang.UnsatisfiedLinkError: no php5servlet.dll in java.library.path.
Here is the steps I folllowed:
1) Get PHP5 PECL and copy to jbossweb-tomcat
Hi Hans,
Do you mean by using virtual host directives of apache ?
But how about the configuration to make requests for certain
directories to be handled by php4 or php5.
For ex.
/var/www/html/site needs php5 but /var/www/html/legacy does not
support php5 so I have to run php4.
Any tips regardi
Jeffery Fernandez wrote:
Simon Reye wrote:
I'm moving away from Cold Fusion and am considering java or php. I've
mucked around with Struts and Coccoon on the java side and think they
are great. There does not however seem to be any well backed projects
similar to these for php.
Can anyone poi
Simon Reye wrote:
I'm moving away from Cold Fusion and am considering java or php. I've
mucked around with Struts and Coccoon on the java side and think they
are great. There does not however seem to be any well backed projects
similar to these for php.
Can anyone point me to a good php MVC f
I'm moving away from Cold Fusion and am considering java or php. I've
mucked around with Struts and Coccoon on the java side and think they
are great. There does not however seem to be any well backed projects
similar to these for php.
Can anyone point me to a good php MVC framework?
--
PHP G
also, note I used preg_match instead of ereg, preg is a better choice
over ereg usually (flexibility, speed, etc)
Ross Hulford wrote:
Does anyone know a working eregi expression for determining a domain is
valid? don't need the http:// just looking for www.thedomain.com
cheers,
R.
--
PHP Gener
this should work for any web address starting with www.
// test for domain
$domain = "www.example.com";
// This pattern will match anything that STARTS with www followed by a
period, followed by at least 2 characters,
// numbers and periods followed by a period followed by at least two
characters
Ross, is there a reason you don't want to use sessions again?
Creating an associative array of each pages answers is much cleaner than
passing hidden fields or get vars.
Another option you could use it write the files to disk after each page
save, that way if anything goes wrong(IE user computer
Does anyone know a working eregi expression for determining a domain is
valid? don't need the http:// just looking for www.thedomain.com
cheers,
R.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Simple but should work.
$query = " SELECT DISTINCT (brand), COUNT( brand )FROM `machines` where
category like 'sold' group by brand;";
$result = mysql_query($query) or die(mysql_error());
While($data = mysql_fetch_array($result)) {
echo "{$data[0]} - {$data[1]}\n";
}
-Original Messa
I do a mysql request like this one:
SELECT DISTINCT (brand), COUNT( brand )FROM `machines` where category like
'sold' group by brand"
I get this from mysql:
brand COUNT( brand)
brandx4
brandy12
how can I echo this result in php?
thanx in advance
Pat
--
P
--
como pueddo hacer para salir de esta lista
---
Banco de Crédito BCP - Dedicados a hacerte la Banca más simple.
Visita nuestra Banca por Internet http://www.viabcp.com
-
I've used Zen Cart (http://www.zen-cart.com/modules/frontpage/) in the past.
-Original Message-
From: Judson Vaughn [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 13, 2005 3:05 PM
To: [EMAIL PROTECTED]
Cc: Ryan A; php
Subject: Re: [PHP] software catalog
X-Cart has a very nice feature for
X-Cart has a very nice feature for delivering "intangibles". But it is
around $285.
Jud.
Judson Vaughn
[EMAIL PROTECTED] | [EMAIL PROTECTED]
Seiter Vaughn Communications
12455 Plowman Court
Herndon, VA 20170
703.450.9740
svc
Richard Lynch wrote:
Hey!
Anybody know of a "software catalog" (or car
On 3/13/2005 3:55 PM John Swartzentruber wrote:
On 3/11/2005 11:57 AM John Swartzentruber wrote:
I am running Fedora core3 with Apache 2.0.52 (from default RPMs),
MySQL 4.1.10 (from RPMs from MySQL site), and PHP 5.0.3 built from
source.
I'm going through the PHP manual and trying some of the my
On 3/11/2005 11:57 AM John Swartzentruber wrote:
I am running Fedora core3 with Apache 2.0.52 (from default RPMs),
MySQL 4.1.10 (from RPMs from MySQL site), and PHP 5.0.3 built from
source.
I'm going through the PHP manual and trying some of the mysqli
examples. The last one I tried didn't work
[EMAIL PROTECTED] wrote:
Hello,
I have a query that I'm unable to work it out, each time I run it I get
some error, I need your help.
I have a webtemplates table which contains some basic information about
each template (author, price, description, ...etc). I created a search
form that a user ca
Pass the variables through the URL string
Click Here
On the next page echo $myvariable and get "myvalue".
-Original Message-
From: Ross Hulford [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 13, 2005 3:06 PM
To: php-general@lists.php.net
Subject: [PHP] passing variables between pages w
With each subsequent page load, have hidden fields that store the values of
the previous page's form. There might be another way, but that comes to
mind.
-Original Message-
From: Ross Hulford [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 13, 2005 2:06 PM
To: php-general@lists.php.net
Su
I am creating a form but instead of having a long form I want to break it
down into a few stages but need to pass the variables bewteen the pages.
I have done this before using sessions but would like to know if there is an
alternative way to do this?
R.
--
PHP General Mailing List (http://w
> Hello,
Hi,
> $query = "SELECT * FROM templates where ".$_POST[searchtype]." LIKE
> '%".$_POST[searchterm]."%'";
Although it works, always put the array index as a string between quotes.
$_POST[searchterm] to $_POST['searchterm']
>
> But now I need the search to be more advanced, the user may
Hello,
I have a query that I'm unable to work it out, each time I run it I get
some error, I need your help.
I have a webtemplates table which contains some basic information about
each template (author, price, description, ...etc). I created a search
form that a user can use to search by type(b
Hello,
Try to set the charachter encoding of your page to: Arabic(Windows-1256)
Anas
>
SSBoYXZlIGEgdGV4dCBhcmVhIGZvcm0gYW5kIHdoZW4gSSBpbnNlcnQgaXQgaW50byBteXNxbCBJ
>
IGdldCBsZXR0ZXJzIGxpa2UgCnRoaXM6CsOZIsOZxaDDmMKow5jCqsOZ4oCgw5kiw5nigKbDmeKA
>
oMOYwqjDmcWgw5jCqsOZIiDDmeKAoMOZxaDDmMKow5kiCsOYwq
Thanks, that worked.
-Original Message-
From: Mikey [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 13, 2005 12:18 PM
To: php-general@lists.php.net
Subject: RE: [PHP] XHTML and dynamic javascripts
> Now down to the PHP specific question. Is there a way to
> generate an externally linke
> Now down to the PHP specific question. Is there a way to
> generate an externally linked javascript file? The
> javascript functions in question are created from data
> sitting in a MySQL data, so I can't hard code the javascript.
Yes, just change the .js extension to .php
HTH,
Mikey
--
is it possible to watch upload speed (HTTP Post upload) using php alone?
i know this is possible using a combination of php and cgi(cgi for upload
and php for monitoring the upload) but it's complicated and thus
unreliable...
do u have any other ideas?
thanks.
--
PHP General Mailing List (http
I am working to convert my website to XHTML and ran into a compliance
problem with several dynamically created javascripts. According to the
XHTML specification, embedded javascripts are now supposed to now be
enclosed with . The problem is that it's not
supported by IE or firefox and throughs
do you happen to remember what issues you may have had?
thanks again
[EMAIL PROTECTED] wrote:
Jim,
i had only minor issues, but it builds fine otherwise.
"Jim Plush" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Has anyone successfully built php5 using visual studio.net ? or is V
I have a text area form and when I insert it into mysql I get letters like
this:
Ã"ÃÅÃÂÃÂÃâÃ"ÃâÃâÃÂÃÅÃÂÃ" ÃâÃÅÃÂÃ"
ÃÂÃÅ
Ã"ÃÂÃÂÃÅ...
instead of arabic letters. anything I know do to get it right?
thanx in advance
@richard
> I dunno about that whole try/catch thing, but if you're not going to USE
> it to catch the errors, then you might as well be old school and check the
> return values of all these functions.
that sounds good, but , so far I know, if the API says that a function _can_
throw an exception,
37 matches
Mail list logo