Search found 16 matches
- Wed Apr 27, 2011 1:55 am
- Forum: PHP - Theory and Design
- Topic: Best way to create a multilevel menu
- Replies: 7
- Views: 5298
Re: Best way to create a multilevel menu
In our view css based menu will be good. If we are going to user jquery or js scripts it will create problem in loading and other problems. Css menu work in all the browser successfully.
- Fri Apr 15, 2011 1:17 am
- Forum: Code Snippets
- Topic: Calculate age based on date of birth
- Replies: 43
- Views: 149756
Re: Calculate age based on date of birth
Here is also one method that may help you out.
please apply and check :
(round((DATEDIFF(NOW(), 1980-03-13)/365))
please apply and check :
(round((DATEDIFF(NOW(), 1980-03-13)/365))
- Fri Apr 15, 2011 1:08 am
- Forum: PHP - Security
- Topic: Php Sesssion
- Replies: 13
- Views: 7192
Re: Php Sesssion
We have answered regarding the session_destroy() issue not about the sql injection.
For making the code more secure we have to include sql injection restriction via .htaccess file and there other more other method to do it.
Security of web application is very broad area.
For making the code more secure we have to include sql injection restriction via .htaccess file and there other more other method to do it.
Security of web application is very broad area.
- Fri Apr 15, 2011 12:59 am
- Forum: Javascript
- Topic: Onload Event Problem
- Replies: 2
- Views: 849
Re: Onload Event Problem
There are following cases that may cause this kind of problem :-
1. Try checking the inverted commas
2. Also check the url if it included with http
for more sure answer form me please paste you code here I will help you out...
1. Try checking the inverted commas
2. Also check the url if it included with http
for more sure answer form me please paste you code here I will help you out...
- Fri Apr 15, 2011 12:52 am
- Forum: PHP - Frameworks
- Topic: How to separate content from design with smarty?
- Replies: 5
- Views: 5083
Re: How to separate content from design with smarty?
yes it's a sample if you give me access then i can be able to solve your problem ....thanks!
- Thu Apr 14, 2011 12:20 am
- Forum: PHP - Frameworks
- Topic: When to put {nocache} {literal}?
- Replies: 1
- Views: 2885
Re: When to put {nocache} {literal}?
Use of LITERAL : When ever you are using js in the middle or in the smarty doc you have to use {literal} tags Example : {literal} <script> function example(a,b) { number += a; alert('You have chosen: ' + b); } </script> {/literal} when you want to disable cashing of template section then at that tim...
- Thu Apr 14, 2011 12:08 am
- Forum: PHP - Security
- Topic: Php Sesssion
- Replies: 13
- Views: 7192
Re: Php Sesssion
given below code is fully secure and once the session get destroyed it will never starts. Please read each line care fully. $result = $login_data->logi($_REQUEST['user_name'],$_REQUEST['password']); $secret = SECRET_KEY.date('d'); $pfid = $result[0]; $hash = sha1($secret . $id); if($result[1] == 1) ...
- Wed Apr 13, 2011 10:54 am
- Forum: PHP - Frameworks
- Topic: How to separate content from design with smarty?
- Replies: 5
- Views: 5083
Re: How to separate content from design with smarty?
if you want to edit content in smarty you can use {* comment *}.
also please clear out your problem .... so, that i can explain it to you in details.
also please clear out your problem .... so, that i can explain it to you in details.
- Wed Apr 13, 2011 10:50 am
- Forum: PHP - Theory and Design
- Topic: MySQL vs data files
- Replies: 2
- Views: 2375
Re: MySQL vs data files
see if you will use first one it will be better since Mysql is fast and response very quickly then any other process. If you store data in files may in future it will create problem in opening the file.
As the experience on both the things I will recommend you to go for the first one.
As the experience on both the things I will recommend you to go for the first one.
- Wed Apr 13, 2011 10:46 am
- Forum: Javascript
- Topic: how to pass data from javascript to php
- Replies: 1
- Views: 1070
Re: how to pass data from javascript to php
you can user ajax to send you php data to server. Please look at the given example : <script language="javascript" type="text/javascript"> <!-- //Browser Support Code function ajaxFunction(s){ var ajaxRequest; // The variable that makes Ajax possible! try{ // Opera 8.0+, Firefox,...
- Wed Apr 13, 2011 10:39 am
- Forum: PHP - Code
- Topic: mysql_fetch_array() expects parameter 1 to be resource
- Replies: 2
- Views: 238
Re: mysql_fetch_array() expects parameter 1 to be resource
hi, You are doing wrong if it asking about category you are assigning full string how it will compare. Wrong Method : if (isset($_GET['cat'])) { $cat = $_GET['cat']; } else { $cat = "<a href='walkth.php?refid=walk'>Click here to go to the walkthrough"; } $query = mysql_query("SELECT *...
- Wed Apr 13, 2011 1:10 am
- Forum: Javascript
- Topic: password checker
- Replies: 4
- Views: 1178
Re: password checker
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <t...
- Wed Apr 13, 2011 12:45 am
- Forum: Databases
- Topic: mysql not running on localhost
- Replies: 7
- Views: 2688
Re: mysql not running on localhost
if every thing is running then i am sure your port has been allotted to other software installed in your system. In this condition you have to edit this file. Please look below : - Just go to X:\wamp\bin\apache\apache2.2.8\conf\httpd.conf and search for "Listen 80" change 80 to whatever yo...
- Wed Apr 13, 2011 12:35 am
- Forum: PHP - Frameworks
- Topic: How to separate content from design with smarty?
- Replies: 5
- Views: 5083
Re: How to separate content from design with smarty?
to include php in smarty you have to use {php} include('text.php'); {/php}
thanks!
waytoecommerce.com
thanks!
waytoecommerce.com
- Wed Apr 13, 2011 12:29 am
- Forum: PHP - Code
- Topic: PHP Form Problem
- Replies: 2
- Views: 238
Re: PHP Form Problem
mail("mailto:formare@creativ.org.ro","Formular website",$mesaj); have a look at this line mailto:emailaddress is used is javascript the php function to send mail is : Syntax : bool mail ( string $to , string $subject , string $message [, string $additional_headers [, string $addi...