39,326 Topics
| |
I want this two echo's to stay in one line. One in center and another right like I did but not in new line echo "<a href=\"http://zafakultet.herobo.com\logout.php\"><font size=+1</font>Click here to logout!</a>"; echo "<p align=right>Username: " . $_SESSION["valid_user"]; I tried with <? ?> and it wont work. Thanks for help. | |
Please help me check my code especially change_form.php here's my code update_form.php [CODE] <?php $con = mysql_connect("localhost","root",""); mysql_select_db("exercise",$con); $query = mysql_query("select * from test_mysql",$con); $num = mysql_num_rows($query); echo "<center>Show database data</center>"; echo "<br>"; echo "Database data : $num"; while($num =mysql_fetch_array($query)) { echo "<br>"; echo $num[0]; echo "<br>"; echo "Name : … | |
Hi I have made a code in php, 1) Now the action is on the click of submit button, can i submit it using the keyboard input enter. <td><input type="submit" value="LOAD NEXT AND SAVE" name="loadnextsave"/></td> 2) To open a new page can i use the keyboard shortcut key instead of … | |
[CODE] <?php require('class.phpmailer.php'); $mail=new PHPMailer(); $mail->isSMTP(); $mail->SMTPDebug=1; $mail->SMTPAuth=true; $mail->Port=465; $mail->Host="ssl//smtp.gmail.com"; $mail->Host = "ssl://smtp.gmail.com"; if(isset($_GET['submit'])) { $mail->Username=check($_GET['UserName'],"user id required"); if(filter_var($_GET['UserName'],FILTER_VALIDATE_EMAIL)==false) { show_error("Invalid email address"); } $mail->Username=$_GET['UserName']; $mail->Password=check($_GET['pass'],"password required"); $con=check($_GET['conpass'],"confirm password required"); if($con!=$mail->Password) show_error("Passwords do not match"); $mail->FromName=check($_GET['name']); $_GET['rec']=check($_GET['rec'],"recipient required"); if(filter_var($_GET['rec'],FILTER_VALIDATE_EMAIL)==false) { show_error("Invalid email address"); } $_GET['recn']=check($_GET['recn']); $mail->AddAddress($_GET['rec'],$_GET['recn']); $mail->Subject=$_GET['sub']; $mail->Body =$_GET['body']; if … | |
I've been trying for hours to retrieve an ID from a previous insert statement to include in the next insert statement. I am not sure what I am doing on but a new fresh set of eyes can see the issue better than I can at the moment. Any help … | |
im having problem with my this, what i want to happen is when i submit, i want to save those records from 2 diffrent table's from my db, but it wont save? have you seen any problem with my code? thanks! [CODE] <?php include("connect.php"); if(isset($_POST['submit'])) { mysql_query("insert into tblgrading set … | |
I would like to check if a user is logged on domain1.com and return a message on domain2. There is a lot more to the code, I only added a basic sample. index.php on [url]http://domain2.com[/url] [CODE]<script type="text/javascript" src="http://domain1.com/test.php?js"></script>[/CODE] test.php is on [url]http://domain1.com[/url]. [CODE] <?php if (isset($_GET['js'])){ header("Content-type:text/javascript"); ?> function doAjax(){ … | |
I am beginner and this is my [B]first project[/B] (happy face). I am trying to make log in systen to learn php and mySQL. At first everything was working so and then i decided to rewrite everything in [B]Object oriented[/B] code and then it is not working. Since it is … | |
Hi all, Please help me how to add CC and BCC in this code section of form to mail using PHP [CODE] <?php //send email $from = 'enquiry@techxis.com'; $name = $_REQUEST['txtName']; $company = $_REQUEST['txtCompanyName']; $jobTitle = $_REQUEST['txtJobTitle']; $email = $_REQUEST['txtEmail'] ; $contactNo = $_REQUEST['txtContactNo'] ; $email = $_REQUEST['txtEmail'] ; $subject … | |
Hello Guyz, I wish that the Title of the thread explains itself a lot. I would like to Save an image from an HTTP URL which actually redirects to another URL. Actually, I am trying to Save the Profile picture of Facebook. [B]Example : [/B][URL="https://graph.facebook.com/thakurbhai/picture"]https://graph.facebook.com/thakurbhai/picture[/URL] Now when you will open … | |
I just thought I would re-iterate something that I have mentioned a few times in my replies to threads on here in that if your code isn't working, one of the first things to do is actually test your query in the database (i.e. through phpMyAdmin). The reason I am … | |
I am completely new to PHP. I would like to know which are the good online resources where I can learn PHP. What are the basic things in PHP one needs to know? | |
How 1000 10,000 1,00,000 number converting in php? i mean splitting numbers like 100 1000 10000 100000 [B]to [/B] 100 1,000 10,000 1,00,000 with ' , ' thousand, lack, crores... | |
[CODE] <?php //email(to,subject,message,headers,parameters) $to="swissknife@gmail.com>"; $subject="Hi"; $message="Hello my friend"; $from="swissknife007@gmail.com"; $headers="from:".$from; mail($to,$subject,$message,$headers); echo" mail sent"; ?>[/CODE] This is a very simple php script to send an email. However ,it is not working for me and I am getting the error. [CODE] Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" … | |
anybody can solve my problem?????Access denied for user 'ODBC'@'localhost' (using password: NO)[ICODE]Access denied for user 'ODBC'@'localhost' (using password: NO)[/ICODE] | |
I am having some difficulty finding good, current information about how to correctly install FFMPEG-PHP in XAMPP on a Windows 7 machine. If anybody knows where to find such information, please post the URL here and I would be very grateful. Thank you very much. Happy Holidays! | |
Hello, Anyone know how to get a session var. from a while loop. Here is some code: [CODE]<form id="form1" name="form1" method="post" action=""> <p>Age: <select name="age" id="age"> <option value="0">Select Age</option> <?php $i=1; while($i<=100) { echo '<option value="1">'.$i.'</option>'; $i++; } ?>[/CODE] It's from a drop down menu. Here is the code for … | |
i m making a blog using my own code .. i m not using wordpress or any sort of thing .. i m doing it manually. i want to show related posts section which would contain at least 4 links of another posts which are related to that particular post. … | |
Well, i am making a blog in which i have to show images and links in my every post.So i have to use <a> & <img> tags in my post. but I m also using htmlentities function for "post" string variable ( like this -- <?php echo htmlentities($post); ?> ) … | |
I have several strings that I want to split using different delimiters such as ",{}() [CODE]$ppl[0] = "Balko, Vlado \"Panelбk\" (2008) {Byt na tretom (#1.55)}"; $ppl[1] = "'Abd Al-Hamid, Ja'far A Two Hour Delay (2001)"; $ppl[2] = "'t Hoen, Frans De reÑŒnie (1963) (TV)"; $ppl[3] = "1, Todd \"5 Deadly … | |
| Im doing a Contact form for a client and my php is limited. I need to make everything in this required. Here is the code: [CODE] <?php ob_start(); if(empty($_POST)) { $status = ''; $display_form = true; } else { $fname = $_POST['fname']; $lname = $_POST['lname']; $pname = $_POST['pname']; $email = … |
[CODE]<?php $current_date = strtotime('now'); $due_end_date = 60*60*24*7; // Number of seconds for 7 days $sql = "SELECT * FROM sre_log WHERE current_date >== '$due_end_date-$current_date' ORDER by vtype"; $due_end_date = mysql_query($sql); //echo "$current_date"; while($a < $sre_log_num) { $id = mysql_result($sre_log_result,$a,"id"); $vtype = mysql_result($sre_log_result,$a,"vtype"); $due_end_date = mysql_result($sre_log_result,$a,"due_end_date"); $current_date = mysql_result($sre_log_result,$a,"current_date"); } echo … | |
This is CURL Ready function , to use it just call do post if the page you are calling has post variables , or get if it has get variables :) | |
Hi All, I am very new to PHP and still learning lots... :) I am using the below code to populate a drop down list from my database. But I am not sure how to display/send the results back to the same page. The fields in my Database are: Base, … | |
I have been trying to send email for 2 days. using php I have tried different methods but to no avail . I am sure I am making some small mistake. Please can someone give step by step procedure of sending mail using Xampp? | |
[CODE] <html> <head> <title>search</title> </head> <body> <form name="frmSearch" method="get" action="<?=$_SERVER['SCRIPT_NAME'];?>"> <table width="599" border="1"> <tr> <th>Keyword <input name="txtKeyword" type="text" id="txtKeyword" value="<?=$_GET["txtKeyword"];?>"> <input type="submit" value="Search"></th> </tr> </table> </form> <? if($_GET["txtKeyword"] != "") { $objConnect = mysql_connect("localhost","lafamosa_kermis","lafamosa1980") or die(mysql_error()); $objDB = mysql_select_db("lafamosa_mystore"); // Search By Name or Email $strSQL = "SELECT * FROM … | |
Hi everyone I am using IMAP to retrive msg from the mail.I need to know about how can we split up the readed and unreaded mail regardingly.For example we need to fetch only the unread mails how can we do this... Thanks | |
Hi all. It's been a while since I last worked with PHP. Hope someone can help me with this, because a few things aren't working :( First thing first. I'm doing an expense tracking system. User will be able to track their spendings according to month and year. Since it's … | |
Hi, Don't know if this is the right part of the forum. (please move if incorrect) My Question is about E-Commerce, I am experienced in web development but have been recently asked to make a client a E-Commerce website where they could sell their goods. They are wanting something customisable … | |
Hello Everyone, This is my first post and im sure this community can help. [B]Issue:[/B]I'm trying to create an authentication script for the first time, I am inserting Data into a table and trying to retrieve it again on the same page but instead of retrieving the latest id it … |
The End.