php-windows Digest 8 Oct 2002 12:43:26 -0000 Issue 1377
Topics (messages 16240 through 16247):
Re: i need help with an undefined variable
16240 by: SEGUERRA FRANCIS TED ARANAS
Re: odbc_fetch_array function
16241 by: SEGUERRA FRANCIS TED ARANAS
16245 by: Matt Kynaston
Re: Problems refreshing
16242 by: SEGUERRA FRANCIS TED ARANAS
Information not always saved in MySQL when too slow
16243 by: Paul van der Vlis
Detecting language
16244 by: Aitor
storing images in mysql db ?????
16246 by: toby z
Re: [PHP] Deleting multiple items from database using checkboxes
16247 by: Philipp Lutz
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
its better you use php on your iis 5.
it is much stable and much faster.
______
boggss
On Thu, 3 Oct 2002, Uttam wrote:
> this is due to 'register_globals' is off by default in php 4. this is for
> security reasons. pls. use $game as $_GET['game']. alternatively you can
> turn on 'register_globals' in php.ini (not recommended).
>
> regds,
>
> -----Original Message-----
> From: Anyang [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 02, 2002 07:08
> To: [EMAIL PROTECTED]
> Subject: i need help with an undefined variable
>
>
> I wrote a php script for a page that I hosted on a separate host and it
> worked perfectly. I recently installed php 4 onto my windows XP Pro
> build
> 2600 computer and it seems to work until I try to use varuables that
> look to
> the address bar for reference.
>
> I wanted to make it so that when somebody clicks "game" it would go to
> www.mywebsite.com/index.php?game=example and that would merely replace
> the
> body with the example page. It worked on my other host but when I tried
> it
> on my computer it says:
>
> Notice: Undefined variable: game in C:\Xitami\webpages\index.php on line
> 5
>
> Notice: Undefined variable: game in C:\Xitami\webpages\index.php on line
> 8
>
> My script says:
>
> <?php
>
> include("head.html");
>
> if (!$game) {
> include("public.html");
> }
> if ($game != NULL && $op != NULL) {
> include("http://mywebsite.com/example/" . "$game" . ".html");
> }
>
>
> any ideas? please help. if there's any script i can type and have all
> the
> pages require it so that this can be defined that would work great.
>
>
>
>
>
--
ov3rr|d3r
--- End Message ---
--- Begin Message ---
what database are you using? that problem is a database connection from
your php to your db. i have been using the same as your for a couple of
months but i have no problem since my db is placed on my cygwin.its a
postgresql db.
On Thu, 3 Oct 2002, Pascal S. wrote:
> I have version 4.2.3 of PHP installed on a Windows server.
>
> I am new to PHP. I did find the function
> array odbc_fetch_array ( resource result [, int rownumber])
> in the documentation, but it doesn't seem implemented in the version that I
> use.
>
> Do you know what I did wrong?
>
> Thanks,
>
> Pascal
>
>
>
>
--
ov3rr|d3r
--- End Message ---
--- Begin Message ---
Check out the user notes at:
http://www.php.net/manual/en/function.odbc-fetch-array.php
One includes a workaround if you're using a version where it doesn't exist.
Matt
> -----Original Message-----
> From: SEGUERRA FRANCIS TED ARANAS
> [mailto:[EMAIL PROTECTED]]
> Sent: 08 October 2002 05:31
> To: Pascal S.
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] odbc_fetch_array function
>
>
> what database are you using? that problem is a database
> connection from
> your php to your db. i have been using the same as your for a
> couple of
> months but i have no problem since my db is placed on my cygwin.its a
> postgresql db.
>
> On Thu, 3 Oct 2002, Pascal S. wrote:
>
> > I have version 4.2.3 of PHP installed on a Windows server.
> >
> > I am new to PHP. I did find the function
> > array odbc_fetch_array ( resource result [, int rownumber])
> > in the documentation, but it doesn't seem implemented in
> the version that I
> > use.
> >
> > Do you know what I did wrong?
> >
> > Thanks,
> >
> > Pascal
> >
> >
> >
> >
>
> --
> ov3rr|d3r
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
try this on the page you are trying to have the latest update from the db
and not front eh cache;
<?
header("Expires:Mon, 21 Feb 2000 14:25:25 GMT");
?>
On Mon, 7 Oct 2002, Aitor wrote:
> Hi, I'm working on a PHP and mySQL website based but I have a problem refreshing the
>information of the webs. When I load/change information on the mySQL throught the PHP
>site the new information is not displayed on the site because the browser use the web
>from the cache memory. How can I force the browse to reload the information everytime
>the web is loaded?
>
> if you want to try the web and tell if it works this is the URL :
>Http://www.7islands.net/Aerena/
> It's in spanish!
>
> Thanks!
--
ov3rr|d3r
--- End Message ---
--- Begin Message ---
Hello,
I have problems with some pages which work fine under Linux (with
different program versions). The problem is, that when I am too slow (5
minutes?), the information from a PHP page is not always saved in the
MySQL database. Does somebody know more about this problem?
PHP 4.06
Apache 1.3.20
MySQL 3.23.34
With regards,
Paul van der Vlis.
--- End Message ---
--- Begin Message ---
How do I detect the language of the browsers that visit my site so I can redirect them
to a specific web?
--- End Message ---
--- Begin Message ---
hi guyz
i ve these images of text n i ve to store em in mysql
database
ALONG WITH some TEXT
n im storing the text in a longtext field
vat do i do ????
can n will some1 plz help ?????
thnx a million guyz
toby ......
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--- End Message ---
--- Begin Message ---
How about :
if (is_array($dele))
{
$sql= "DELETE FROM gastenboek WHERE entryID IN (".join(",",$dele).");
mysql_query($sql, $connection);
};
Quicker and Cleaner ... and MySQL has less to check...
[EMAIL PROTECTED]
tech expert
pinienstrasse 2
40233 duesseldorf
<tel> 0211 4 95 35 49
<fax> 0211 5 07 22 13
> -----Ursprüngliche Nachricht-----
> Von: Ing. Raúl González Rodríguez [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 7. Oktober 2002 22:48
> An: Php Mailinglist; Php-Windows Mailing
> Betreff: [PHP-WIN] Re: [PHP] Deleting multiple items from database
using
> checkboxes
>
> You can use the following code to delete multiple items:
>
> if(isset($dele) && (count($dele) > 0)) {
> $sql = "delete from gastenboek where (entryID='$dele[0]')";
> for($i=1; $i<count($dele); $i++)
> $sql .= " or (entryID='$dele[$i]')";
> $res = mysql_query($sql, $connection);
> }
>
> Raul
>
> ----- Original Message -----
> From: "Davy Obdam" <[EMAIL PROTECTED]>
> To: "Php Mailinglist" <[EMAIL PROTECTED]>; "Php-Windows
Mailing"
> <[EMAIL PROTECTED]>
> Sent: Monday, October 07, 2002 4:05 PM
> Subject: [PHP] Deleting multiple items from database using checkboxes
>
>
> > Hi people,.
> >
> > I have a guestbook admin page were i would like to delete one item
or
> > more items from the database if necessary. I have modified my normal
> > guestbookpage so that it has checkboxes in front of every entry.
This is
> > my code:
> >
> > <input type=\"checkbox\" name=\"dele[]\"
value=\"".$sql['entryID']."\">
> >
> > Now i can select multiple items. But i have tried to delete em, but
it
> > only deletes one item from the database, my query looks like this :
> > DELETE FROM gastenboek WHERE entryID=$dele . Can anyone help me.
Thanks
> > for your time.
> >
> >
> > Best regards,
> >
> > Davy Obdam,
> > mailto:[EMAIL PROTECTED]
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---