you can use SMTP like PHPMailer to send mail from local or
follow this url:
http://stackoverflow.com/questions/1...il-mail-server...
User Profile
Collapse
-
You can check with session. if the require session is not set on the profile page directly redirect him to login page otherwise if you want to keep him on the profile page, then you can display message there.
Code:<?php if(!isset($_SESSION['user_id'])) { echo "You must have to login first.<a href='login.php'>click here to login</a>"; } else { // code your profile page.
Leave a comment:
-
you can add new fields in your table in which you can save the value by user who is adding that.
after that when you are going to display that posts or comments, you can check that value weather it should display or not.Leave a comment:
-
you can use the jquery trigger for the same.
when the page reload with the error, you can check run that code as below :
Code:<?php if(isset($_SESSION['error']) { ?><script type="text/javascript">$( "#button_to_show_popup" ).trigger( "click" );</script><?php } ?>
Leave a comment:
-
Bharat383 replied to PhpMyAdmin How to add the same variable into multiple rows without getting error?in PHPprovide the error which you are getting. currently images are not displaying here.Leave a comment:
-
would you please provide if any error is displaying there.
After checking the code, there is not any validation for the particular file type which prevents to upload pdf file.
if there is not any error displaying, then please upload your code here so i can check and help you.Leave a comment:
-
Bharat383 replied to Notice: Undefined offset: 2 in /public/sites/www.mooi-by-rick.nl/afscheid.php on linein PHPYou can change with this :
@list($main, $sub, $include) = explode("/", $_SERVER['PHP_SELF']);
with the "@" sign, the error will be disappear.Leave a comment:
-
PHP Session issue with different directory
PHP Session issue with different directory
Application structure :
root_directory :
- login.php
- register.php
root/member
- memberprofile.p hp
- test2.php
root/manager
- managerprofile. php
- test3.php
- test4.php
When any member/manager will login from root/login.php (the session created) and redirect to particular directory.... -
You need to create one table which contains all the required fields as per the user defined page requirements. You can use that values for the layout (css) and images as the user added there.Leave a comment:
-
You can change your code like as below :
Code:if(isset($_POST['search'])) { $searchq = $_POST['search']; $searchq = preg_replace("#[^0-9a-z]#i","",$searchq); $query = mysql_query("SELECT * FROM tbl_ficheiros WHERE id_ficheiro LIKE '%$searchq%' OR ficheiro LIKE '%$searchq%'") or die("Erro na procura..."); }else{ $query = mysql_query("SELECT
Leave a comment:
-
To find job in US or UK
Hello Everyone,
I am from india, working as PHP Developer as well as i have knowledge of android development.
I have indian passport and now i want job in US or UK country.
I have no more ideas for legal procedures. Besides this, if there is any trustworthy job portal to find job in other countries.
Thanks ! -
-
you can use hidden input fields to store first page value in second page, but you must have to check it for security.Leave a comment:
-
-
-
Please check your table's learner_id collumn is set as unique or primary key then you have to set as not null.Leave a comment:
-
(1) Check Your Database Connectivity
(2) Check Submiting Value
(3) Check Your Insert Query with mysql_query($in ser_qry) or die(mysql_error II());Leave a comment:
-
-
Bharat383 replied to How to code html page to calculate: (text input #) X (text input2 #) X ( #)= totalin HTML CSSyou can use javascript to calculate this.
like this
Code:var ans = parseInt(document.getElementById("txt1").value)*parseInt(document.getElementById("txt1").value)* 5; alert(ans);
Leave a comment:
-
php is best for web developing as you can find many source code online free as well as cms or template generator so you can develop website very fast and easily...Leave a comment:
No activity results to display
Show More
Leave a comment: