Here's all the code that uses MySQL...
$db = mysql_connect("localhost","user","pass");
mysql_select_db("db",$db);
$gmdquery="SELECT * FROM game_of_the_day";
$the_info = mysql_query($gmdquery,$db);
while ($myrow = mysql_fetch_row($the_info)) {
(get info from the result)
}
... (dec
Previously, Jordan Elver said:
>
> I'm not using virtual hosts on my local machine but I am on the production
> machine. What should DOCUMENT_ROOT return? I though it returns the directory
> of the current script. So if I had a site in
> /usr/local/apache/htdocs/cha/script.php then I would expe
Problem with this is that many people use '+' in email addresses along with
other strange characters (a friend of mine has an apostrophe in her address
at General Electric).
Bottom line, trying to catch all valid email addresses using a regex is a
really ugly thing to try to do. The one shown he
"Steven Haryanto" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> At 4/25/2001 09:02 PM, Reuben D Budiardja wrote:
*SNIP*
> What I *really* like to see in PHP is:
>
> - NAMESPACE
> - TRACEBACK INFO
> - exception (try-except block)
> - $obj->method()->anotherMe
I think here's your problem:
$query="INSERT INTO game_of_the_day VALUES
('',$curr_yday,'$gameone_genre',$gameone_number,'$gametwo_genre',$gametwo_nu
mber)";
should look like :
$query="
INSERT INTO
game_of_the_day
(ID, curr_yday, gameone_genre, gameone_number, gametwo_genre,
gametwo
Can anyone tell me whether php can use win32 dll library functions? If yes,
how?
Patrick
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Rasmus Lerdorf schrieb:
> > If anyone has any idea, or tricks to hide information in a variables or
> > method in a class, or in other words, make a variable or method a private,
> > I would really like to know. Thanks for any comments.
>
> PHP also doesn't have introspection, so there isn't a
Yasuo Ohgaki schrieb:
> I don't use GDB, but it seems it supports traceback.
> How about Zend Debugger? Does it support? Anyone?
http://dd.cron.ru/dbg/ ?
Ulf
--
Neu: PEAR Cache Erweiterung OutputCompression
http://www.ulf-wendel.de/php/show_source.php?file=out_cache_com
http://www.phpdoc.de
not that i know...but if you can code an extension that have functions to
call Win32 dlls than you solved it...
I also care to know if what you asked for have a direct solution...
-elias
http://www.hostrix.com
""Patrick Lai"" <[EMAIL PROTECTED]> wrote in message
9c8d8l$uh3$[EMAIL PROTECTED]">new
>
>
> Yasuo Ohgaki schrieb:
> > I don't use GDB, but it seems it supports traceback.
> > How about Zend Debugger? Does it support? Anyone?
>
> http://dd.cron.ru/dbg/ ?
>
> Ulf
Thanks for correcting my typo, Ulf.
GDB => DBG :)
Yasuo Ohgaki
--
PHP General Mailing List (http://www.php.net/)
T
Hi,
I've got a load of records that are in different categories.
What is the best way to get all the records or selected records and print
them in such a way that they are grouped (on the page) in their relevent
category, like:
Fruit
-> Apples
-> Pears
-> Bananas
Vegetables
-> Carrots
-> Cabba
well, as long as they are related to each other ..
just a quick SQL,
SELECT
groupName,
title
FROM
table
WHERE
this='is what I need'
GROUP BY
groupName
ORDER BY
201 - 212 of 212 matches
Mail list logo