If your session unsets with logout then you check for session variable on top of page;
[PHP]isset($_SESSION['your name']);[/PHP]
If not set, then redirect him to login page.
:))...
User Profile
Collapse
-
-
Take one field which records the login time, update it in every page and every time the user comes to the page.
And let it allow you if it has passed your desired time elapsed with your login time.
hope the mystery solved.
:))...Leave a comment:
-
Add a field in database with datatype boolean (make the default value 0 i.e. unlocked. U may take 1 also). when some one wants to update particular record just run a query to make field values 1(i.e. locked) for all records having the particular Primary Key. Then just add a little more into your update query by checking that if the rows are locked or not. If not then you can update, else alert a message to the user. After updation run another query...Leave a comment:
-
Yah! Thanks I found a good lightbox package here....
http://www.lokeshdhakar.com/projects/lightbox2/
But still all the animations are handled by javascript and css is to just style the image. Doesn't it?
:))...Leave a comment:
-
I think it's a javascript related problem(If I'm not wrong). So please post it in javascript forum.
:)...Leave a comment:
-
You just create a php file for you graph. Then at the end in the graph->stroke() function give a path to where you want to save the graph image.
[PHP]graph->stroke('file path');[/PHP]
See if it is saved or not. The path must have a file permission to save the image. If its done then you put the hole code inside a function. Pass all parameters the function requires and call it in your pages. Every time your page...Leave a comment:
-
I don't think you can use jp Graph code like this inside a table or even inside a html file.
It must be a separate pure php file. Otherwise if server found any html code before your php code, it will start sending them to browser before processing your jp Graph code and so you will get an error like header already send.
To solve this, I think you can can create a separate jp Graph file with the code you have, run the code, save the...Leave a comment:
-
Since you are using a absolute div having top 1200px, it must appear. after font-back div. Changing it's position property will work I think.
Else you can specify the top of font-back div more than that of div to be overlapped.
Thanks...Leave a comment:
-
Hi,
You can take your regular expression as
[CODE=javascript]reg_exp = /^.+(\.(pdf))$/i[/CODE]
and match it with you file name.
Happy programming!
:)...Leave a comment:
-
Hi,
You are assigning a class to the cell, then just add
[CODE=css]
word-break:break-all;
[/CODE]
to your class declaration. I hope it will work.
Happy programming!
:)...Leave a comment:
-
Hi,
Just check this out.
http://www.evolt.org/php_login_scrip...ber_me_feature
Happy programming!
:)...Leave a comment:
-
HI
I have downloaded the tool. After installation when I clicked the migration tool option, it showed that the "make sure java runtime environment 5.0 update 8 is installed. And I am sure it is not installed. Also the NEXT button is desabled in the Migration tool kit Welcome page. Is it mandatory to install JRE 5.0.
Any other ides about data conversion.
Thanks!
:)...Leave a comment:
-
Database Conversion
HI
Everybody,
Any idea about DataFlex database conversion into MySql format. It's a PHP-MySql application and I need to extract some data from a DataFlex database application and insert it into MySql database. Is there any covertivity kit to convert DataFlex data files into MySql format. Anybody, any idea Please ...
Your suggestions are most welcome
:) Hv a Nice Day. -
Hi,
Do you want that the name and id of the select boxes should be a variable $countrycode and the value assigned to it should be fetched from table.
Thanks!
:)...Leave a comment:
-
Hi,
I have tried your code in firefox 2.0 but it's working fine.
I donot have IE7 but Idonot think that will create any problem.
By the way just check if you have embeded the javascript codes inside script tags properly and also called it properly.
Happy Programming!...Leave a comment:
-
Hi,
If your session has abandoned then your private data have already destroyed and going to the previous page will not set the destroyed session variables again. But if some secured data is being displayed then you can do one thing- You can redirect user to another page like; Home_page, etc. after session.abandon ed() is called.
Happy Programming!
:)...Leave a comment:
-
-
-
By removing the Html version, the mail function works well but,
you don't have to take out any one. You can declare two mail bodies like $text_body and $html_body and just pass two of them as parameters and make changes like this;
[CODE=php]
function send_mail($emai laddress, $fromaddress, $emailsubject, $text_body = "", $html_body ="")//Just To make them optional.
{
# Text Version
$text_msg...Leave a comment:
No activity results to display
Show More
Leave a comment: