What I'm trying to do is include a different content file each day, so I tried this, but clearly doesn't work!
What I want is to load (today)
./content/91.htm
$pth['folder']['content'] = './content/';
$pth['file']['content'] = $pth['folder']['content'].$date("z")'.htm';
Thanks for your...
php newbie here.
Could someone help with what I think is a simple piece of php?
I need a number for every day of the year. e.g. Jan 1st = 1, Jan 2nd = 2,... Dec 31 = 365 (or 366).
How can I do that in php?
Thanks
Liark
I am a bit stumped.
I have a table with an index, the table includes firstname, lastname, and a pointer to the index of the same table, different record.
e.g.
ID, FirstName, Lastname, Pointer
where pointer is the ID of a different record in the same table.
What I want to produce is a...
I have two fields in a table..... in my select statement, I'd like to select a variable as THE DIFFERENCE between these two fields. Is this possible?
i.e.
SELECT (abc - def) AS ghi FROM table
WHERE....
this is the code:
<cfquery name="gettopmovers" datasource="abc" maxrows=10>
SELECT...
Here is my problem:
I have two tables, each table contains ten unique letters.
How can I compare the two tables to give me the number of matches?
eg table 1 has:
q, w, e, r, t, y, u, i, o, p
and table 2 has:
z, t, q, g, j, a, u, s, r, m
The answer I need is: 4
I don't need to know which...
I'm passing accross url.name which is a concatanation of two fields in a database table (forename, surname)
Please, how can I select that record from the table?
SELECT * from person
where 'per_forename per_surname' EQ #url.name#
Liark
I have a table which has ten fields and any number of records. I have another table with one field and ten records. (it has more than one field really but that is not important)
I want to loop through the first table looking through its fields for each occurance of entries of the second table...
Is there any way I can see the identity of a user that has logged into his NT pc so that he doesn't have to re-log in to the intranet?
Thanks
Liark
mark@liark.com
www.liark.co.uk
I have gathered all the data from various sources.
Do I need to create a form like this to write it, or is there a better way:
<cfoutput>
<form action="write.cfm" method="POST">
<input type="Hidden" name="data1" value="#data1#">
<input...
I came across this article and was wondering how to implement this in CF... Any ideas anyone, I think this could be really useful for us.
http://www.webmasterbase.com/article.php?aid=314
Liark
mark@liark.com
www.liark.co.uk
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.