RE: [PHP-DB] Dynamic Website Question!

From: Bronislav Klucka (Bronislav.Klucka_at_pro2-soft.com)
Date: 11/30/03


To: "PHP Konference" <php-general@lists.php.net>, "JeRRy" <jusa_98@yahoo.com>
Date: Sun, 30 Nov 2003 11:33:38 +0100


>
> Okay I see how that works. However I have a heap of
> mysql queries to do and only want the output from the
> database to show.
>
> > ele.innerHTML="<?=date("Y-m-d H:i:s");?>";
>
> So is the section I need to change?
>
> Now I have 2 options, I can include the code in that
> file but it appears it don't like spaces and enters
> and outputs an error and wont do anything or I could
> add a require function to get it from another
> filename?
>
> How can I do it?
>
> The queries are about 25 lines long with varies
> queries. How can I make it work with the code you
> sent me?
>
> The code works fine on it's own so it works. :)
>
> Jerry
>

Hi,
This is only sample how to change content od this element, where you get
data is your problem:

1/
<?php
$data='';
for ($i=1;$i<1000;$i++) $data.=$i;
?>
.
.
.
ele.innerHTML="<?=$i?>";
.
.
.
2/
$res=mysql_query("select crap from table'');
$row=mysql_fetch_array($res);
.
.
.
ele.innerHTML="<?=$row["crap"]?>";
.
.

3/
if ($fd=fOpen('file.ext","r")){
        $var=fread ($fd, filesize ($filename));
        fClose($fd);
}
.
.
.
.
ele.innerHTML="<?=$var?>";

.
.

clear?

Brona



Relevant Pages

  • Re: access 2003
    ... I would focus on the queries behind the combo boxes. ... the Access 97 database, I wouldn't have thought any expressions would be ... When you select a customer and a job in the two combo boxes, ...
    (microsoft.public.access.conversion)
  • Re: access 2003
    ... I would focus on the queries behind the combo boxes. ... the Access 97 database, I wouldn't have thought any expressions would be ... When you select a customer and a job in the two combo boxes, ...
    (microsoft.public.access.conversion)
  • Re: Question on conversion to ADP
    ... the money toward developping .NET technologies instead of Access. ... result of passthrough queries read/write instead of read only and also make ... database become corrupted when the users will start making their very own ... of ADP but what they are pushed toward is - how could I say that politely - ...
    (microsoft.public.access.adp.sqlserver)
  • Re: User has group permissions to object, but still denied access.
    ... permissions to those query objects. ... The owners for the other 68 queries can be changed. ... may have been some of the original queries created in the database. ... Regarding the security, the database was converted from an Access 97 ...
    (microsoft.public.access.security)
  • Re: Access/Word 2007 Mail Merge
    ... have thought that they would have occured earlier in the connection process. ... specify DDE, I always get the DDE dialog. ... might be "unusual" about your database, its location, etc. ... This isn't quite what I normally see either: Queries with joins are ...
    (microsoft.public.word.mailmerge.fields)