Hey, I have a database with approx 200-300 students in it. I wanna be able
to pull out what student joined a class with in a certain date range. Say I
wanna get all the students who joined between 10/12/04 through 12/12/04.
What is the easiest way to do this ? Can it be done with just a simple M
and over time this can make the database quite large, How would I make it
delete the oldest update and just add the newest update to the top of the
list ? So this way I only have 5 updates stored in the database at all
times.
Thanks
ConbuD
---
Outgoing mail is certified Virus Free.
Checked by
set by the webhost ? and this overhead you think that would keep the info
from being entered into the database. To get the error to go away I have to
optimize the table.
ConbuD
"Conbud" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hey, just a quick question,
magic_quotes_gpc is on, I dont use addslashes
ConbuD
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Are the variables quoted out by php setting magic_quotes_gpc or do you
> have to use addslashes in your code?
>
> conbud wrote:
>
with the MySQL syntax ?
I just have no clue now. Any thoughts are appreciated.
Thanks
ConbuD
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi, Ive been trying to get this to work but I keep getting this error
Parse error: parse error, unexpected $ in /home/conbud/nrlug/test3.php
on line 72
line 72 is just the ending php bracket, heres what I got:
@mysql_connect(localhost, root, boing_boing) or die("ERROR--CAN'T
Hey thanks everyone, I pretty much got it working now.
Conbud wrote:
Hi, this is kind of a complex question, Im making a message board, now I
dont want list, lets say, all 25 messages on the same page. I would like
to have <- previous 1 2 3 next -> type of links and only list 5 message
of the
page number links it will list the next 5 messages that havn't been
listed yet. Could someone show me how to do this or at least point me in
the correct direction ? The data is all stored in a MySQL database.
Thanks,
--
Conbud <[EMAIL PROTECTED]>
Graphic & Web Design Using O
his is easily adaptable to three (or more) columns by changing the last
if() statement...
Justin
on 20/12/02 5:21 PM, conbud ([EMAIL PROTECTED]) wrote:
Hi.
Lets says I have 8 links stored in a database, extracting those links is
no problem. Now lets says I have 2 columns, how do I get link 1 int
--
Conbud
Graphic & Web Design Using Open Source Technology
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
John Taylor-Johnston wrote:
Jason wrote:
RTFM again.
Jason, again, I RTFM, but did not get it working.
Otherwise I wouldn't have dared ask a question.
Sessions depends on a number of factors
including your version of PHP and the setting of register_globals.
The FM manual says:
"$_SESSION
Sport4ever wrote:
PHP version: 4.2.1
OS: RedHat Linux 8
Apache version: 2.0
My problem is that I can't execute more than one (SSI include) on my website JUST for PHP file.. so there is NO problems at all if I include HTML or SHTML files.
Anyway, if I include 2 PHP files into any page, the first
back for the file
called style.css. Hope that helps.
--
conbud
Graphic & Web Design Using Open Source Technology
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hey,
I've been using Apache 2.0.43, PHP, MySQL on Linux machine. Ive been using
for a production site that gets good traffic but nothing real major. Has
multi threading so the speed is really nice. Apache 2 and PHP are still
experimental at the time. However, I havn't ran into any difficulties with
I was just curious, but what program or website do you all use to view and
reply to the newsgroups with ?
Lee
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hey. Is there a way to get the actual word/phrase from the long string that
the md5 hash creates. Lets say, is there a way find out what
b9f6f788d4a1f33a53b2de5d20c338ac
stands for in actuall words ?
Lee
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.ne
Hey again.
In the php.ini if
register_globals = Off - which is the default setting
then you will need to use $_SESSION['variable']
- Lee
"Jason Romero" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> when using session registered variables
> i can only get the
Hey
Also in your php.ini do you have
session.use_cookies = 1
if its set to 0 then you will need to pass the variables through the URL.
- Lee
"Jason Romero" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> when using session registered variables
> i can only get
Lets see where to start. Ive used both the px, pixels, and the small and
tested them both in Linux (Mandrake 9.0) using Mozilla. Galeon and Opera,
using default settings they come with, and they zoom the text with no
problems. On windows Ive tested the same stuff using IE and Netscape, using
defaul
Hey. This really isnt a PHP question. but what fonts do you reccomend using
so they look decent on linux. Mainly looking for a good font that will look
nice in MoZilla and Galeon. Almost all the fonts Ive used so far appear
really tiny or really bold and not very good to read.
-Lee
--
PHP Gene
Hi. I spent the last 3 days looking through the apache docs to figure out
how to disable directory listing. I can disable the directory listing to my
images folder but then all the images on the site dont work. I tried using
Allow from mydomain
and
Allow from localhost
Allow from 127.0.0.1
I even t
Hi,
If your register_globals is off then you will need to use
$_GETand $_POST to get the data from the form.
echo $_POST['Name'];
Lee
"Chris Jackson" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all:
> Im new to php and i have an isue.
>
> php4.2.3 wind
Hey you may want to try
in page2.php :
session_start();
echo('{$_SESSION['abc']}');
Lee
"Anjali Kaur" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> i want to access some variables generated in one page
> in all the other pages, so i thought of using
> $_SES
Jason thanks,
I completely forgot about trying echo $sql by using that I found where it
was messing up. Thanks again.
Lee
"Jason Wong" <[EMAIL PROTECTED]> wrote in message
news:200211141725.47510.php-general@;gremlins.biz...
> On Thursday 14 November 2002 17:22, conbud wro
Whats wrong here ?? The variables are getting the correct information from
the form but for some reason as soon as I put the variables into the $sql
they dont post the proper data to the database, its connecting to the
database ok but just not updating the data.
$sql = "UPDATE updates SET member=
I am using session_start, im using php 4.2.3
Lee
"Conbud" <[EMAIL PROTECTED]> wrote in message
news:20021112075942.16291.qmail@;pb1.pair.com...
> Hey,
> I do have it in a variable but I just choose to leave it out.
> Ive tried so many different things with this and
Also the echo statement is just there for testing purposes to make sure the
variable were containing the correct data.
Lee
"Conbud" <[EMAIL PROTECTED]> wrote in message
news:20021112075942.16291.qmail@;pb1.pair.com...
> Hey,
> I do have it in a variable but I just choose
.com.hk...
> On Tuesday 12 November 2002 15:05, conbud wrote:
> > Hey,
> > How would I insert $_SESSION['user'] and $_SESSION['pass']
> >
> > into this
> > mysql_query("select count(*) AS numfound from admins where user='$user
Hey,
How would I insert $_SESSION['user'] and $_SESSION['pass']
into this
mysql_query("select count(*) AS numfound from admins where user='$user' AND
pass='$pass'",$db);
right now I have
$_SESSION['user'] = $_POST['user']
$_SESSION['pass'] = $_POST['pass']
and I need to put $_SESSION['user'] whe
or make it global:
>
>
> function db_conn($host,$user,$pass,$dab)
> {
> blobal $db;
> $db = mysql_connect("$host", "$user","$pass"
> mysql_select_db("$dab",$db);
> }
>
> --
> Maxim Maletsky
> [EMAIL PROTECTED]
>
>
>
= mysql_connect("$host", "$user","$pass")mysql_select_db("$dab",$db);
}
"Conbud" <[EMAIL PROTECTED]> wrote in message
news:20021110065837.99825.qmail@;pb1.pair.com...
> Hey
> Im trying to create a fucntion in an include file
> function db_c
>
> php|architect - The magazine for PHP Professionals
> The first monthly worldwide magazine dedicated to PHP programmers
> Check us out on the web at http://www.phparch.com
>
>
>
> On Sun, 2002-11-10 at 01:58, conbud wrote:
> > Hey
> > Im trying to c
Hey
Im trying to create a fucntion in an include file
function db_conn($host,$user,$pass,$dab)
{
$db = mysql_connect("$host", "$user","$pass")mysql_select_db("$dab",$db);
}
In the page ide use:
require('func.inc.php');
db_conn("$host","$user","$pass","$dab");
$result = mysql_query("select
Hey
I did what both of you all said to do
href="nav.php?page=about§ion=Linux"
and my arg_separator.output is ok but Im stilling getting that same error
with W3C, my page is executing ok and was before, but I cant get it W3C HTML
4.01 valid with that error.
-Lee
"Conbud
Hi,
In some of my URLs I have to pass variables through the URL like
nav.php?page=about§ion=linux - when i do this and then scan my site for
W3C validation I get this
Line 40, column 28:
... http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hey there check out this URL
http://www.php.net/manual/en/installation.php
-Lee
"Mike At Spy" <[EMAIL PROTECTED]> wrote in message
news:GKEFLEHIPEGIFEECKBNEAEHCGMAA.spycobalt@;spyproductions.com...
>
> PHP isn't working in my html docs - what changes do I need to make to get
it
> to do so? Does
Hey
Use error_reporting = E_ALL & ~E_NOTICE
that will display all errors except notices, I use if statements in a lot of
my pages and if one of the variables in the if statement doesnt get defined,
which some of them are ment to not get defined if a certain other variable
is already define, so you
; ", $sentence );
>
> for( $i = 0; $i < 4; $i++ )
> {
> echo "{$words[$i]}";
> }
>
>
>
> On Thu, 2002-11-07 at 22:29, conbud wrote:
> > Say I have a sentence that contains 8 words, how do I get PHP to list
just 4
> > of those 8 words ?
Hi,
I use Apache 2.0.4 and PHP 4.2.3 on Mandrake Linux and Win XP. On Linux its
been extremely stable and havnt had a single problem yet, on XP I have a few
minor problems to where the PHP was executing slow but nothing majorly
noticable.
"Davy Obdam" <[EMAIL PROTECTED]> wrote in message
news:0
Say I have a sentence that contains 8 words, how do I get PHP to list just 4
of those 8 words ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
40 matches
Mail list logo