39,320 Topics
| |
In my variable $time=2008-12-19 14:12:10 [COLOR="Green"] this value is in database [/COLOR] and duration to find next date is 21157 in seconds $event_length=21157 [COLOR="Red"]Suppose today's date is 2008-12-21[/COLOR] How to find [COLOR="Red"]next date by using $time value[/COLOR]?? [code] $timestamp = strtotime("$time"); $etime = strtotime("+$event_length seconds", $timestamp); $next_time = date('Y:m:d H:i:s', … | |
hey folks, I have a question. I have several mysql tables and I'd like to fetch data from a few of them to create a <select> <option> list. How could this be done. I can get the info from one table, but don't know how to get the data from … | |
I'm wanting to start a page on my video game site where users can view games out this week. It'd be cool if they could look ahead to games coming out in the future and maybe even a way of archiving. I guess similar to imdb ( I can't find … | |
I have made a script that gets only friday and puts them in a drop down but now i dont want to upload it into the datbase as a string i need it as timestamp so i can filter and order for current day and such. here is the form … | |
Hello, I am wanting to take an uploaded picture from one page, put it into a session and carry it to another page. Once I get to that page and the client accepts it, then store it in the database. I'm starting to get confused on how this would work … | |
hey guys as u all might know that i have been working on a cms system for quite some time. what i want to know is that as potential users what would you like to see in a content management system? what are the features that you want to see … | |
I am planing to write a php script which can display time schedule bar, based on start/end date, and each project(see attached image, start/end date and project name are saved in database), the length of time bar should be flexible upon start/end date, I have no idea how to implement … | |
Hi, I have a site with free games, etc.. I want to do this: when a user clicks on a game to play, he is redirected to the landing page, where a script checks, if he has our toolbar installed; if yes, then he can play the game - if … | |
Dear folk , I have some Data which I want to send it with PHP the thing I need is this : $to="email@test.com"; $CC="email@test.com"; $data = "these Information is going to be attached to an Email I tring to send them by PHP to those addrest ses and also make … | |
suppose in database check_date 2008-12-19 18:12:48 //change time [code=php]$sql=mysql_query("select * from table where check_date=now() ")or die("Error: ".mysql_error()); $row = mysql_num_rows($sql); if($row>0) echo $row; { echo"Hello"; //Execute some query }[/code] But there is no change in database...... how to do that?? or [COLOR="Green"]how to check time continuously? [/COLOR] for condition | |
i have a question. my function works in a way that once user clicks the link, the open save dialog box will pop out then the user have a option to choose whether to open or save the mp3 file. The problem is the save function can wrk meaning if … | |
I am really stuck with any idea on how to do this. It is really confusing. Is there any way in PHP that i can select only one day of the week. My scenario is that people are only allowed to make reservations on a Friday. Is there any way … | |
Is this possible? Under the head tag to change title, meta, etc whilst in the body (but i doubt this would be SEO oriented). Refer to [url]http://www.daniweb.com/forums/post759748.html#post759748[/url] Thanks, Regards X | |
HI, i have integrated the cross-browser RTE editor into my Site But whenever i try to use any of its features like uploading or adding hyperlinks it opens a popup telling me that Page Not Found HTML/*.html not found !! i dont know where is that folder and it wasnt … | |
Ok, I'm having a hell of a time with this script(s)...probably just too tired to think straight but need to get it done ASAP...so perhaps someone can give me some assistance, or atleast point me in the right direction. 1. First page will be a multi-select checkbox with about 200 … | |
Hi All, I am new to tikiwiki can anyone help me to know the architecture of tikiwiki. Where i can find the architecture... Advance thanx..... | |
In my MYSQL databse there is field named [B]' show' [/B] type [B]' bit '[/B] . When i am inserting record to database for varchar fields i select the Textbox , but for checkbox which one i will choose ( there is two options submit as Y/N or 1,0 ). … | |
How to print GMT 5:30 time in a TextBox using PHP . Please .... i found many scripts that are not working . i want to print this format eg: 18-12-2008 1:06 AM . Please | |
I need some help here please. I have a form that has a javascript slider bar to give one field's percentage. Unfortunately I can't get the value to pass to the hidden input. Here's the code: [code=php]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Slider test</title> <script type="text/javascript" … | |
Do you want to know how many visitors surfed on your website? I guess your answer is yes. But how to do and which tool can create such a counter? Now, I will solve all the problems and show you the steps to create a counter. Here, I will make … | |
hai, i integrate my php pages with java pages in website. i want to get data from that java pages..but not using url's...how to get data from java pages without using url's.. | |
This is my code can you expllain how the user may activate or inactivate with check box.... [code=php]<?php mysql_connect("localhost","root","rootwdp"); mysql_select_db("rams"); if(isset($_REQUEST['submit'])) { $arr=$_REQUEST['chk']; foreach($arr as $key => $value) { $sql=mysql_query("update ram set status=1 where emp_id=$value"); } $sql1="select * from ram where status=1"; $res1=mysql_query($sql1); ?> <form action="" method="post" name="form"> <table border="1"><th>Username</th><th>Empid</th><th>Designation</th><th>Check … | |
I need a script that performs this task: I want a script in PHP/MySQL or AJAX, that reads the Ad Block of Google Adsense and finds out link, so that they can be used in another portion of the page. Read Details if not clear. [COLOR="Red"]I have a site, for … | |
Hi, This is a tough one! Is there a way to prevent someone from typing in a url to get to a page YET that page IS accessible from a LINK on some other webpage. Thx | |
I cant get the List/menu to remember the list choice when i reload the form [ICODE] <script type="text/javascript"> function reload(form) { var val=form.SelectDate.options[form.SelectDate.options.selectedIndex].value ; self.location='Snapshot.php?SelectDate=' + val ; <?php $SelectDate=$_GET['SelectDate']; switch($SelectDate) { case "1" : $Datefrom = date('Y-01-01'); $Dateto = date('Y-12-31'); $aa ="selected"; break; case "2" : $Datefrom = date('Y-01-01'); … | |
I trying to make small personal website in PHP + MYSQL . In my database there is a table named ' tblUsers ' . I am using this table for users Login .I displayed the username of the user after the login . But how to track the userID of … | |
hey Guys I'm was wondering whether anyone can help me, i have finished with the development of my PHP enabled website and i was wondering whether you guys can advise me on testing strategies that i can undertake?? Please me! | |
Hello everyone! I am new to JavaScript and have been using PHP, but needed to use a dynamic form for information about County/State. Here is part of the code (keep in mind I did all 50 states this way-that's well over 3000 counties): [code] <script language="JavaScript" type="text/javascript"> <!-- //first combo … | |
Happy Holidays! I have a one field form. Upon submission with the submit button, I wish to drive this field value into my SQL database table called MEMBERS and field called NAMES, thus adding a new record. Can this be done with an OnSubmit() call to a function, in the … | |
I am trying to insert a date into a mysql table field using [CODE] <?php $date=date(Y-m-d); mysql_query("INSERT INTO table VALUES('$date')"); ?> [/CODE] but when I open up mysql and run SELECT * FROM table; it returns a date value of 0000-00-00 instead of the current date at time of insert. … |
The End.