Re: [PHP-WIN] URL rewrite

2012-07-12 Thread Vinay Kannan
couple of years back, google tends to change things more than we anticipate or can think of i guess :) Thanks, Vinay On Thu, Jul 12, 2012 at 1:33 PM, Arno Kuhl wrote: > -Original Message- > From: Gavin Chalkley [mailto:gavin.chalk...@gmail.com] > Sent: 11 July 2012 10:08 PM > T

[PHP-WIN] URL rewrite

2012-07-11 Thread Vinay Kannan
Hello Experts, I have a query on URL rewriting. I have a site, which has categories and products under the categories. the url has been re-written to hide the .php part of the pages, the page also shows up correctly when we do type in the .php extension. this is how a link shows : eg : localhost

Re: [PHP-WIN] Date Problem

2012-06-21 Thread Vinay Kannan
st (in a non-leap year). > > Your first step should be to define the business rules - what happens when > a > date doesn't exist (like February 30th)? Is it OK if the returned date is > on > a weekend? Or a holiday? > > Toby > > > > -Original Message-

[PHP-WIN] Date Problem

2012-06-20 Thread Vinay Kannan
Hey Guys, I am working on a project for a client who is a retailer of inverters and batteries, and currently the system records the salesdetails including the warranty expiry date which is always a year(12 months). But he wishes to provide support and service every 3 months and that seems to be t

[PHP-WIN] Session destroy on window close.

2012-05-05 Thread Vinay Kannan
variables to define the access privileges to each user, is this the best method in terms of security? Thanks, Vinay Kannan.

[PHP-WIN] School timetable in php

2012-04-20 Thread Vinay Kannan
hey, I am trying to develop a school time table system in php mysql, anybody has any headsup on the same, i was thinking about some existing scripts to take a look at. Thanks, Vinay

[PHP-WIN] Session and Access Privilages.

2012-03-29 Thread Vinay Kannan
Hey, I am working on the application, thought its not OOP currently, I plan to take it further in a year or so. Right now, I have 4 access levels which define what the users can do on the application. Based on the access levels defined, a session varialble is set called $_SESSION['authtype'], and

[PHP-WIN] Session Timeout and forwarding the user to the page he was on.

2012-03-23 Thread Vinay Kannan
Hi, I have a small code for auto session time out, which logs out a user upon a session timeout, i want to get him back to the page he was on, before the session time out.. $inactive) { $go=$_SERVER['HTTP_REFERER']; session_destroy(); header("Location:index.php?go=$go"); } } $_SESSION['timeo

[PHP-WIN] default domain name

2011-12-16 Thread Vinay Kannan
Hello, I need your help on something, i am developing an application, and there are couple of modules where i need to provide the entire link of the domain along with the sub dirs. So i was wondering what is the way, to provide the default domain name which will work on any domain. for ex : if th

[PHP-WIN] Re: [PHP-DB] Re: Need Help with database output

2010-08-30 Thread Vinay Kannan
Whats Dreamweaver php codes. It automatically does the coding ?? Never even knew about such a thing Thanks, Vinay On Mon, Aug 30, 2010 at 9:44 PM, nagendra prasad wrote: > Hi All, > > Thanks for all your replies. I have found what I needed. I used Dreamweaver > to show the database in 3 differen

[PHP-WIN] Re: [PHP-DB] Unable to connect to mysql database

2010-08-11 Thread Vinay Kannan
I am guessing the message "unable to connect to database" is something you have echoed on a die() or as an error message, could you tell us what is the step before this. Also just check if the database is set correctly, and the user name and the password is correct. Some hosts use the host as loc

[PHP-WIN] Re: [PHP-DB] Image linking help in PHP

2010-07-04 Thread Vinay Kannan
So basically you want to be able to associate an image with an Mp3, and the path to the mp3 is stored in the DB, right ? If above is the case, why dont you upload the image to an image folder, and save the path to the image in the DB too along with mp3 path details, I think this should work ! Than