39,402 Topics

Member Avatar for
Member Avatar for jatinder kumar

Can anyone help me to apply practical formtomail PHP script for website I have try 9-10 PHP scripts but I got no email in my inbox.

Member Avatar for diafol
0
92
Member Avatar for cliffcc

How to show the time and data in the user's timezone? I don't know it at all! Can anyone teach me? Thanks!

Member Avatar for digital-ether
0
181
Member Avatar for ray_broome

Hi, I have a situation where i am inserting to two tables from a web form but the first table needs to be inserted to so i can get the PK, then use the PK to insert into the second table. So what I would like to do is rollback …

Member Avatar for onlysumon
0
1K
Member Avatar for russellharrower

So I got most of the code working, but what I am trying to do, is say someone post the following This is a great youtube video [url]http://www.youtube.com/watch?v=pkrM7x0_fcI&feature=channel[/url] what do you think. I want it to turn the youtube link to [url]http://www.youtube.com/v/pkrM7x0_fcI[/url] but keep the text that they typed so …

Member Avatar for vinnyBenson
0
633
Member Avatar for raf.fredi

I'm posting my code for reading email It have problem with displaying images inside email as well as it can not display email properly other than English language Is there need of email parsing? I don't know how to go with email parsing [COLOR="Red"]config.php[/COLOR] [ICODE] <?php $ServerName = "{mail.host.com:995/pop3/ssl/novalidate-cert}INBOX"; $UserName …

0
74
Member Avatar for phouse512

Hello all, I'm working on a comment script to produce a string of XML to be used for one of my ajax applications. However, I cannot figure out how to produce the xml. Assume that the passing of the parent_id variable is working for now. Here's the code I'm using …

Member Avatar for hielo
0
96
Member Avatar for joomphp

hi! i have some html code like this [CODE] The Chihuahua Desert <a href="index.php">Dirt</a> Fest is <a href="/index.php">coming <a/>up, next February 17-19. <a href="http://google.com">Three</a>[/CODE] i want to replace /index.php with [url]http://google.com[/url] and index.php with [url]http://google.com/[/url] and idea how can i do this

Member Avatar for pritaeas
0
190
Member Avatar for Coderunner

Hello all, I have a php script but want to add some more features but I got stock. I hope somebody can help me cause I'm a beginner in php. The php script so far show all files in the root dir and subdirs in descending order of last modified …

Member Avatar for Coderunner
0
611
Member Avatar for ahsan1

