No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
22 Posted Topics
Re: Pooja, This is a simple login script you are asking for. Why don't you try few lines of code and post your errors here? | |
Re: How about posting the form values to [COLOR="Red"]mask1.php[/COLOR] page and including a redirect header with required values to your [COLOR="red"]secret.php[/COLOR] page and again redirecting it to [COLOR="red"]final.php[/COLOR] page with the computed values. This is a quick thought from my side, let me know if it works. I m sure there … ![]() | |
Re: Try this.. [code=php] function formatDate($val) { list($date, $time) = explode(" ", $val); list($year, $month, $day) = explode("-", $date); list($hour, $minute, $second) = explode (":", $time); return date("j-M-y h:ia", mktime(($hour)+("2"), $minute, $second, $month, $day, $year)); } $displayDate = formatDate($row['dateinmysql']); echo $displayDate; [/code] You can play around in line 7 with the … | |
Re: [QUOTE=cguan_77;758536]Hi guys, i have my own domain. then after creating my own website how to upload or publish my website? Thanks. anyhelp is greatly appreciated.[/QUOTE] Depends on the web host you are hosting. Where are you hosting your website? by the way, try filezilla.com, it might help you to upload. | |
Re: Hi, Try this [code=php] <?php echo "Its 20"; ?> ° <?php echo "F outside"; ?>[/code] | |
Hi All, I am trying to set background image. I retreived it from the database into $xyzimage variable and then trying it to display in the <body > tag. When i am trying to display it a tabel cell like <td> it works, but not in <body> tag. Is there … | |
Re: Hi try this, [code=php] <?php include("connect.php"); $id = $_GET['id']; $qProfile = "SELECT * FROM signers WHERE recordNum='$id' "; $rsProfile = mysql_query($qProfile); $row = mysql_fetch_array($rsProfile); $recordnum = stripslashes($row['recordnum']); $firstmiddlename = stripslashes($row['firstmiddlename']); $lastname = stripslashes($row['lastname']); … … mysql_close();?> [/code] | |
Hello all, For creating dynamic title tags, I tried using [code=php] <title>welcome<?php echo '$pagetitle';?></title> </head> <body> : : <?php : $pagetitle = '$row[2]'; ?> //closing rest of the tags. [/code] I get nothing displayed on title ! So i changed the code to, [code=php] <html> <head> </head> <body> : : … | |
Hello all, I have this strange problem. During registration if user chooses to have '.' in his username, eg: sam.leo then i am getting this wierd problem . -respective tables with the given username are not getting created in the Database. Everything is working fine if usernames are having no … | |
Re: As told by others, Use Session variables at the begining of each page to allow access . If logout is needed, Destroy sessions and redirect to the login page. Hope this solves the problem. | |
Hello all, I am all set to launch a website on which i have been working from months but now am afraid how safe it might be once it gets attention of hackers . As most of the code in website is in PHP,html,mysql i am posting this in this … | |
Re: [code=javascript] if ( document.Form2.elements.contype.checked == false ) { alert ( "Please Select type of your contract." ); valid = false; } [/code] | |
Hi all, Instead of passing the variables to the other page and coding mysql queries there.. Is it possible that we can use the mysql(DELETE...) query within the anchor tags in the same page? <a href >... to delete a particular row in mysql table? Like having a link called … | |
Re: If you do not want the duplication then , first check in the table if that name already exists if petname already exists then tell user to choose someother name else insert into database. it would be great if you can post the relevant code. | |
Re: [QUOTE=Rockout101;641829]I have started a new website and I know basic HTML but I am clueless with PHP. I need to set up a login system where members can save their info on the site. I need to learn PHP, cookies, and a login system. Thanks.[/QUOTE] Hi hope this helps :) … | |
Hello All, I have this strange problem .. I am using require function twice in a single program to call two different programs.Each one of them has their own database connections. The page doesnot execute completely untill I hit refresh.:-/ It works as if those functions are executing one-after-the-other while … | |
Hi all, Can someone tell me, How to wrap text around an image when the image source is in a php variable?Here is my code. [code=php] <html> <head> <style type="text/css"> #divider { background-color: #ccffff; border: 1px solid #ccc; padding: 0px; margin: 1px 0px 0px 0px; } .fndslist{ position: absolute; border: … | |
Hello all, I am trying to code for user's profile pic uploading and resizing the image. I am using the following code and I dont know where I am going wrong! [code=php] <?php //This is the directory where images will be saved $target1 = "images/"; $target = $target1 . basename( … | |
Re: Hi Chitra, This code should work fine. Try this. Change your [code]$sent = mail($to, $subject, $message, $headers) ;[/code] to [code] $sent = mail("$to", "$subject", "$message", "$headers") ; [/code] Let me know if this worked or not! -Kavitha Butchi | |
Hello All, Is there a way how we can pass a PHP variable whose value has been retrieved from MySQL database to the next page? Initially I tried this which didnt help me anyway. [code=PHP] // if user login information is CORRECT then redirecting them to the user home page … |
The End.