Hi All,
I have to scripts and am using
1. <body onLoad="begintimer()">
2. <body onload="volchange(7); setTimeout(playitnow, 50);" onunload="DeInit();" >
Not able to get both the scripts to work with one onLoad command.
Please suggest how can I combine both of them
TIA.
Hi,
Yes I am using MYSQL and with column details
`item_code` varchar(25) default NULL the date is entered in format YYYYMMDD (22060526)
Table Details
CREATE TABLE `store_item` (
`item_id` int(11) NOT NULL auto_increment,
`item_title` text,
`item_desc` text,
`item_subdesc` text,
`item_code`...
Hi,
I am trying to learn is that compare the row 'item_exp' to the current time, if the time has passed, the record needs to be remove from the database.
I will use cronjob to run it.
$SQL = "Delete from $store_item where item_exp < UNIX_TIMESTAMP (date_sub(now() interval 1 day))"...
Hi,
I was able to get the code to work with modifications, I added
(TO_DAYS(NOW()) - TO_DAYS(date_expire)) AS daysToExpiration in my Query to give the difference.
$display_block = "";
//show categories first
$get_cats = "SELECT
item_id,
sort_id...
Hi Jpadie,
I am trying to explore further and learn on the time stamp
What I am trying to learn
1. Picks from Database expire time
2. Declares expire date
3. Compare to current time
4. Declares days left
5. Displays image expire if day passed, ending < 1 day, new >1 day
6. Add days if more...
Vragabond,
I have just started to learn php/MYsql. Lwearning curve is high.
Appreciate if you can guide me through.
I do pull timestamp in my MYSQL query.
TIA.
regards
Hi All,
I moved my server and SQL database and now getting errors showing timestamp
old server the time stamp
format was 20050316134117
with `time_stamp` timestamp(14) NOT NULL
and the new server has 2006-04-21 15:27:11
with `time_stamp` timestamp NULL default CURRENT_TIMESTAMP,
the...
These are atleast 2 of the links where it ref to doError
http://dev.nucleuscms.org/dev/phpXref/nav.html?_functions/index.html
http://cvs.sakaiproject.org/release/2.1.1/javadoc/org/sakaiproject/portal/authn/AuthnPortal.html
Hi All,
I am getting errors when I call in the page
Fatal error: Call to undefined function: doerror() in /home/u3/html/modules/Playlist/req.php on line 50
I am using php4
The php.ini file I am using is
[PHP]
; This is the default PHP 4-style version of the php.ini settings file.
; It...
I hope this time I did correct
<script>
function newWindow(thePage) {
var w = 550;
var h = 300;
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops =...
Dan,
Enclosed is the complete script for your ref; appreciate your time for help. I hope this is what you meant bythe client-side code.
<?
include("includes/config.php");
$SAMdb->open("SELECT songlist.*, historylist.listeners as listeners, historylist.requestID as requestID...
Hi,
I am using this customised script to display the countodwon of the songs.
Using Linux server, SQL4.1 and php+java
//tables in MYSQL
`date_played` datetime NOT NULL default '0000-00-00 00:00:00',
`duration` mediumint(9) NOT NULL default '0',
//examples of data
dateplayed...
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.