I am getting states from database on change of countries but not cities. Here is the code: <?php include("include/connection.php"); ?> <html> <head><title>Contact Page</title> <script type="text/javascript"> function AjaxFunction(cat_id) { var httpxml; try { // Firefox, Opera 8.0+, Safari httpxml=new XMLHttpRequest(); } catch (e) { // Internet Explorer try { httpxml=new ActiveXObject("Msxml2.XMLHTTP"); …

Member Avatar for chrishea
0
98
Member Avatar for chaitran

hi friend,i need to write php script for automatic email remainder..............any one can help me.

Member Avatar for makman99
0
62
Member Avatar for kokfui

hi all, i actually asking is it possible to make a php code keep running or auto refresh? my case is i having a countdown code, which will countdown to a specific time let call it End_date, i want to write a code which will check if(current_date=End_date) {remove a page}; …

Member Avatar for diafol
0
62
Member Avatar for kokfui

CODE 1 <?php ini_set('date.timezone', 'Asia/Kuala_Lumpur'); $today = Date('y.m.d H:i:s'); // current time echo $today; ?> CODE 2 <?php ini_set('date.timezone', 'Asia/Kuala_Lumpur'); $today = Date('y.m.d H:i:s'); // current time $query= "UPDATE items SET post_date = '{$today}' WHERE item_name='$item_name'"; mysql_query($query); ?> hi all, as you all can see, i have two similar code …

Member Avatar for diafol
0
133
Member Avatar for abhi10kumar

[CODE] $lines = file('http://www.adexmart.com/product.php?id_product=276&utm_source=shopmania&utm_medium=cpc&utm_campaign=direct_link'); // Loop through our array, show HTML source as HTML source; and line numbers too. foreach ($lines as $line_num => $line) { if(htmlspecialchars($line)=="</div> "); echo htmlspecialchars($line)."<br>"; } ?> [/CODE] I am printing lines (all html code) successfully, but I dont able to check a condition for …

Member Avatar for vibhaJ
0
119
Member Avatar for prakashghai

Hi Everyone I have a webform, from which i want records should be submitted into two tables under same database name. My code is [CODE]<?php $con = mysql_connect("localhost","************","***********"); if (!$con) { die('Could not connect: ' . mysql_error()); } $db=mysql_select_db("qserves1_uksurvey", $con); $sql="INSERT INTO forms (date, Receivingsky, Title, Firstname, Lastname, House, Street, …

Member Avatar for vibhaJ
0
118
Member Avatar for dornaled

hi any body tell me where use in PHP this function $_GET on websitedesign and why I use this. tell me ? thanks and advanced.

Member Avatar for diafol
0
108
Member Avatar for samrodrick

A cookie is a flat file that stores tiny bits of information. It is stored on the client’s machine and is passed to the client when they visit your site. Each cookie can store anything from usernames to number of visits to a site. This tutorial will teach you how …

Member Avatar for diafol
-1
217
Member Avatar for dalip_007

Hey guys I have an encrypted ip address in php like $visitor_ip = ip2long($_SERVER['REMOTE_ADDR']); $visitor_ip looks like this 1860881473 can i decrypt this number to get a proper ip like "42.108.196.150""? if there is a way todo so? Thanks again

Member Avatar for dalip_007
0
74
Member Avatar for 54uydf

OK, I need help!!!!!!! I've tried every advice I could find on google, nothing works for me!!!!! my DB has data in hebrew I can't figure out how to set the collation and everything else right so that my site would show the data in hebrew when I echo it …

Member Avatar for 54uydf
0
175
Member Avatar for Awah Mohamed

hey people . i am trying to set a cookie but when ever i try to set it, it says : [CODE]Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\signup\conf.co.signup.php on line 13[/CODE] please help me with this. this is my code: [CODE] <?php error_reporting(-1); if(isset($_COOKIE['logedin'])) …

Member Avatar for Awah Mohamed
0
244
Member Avatar for jacob21

Hi, I am uploading a file & sending uploaded file to mail id. its working fine.I want to add validation in it. when there is no uploading of file.it shows error i.e mail sending failed due to unattached document. My code is [CODE]<?php if(isset($_POST['Submit'])) { $file = $_FILES['uploadedfile']['name']; $target_path="upload/"; $target_path …

0
53
Member Avatar for s7mo

I am 4 months new to PHP! So please be gentle with me. : ) I have an input form that contains check-boxes(it works and posts array to database correctly!) I have an update form that contains the same check-boxes (it updates and posts array to database correctly BUT IT …

Member Avatar for vibhaJ
0
1K
Member Avatar for dschuett

I have a php script that pulls several rows of invoices from a database and displays them on the screen in table format. I have created an onclick per row within the while loop in order call another php script that runs a query to pull all the attachments for …

Member Avatar for Akash Saikia
0
1K
Member Avatar for alexia_net

Hi. I am using this command [CODE] include ($_SERVER['DOCUMENT_ROOT']."<path>"); [/CODE] to import a *.php file into another *.php file. However, i have noticed that in some cases it works, in some cases it does not. In another file I am using the same syntax to import a file which, is …

Member Avatar for tomato.pgn
0
840
Member Avatar for ckdoublenecks

Could someone help me with this code? I need to compare the date completed(datecomp) to the date paid(datepaid) to establish the number of days difference(dayslate). Thanks in advance! [CODE]<?php $stat = mysql_connect("localhost","root",""); $stat = mysql_select_db("oodb"); $query = "SELECT name FROM oocust Where ordernum='$ordernum'"; $stat = @mysql_fetch_assoc(mysql_query($query)); echo $stat["name"]; $result= mysql_query("select …

Member Avatar for reygcalantaol
0
176
Member Avatar for 08dce335

how to apply multiple facility to one id.How i maintain this in database like insert,update...........

Member Avatar for R0bb0b
-1
72
Member Avatar for mbarandao

Hello: I'm having difficulty getting variables that are passed to another page in a url after migrating from an apache on window server to a apache on unix server. Here is the url: [code] <meta http-equiv="refresh" content="3;url=/i-cmsys/editableinvoice/index.php?edit_mileage=<?php echo $_POST['edit_currentmileage']; ?>&edit_servicearea=<?php echo $edit_servicearea_str; ?>&inputbox=<?php echo $_POST['inputbox']; ?>&edit_clientID=<?php echo $_POST['edit_clientID']; ?>&edit_firstname=<?php echo …

Member Avatar for mbarandao
0
287
Member Avatar for ahsan1

$pti="C:\Documents and Settings\Administrator\My Documents\My Pictures"; $ptt=$_SERVER['DOCUMENT_ROOT']."/greenmusic/thumbnails/thumbs"; $tw=100; $replacethumb=str_replace(" ","_",createThumbs($pti,$ptt,$tw)); Can any one help me. I'll be thankful to you.

Member Avatar for jkon
0
51
Member Avatar for xxreenaxx1

I want to put this in a table so I can repeat this twice in two cell. [CODE] $intNumber = 1; $sql=correctanswer($_SESSION['username1'], $_SESSION['smodule']); echo "<strong>the ones are ticked is right answer </strong></td><br />\n"; while($info = mysql_fetch_array( $sql)) { echo " <strong>$intNumber, {$info['Que_Question']} </strong><br />\n"; for($i = 1; $i <= 4; …

Member Avatar for jkon
0
65
Member Avatar for duliduli556

Is it possible to have true global variables in PHP? The tests I have done so far seem to suggest that you can have a global variable that is global only to the php file that declares it and not to your whole website. Once you go to another php …

Member Avatar for jkon
0
301
Member Avatar for baseballfury

Hi Guys, Not sure if this is a php or sql problem but i keep getting the following error when trying to update a row using php and 'UPDATE': ERROR:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right …

Member Avatar for baseballfury
0
144
Member Avatar for juanitobunito

i created a database (Questionnaires) i also create two tables (Questions and Answers) i successfully display the questions randomly but my problem is i cannot connect the answers according to its primary ID here is my code [CODE]mysql_select_db("questionaires", $con); $result = mysql_query("Select * from Answers where AnswerID = {$row['QuestionID']} order …

Member Avatar for diafol
-1
86
Member Avatar for i love my vans

Hey Everyone! ( <-- First Post, Wow) Well i want use a URL variable like this... [PHP]www.site.co.uk/index.php?page="about"[/PHP] With me so far? Ok. Now when the user enters the index.php page, i want specific content loaded into a preset table, in the case above it would be the about page, but …

Member Avatar for rekhasuresh
0
762
Member Avatar for duliduli556

String concatenation is the string manipulation method when you join 2 or more strings together. In PHP it is a quite easy task. You can use the concatenation operator which is the ‘.’ (dot). You can join 2 or more strings into one as follows: $str1 = ‘This’; $str2 = …

Member Avatar for R0bb0b
-2
151
Member Avatar for dalip_007

hey guys I have a string containing email addresses like "ceo@facekut.com" <ceo@facekut.com>,"Rahul Mahajan" <creative.rahul007@gmail.com>......... Now is there a way in php to remove all the things between quotes "..." and make this look like below? <ceo@facekut.com>,<creative.rahul007@gmail.com>......... or [email]ceo@facekut.com[/email] ,creative.rahul007@gmail.com......... I would be very thankful if anyone has answer. Thanks

Member Avatar for dalip_007
0
167
Member Avatar for youvi

please clear the syntax error... [CODE] $locker_query ="update tbl_locker set locker_title='".$locker_title."',headline_text='".$locker_headline."',introductory_text='".$locker_intro_text."',popup_delay='". $locker_delay ."',repopup_frequency='".$locker_frequency."',forced_completion='".$locker_force_offer."',email_id='".$locker_email."',created_date=now(),guid='" . md5(time()). "' where locker_id='".20."'"; [/CODE] Thanks

Member Avatar for diafol
0
86
Member Avatar for duliduli556

Hi All, How do you use div class' in php such that you can attach html generated by php into that div class. Example <html> <head> </head> <body> <div class="border"> </div> <?php echo "This needs to go into the class border" ?> </body> </html>

Member Avatar for diafol
0
114
Member Avatar for thijscream

[B]SOLVED ALREADY!!![/B] i'm getting the following error: UPDATE orders SET naamwijn = Josep Masasch Blanc de Blancs Brut Cava WHERE ordernr = 22 AND productnr = 16 LIMIT 1You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax …

Member Avatar for thijscream
0
83
Member Avatar for samsons17

Hi all. I got some problem here. I made a website using codeigniter framework. And on my website there is the list of events that are happening at my university.. Whenever a person click on the events title bar, a slide panel like Twitter will shows up next to that …

0
63
Member Avatar for ediddy02

I Downloaded Wamp server 2.0 for my php and mysql installation. When i click on the wamp server through start/programs/wampserver/startwampserver2.0 it just has an icon 'start wamp server 2.0',is it the right file i downloaded?isnt it supposed to contain other clickable icons like phpmyadmin,mysql,apache ?? Secondly,do i need to download …

Member Avatar for chrishea
0
638
Member Avatar for enzogoy

Hi all I'm a newie to PHP. I have a html form which will passed 6 value to a php file and from a php file, I would like to write these value on to 2 rows in the excel. Therefore each person submit the form, it will write 6 …

Member Avatar for mafhh14
0
5K
Member Avatar for LloydFarrell

Hi all - How can i echo back the value of of the following - If the form has other errors - ie. if a user has missed filling in a field - I can echo other fields if there are errors Im just having some difficulties in echo-ing out …

Member Avatar for vibhaJ
0
201
Member Avatar for Tempest will

below is my code to use chekc boxes to update my status field to either a 1 or 2, but altohught it doesnt show any errors, it wont update HELP PLZ </style> </head> <body> <table width="744" height="536" border="1"> <tr> <td height="63" colspan="4" bgcolor="#8BCB6A"><p><img src="CO-OP title.gif" width="407" height="64" /> <?php $connection=mysql_connect('localhost','but09081489',''); …

Member Avatar for Tempest will
0
115
Member Avatar for disposable_zero

I'm relatively new to all this so go slow. But what I'm trying to do is have a button where the user can click it and download a file from my site to their computer. I don't know if you need a script to do this or if their is …

Member Avatar for diafol
0
61
Member Avatar for vilasdhobale

Hello all, I am working on penny auction site,so i need count down timer script for getting current update such as remaining time current bidder, and current price of auction, I have already implement javascript and its calling php script for getting latest update. Also it is working but count …

Member Avatar for diafol
0
80
Member Avatar for zeusthegreat

[CODE]<?PHP // Original PHP code by Chirp Internet: [url]www.chirp.com.au[/url] // Please acknowledge use of this code by including this header. function getImages($dir) { global $imagetypes; // array to hold return value What does retval mean? $retval = array(); // add trailing slash if missing if(substr($dir, -1) != "/") $dir .= …

Member Avatar for diafol
0
143
Member Avatar for ditty

Hi I am using the following code to convert html to pdf. But the resulting pdf page shows blank. Please help me...its very urgent.. [CODE]require('pdf/html2fpdf.php'); $str =stripslashes('<div style="width:580px;" align="left">'.$pdfmessage."</div>"); $html=str_replace("&nbsp;","",$str); $pdf=new HTML2FPDF(); $pdf->AddPage(); $pdf->SetLeftMargin(25); $pdf->SetFontSize(12); $pdf->WriteHTML($html); $pdf->Output($invno.'.pdf','F');[/CODE]

Member Avatar for holy-food
0
162
Member Avatar for xxreenaxx1

I am doing an equation and the outcome is 45.454545454545454545. I would like to get rid of the 45454545 after the decimal point. and have 45% [CODE] $final=5/11*100; [/CODE]

Member Avatar for BrianDickson
0
106
Member Avatar for thijscream

hey ppl, you helped me out allot of times, so i come back to you once again, i just transfered my website from a local pc(for testing) to a webserver @ my hosting. now some parts arent working correctly. [B]some extra info about the page:[/B] What kind of web page …

Member Avatar for thijscream
0
185
Member Avatar for xxreenaxx1

I am able to upload a file and echo these. But now I would like to upload these to my database. How would I go onto doing this. I found something like this for C++. but not sure how to convert this to PHP. this is what I found [CODE] …

Member Avatar for xxreenaxx1
0
185
Member Avatar for mbarandao

Good day: Need some assistance with an idea which seem to be complicated as I think of it and can't seem to figure out an appropriate implementation. I'm working on a hosted service app which requires a php logging system to identify the user and their respective account. On this …

Member Avatar for mbarandao
0
110

The End.