1,257 Posted Topics

Member Avatar for romiaujla

this code list cateries, with link when user clicks that link, then new page will open shwoing the prodcuts of the clicked categories

Member Avatar for urtrivedi
0
209
Member Avatar for asaidi

See function for attaching file. Also take care to save generated file in folder with 777 permission. then use that file to attach, i set path ../pdf/mail_attach. <?php function attach_file($files,$mime_boundary) { // preparing attachments $message=""; $filecount= count($files); for($x=0;$x<$filecount;$x++) { $filefullpath="../pdf/mail_attach/".$files[$x]['file_name']; $file = fopen($filefullpath,"rb"); $data = fread($file,filesize($filefullpath)); fclose($file); $data = chunk_split(base64_encode($data)); …

Member Avatar for urtrivedi
0
464
Member Avatar for <M/>

I put line 8 [calling mail()] at the end, becaseu you can not call mail function before setting other parameters. <?php $fn = $_POST['fn']; $name = $_POST['name']; $lastname = $_POST['lastname']; $email = $_POST['email']; $phone = $_POST['phone']; $comments = $_POST['comments']; $to = "gmail@gmail.com"; $subject = "Form Submission"; $headers = "From: " …

Member Avatar for urtrivedi
0
94
Member Avatar for guiburi

http://www.dreamincode.net/code/snippet2475.htm http://www.codewalkers.com/c/a/File-Manipulation-Code/delete-lines-from-a-file/

Member Avatar for urtrivedi
0
258
Member Avatar for furlanut

first joins are fine then runing 3 times query you must select col names youwant in select statment to avoid duplicat columsn SELECT launh.name as lname, ......... FROM launch then instead of col index , use column name echo $row['lname'];

Member Avatar for furlanut
0
181
Member Avatar for ayesha789

if you have access to windows server. You can create schedule task. Accessories->system tools->schedule task create new task When it ask for application. 1) browse to php folder and select php.exe 2) then give space and give full path of report1.php 3) set time repeat 1-3 steps for other reports.

Member Avatar for sahiljariwala
0
2K
Member Avatar for praveen reddy
Re: php

You can use functions to solve your purpose function progA { . . . } function progB { . . progA(); . }

Member Avatar for pritaeas
0
109
Member Avatar for McLaren

HOw many times player will bet? you can keep track using multi dimentional array for each bet that each parent array element will keep track of each bet (in another array) so at end we can sum up array values to know win/lose or profit/loss

Member Avatar for McLaren
0
98
Member Avatar for branding4you
Member Avatar for amit.chaudhari.71

Does this help $text="\r\n Your text to write \r\n ".date('d')."-".date('m')."-".date('Y')."\r\n";

Member Avatar for amit.chaudhari.71
0
215
Member Avatar for mheoxe
Member Avatar for Riu 2009

this happnes, when your server has limit of some filesize, you can see in php.ini, for paramater related to file upload, you need to increase that sizes

Member Avatar for Riu 2009
0
157
Member Avatar for persianprez

On selection of game or app, If you want to update file on server, you must submit your page using post method or you can use jquery. But simple javascript can not update file on server.

Member Avatar for urtrivedi
0
292
Member Avatar for Rizi004
Member Avatar for rotten69

All major DBMS provide file import utility. where you can spceify datatypes/ field separator and record seprators. Look at your all sources, and find all distinct columns and create table in your destination database with all columns you found in all sources then case by case (file format by file …

Member Avatar for debasisdas
0
159
Member Avatar for bluecloudburst

$query="update applicants set applicants.reviewedby = CONCAT(ifnull(applicants.reviewedby,''),".$_SESSION['user_id'].") where user_id={$_GET['uid']}";

Member Avatar for bluecloudburst
0
111
Member Avatar for Szabi Zsoldos

for first case your previous element is blank, you are setting it at line 30. So you must have some reference value in the begingin for $previous

Member Avatar for Szabi Zsoldos
0
200
Member Avatar for geneh23

your var_dump means, user_level is not set only user_id is set, so in your login page, you also need to set user_level in sesssion

Member Avatar for geneh23
0
613
Member Avatar for amandafree

i think you need loop in loop first run that your query then in that loop run query in second loop from response_tb where all_id =first loop all_id

Member Avatar for urtrivedi
0
203
Member Avatar for HelloJarvis

what you return you are not passing back to calling function if ($position < $width - 1) check($width, $position + 1, $base_string . $charSet[$i], $charSet); You must store output of check(...)function to some array, so you are looing your processsed output here. if ($position < $width - 1) $retcomb=check($width, $position …

Member Avatar for Bachu
0
166
Member Avatar for Bremen Emeth

I put all together with few changes <html> <head> <script lang='javascript'> function onoff(clickedradio) { if (clickedradio.checked && clickedradio.value=='1') { document.getElementById("divtext").style.display="none"; } else { document.getElementById("divtext").style.display="block"; } } </script> </head> <body> <fieldset id="radios"> <td width="33" bgcolor="#00FF00" ><font face="Arial"><input type="radio" checked name="ItemName" onclick="onoff(this)" value="1"></font></td> <td width="33" bgcolor="#FFFF00" ><font face="Arial"><input type="radio" name="ItemName" onclick="onoff(this)" value="2"></font></td> …

Member Avatar for Bremen Emeth
0
3K
Member Avatar for HasNor

you check primary key of "list" table, it may be possible that not allowing multiple docno or revno.

Member Avatar for harshita317
0
158
Member Avatar for rotten69

If its just your computer or you are in network You must know ip/domain name of SMTP server in your network open php.ini file [mail function] SMTP = xxx.xxx.xxx.xxx (YOUR smtp ip like) smtp_port = 25 now your php ini should look like this somewhere restrat apache service echo mail …

Member Avatar for rotten69
0
245
Member Avatar for bettybarnes

I wanted demo forum online so I registered on WWW.PROPHPBB.COM , they give free forum with limited settings. But good one to start free forum. Most of things you can manage using their admin panel.

Member Avatar for diafol
0
253
Member Avatar for HunainHafeez

You must have mail server configured in yoru network, which ip address you can configure with ur php.

Member Avatar for ome2012
1
115
Member Avatar for krutatA
Member Avatar for ronak.patel.946

type exit after all headers to avoid belwo code to excute; header('Location: profile.php'); exit;

Member Avatar for jstfsklh211
0
265
Member Avatar for sammry

> its not showing any result what do u mean 1) no rows showed? 2) query giving any error? you may also try withoug 10 or 15 conition as given below SELECT `u`.`userid`, `u`.`username`, COUNT(`s`.*) AS `total_sales` FROM `users` `u` INNER JOIN `sales` `s` ON (`s`.`userid` = `u`.`userid` AND `s`.`status` …

Member Avatar for sammry
0
131
Member Avatar for daniel36

Mais mon site ne s'affiche pas certains charachter françaises de ce type de texte qui est-ç, é, à etc.in place de ces charachter mon site affiche un symbole. Que puis-je faire pour montrer ces charachter. Copy this is it showing in your site or not

Member Avatar for DarkMonarch
0
213
Member Avatar for David2012
Member Avatar for urtrivedi
0
365
Member Avatar for HansK

where is the source, who build that link. It not in our control if somebody refter your page like this.

Member Avatar for JorgeM
0
98
Member Avatar for anuradha.joshi10
Member Avatar for onofej

<?php //$datestr = '25-5-2012'; $datestr = '25-MAY-2012'; //$datestr = 'TEMP'; // previous to PHP 5.1.0 you would compare with -1, instead of false if (($timestamp = strtotime($datestr)) === false) { echo "The string ($datestr) is bogus"; } else { echo "$datestr == " . date('l dS \o\f F Y h:i:s …

Member Avatar for diafol
0
6K
Member Avatar for just.irwan

what is table struture? what is ur database? mysql, mssql or other? do you have sale date/pur date?

Member Avatar for diafol
-3
119
Member Avatar for Khav

I am not sure about performance. 1) you have to upload file using script to same server where script is available. 2) copy that file to another server using ftp funciton of php 3) delete file from script server

Member Avatar for Khav
0
1K
Member Avatar for nickg21

I think NoDecision is having 2 inquiry.id for any one case so it is adding one more you can try count (distint Inquiry.ID)

Member Avatar for urtrivedi
0
143
Member Avatar for websols180

add this 3 lines in the beginging of your page error_reporting(0); ini_set("display_errors",0); if ($_GET['start']=="") $_GET['start']=1;

Member Avatar for websols180
0
302
Member Avatar for furianera
Member Avatar for ruchi123852
Member Avatar for urtrivedi
0
118
Member Avatar for Yorkiebar14
Member Avatar for mmcdonald

following line update-server.php?server=$server_id it should be like this when u click in address bar update-server.php?server=12 it must be some number or value and not variable name

Member Avatar for mmcdonald
0
203
Member Avatar for cristian.stilpeanu.3

write these 2 statument in the begining of your php file <?php error_reporting(0); ini_set("display_errors",0); . . . ?>

Member Avatar for cristian.stilpeanu.3
0
81
Member Avatar for mgn2683

The form select name is 'select' in your form, and in code you are looking for 'help' name. so change your name to 'help' change following line in your contact.htm <select name='select'> to <select name='help'>

Member Avatar for mgn2683
0
290
Member Avatar for Kunal Lakhani

you dont need join, join is applicable if you have fk-pk relation you try following query select id, sum(suma), sum(sumb) from (select id, amount as suma, 0 as sumb from a where id=1 union select id, 0 suma , amount as sumb from b where id=1 ) x group by …

Member Avatar for urtrivedi
0
235
Member Avatar for opspl_programme

I am not sure about your query, but If you want distinct row, if you add distinct keyword after select keyword you will distinct result so if you say select distinct TrayID, TrayID , EVA_ID from tablename The you will get following result TrayID| TrayID | EVA_ID 313 | 313 …

Member Avatar for opspl_programme
0
465
Member Avatar for andyy121

comment line 2, everything will run proeplry then //$keywords =mysql_real_escape_string(htmlentities(trim($_POST['keywords'])));

Member Avatar for andyy121
0
266
Member Avatar for vizz

eye cathing is personal issue, you can not please all. just select 2 random colors and get it done.

Member Avatar for vizz
0
114
Member Avatar for pmondal47
Member Avatar for urtrivedi
0
107
Member Avatar for logicaweb

IN your sql query to load invoice details, you add one more condition to filter records based on login id. $query="select * from invoice where invoieno='{$_GET[ids]}' and USERID='{$_SESSION['userid']}'";

Member Avatar for urtrivedi
0
172
Member Avatar for anand01

I had same issue, to avoid recursion i stored all paraent level relation in another table called item_level like for child_id, parent_id, level 4, 4, 0 (self record at level 0) 4, 1, 1 (first parent that is women for wtshrit at level 1) 4, 0, 2 (second parent (grand …

Member Avatar for anand01
0
203

The End.