1,257 Posted Topics
Re: this code list cateries, with link when user clicks that link, then new page will open shwoing the prodcuts of the clicked categories | |
Re: 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)); … | |
Re: 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: " … | |
Re: http://www.dreamincode.net/code/snippet2475.htm http://www.codewalkers.com/c/a/File-Manipulation-Code/delete-lines-from-a-file/ | |
Re: 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']; | |
Re: 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. | |
Re: You can use functions to solve your purpose function progA { . . . } function progB { . . progA(); . } | |
Re: 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 | |
Re: post samle file data and your php code | |
Re: Does this help $text="\r\n Your text to write \r\n ".date('d')."-".date('m')."-".date('Y')."\r\n"; | |
Re: You planning to do it in phpmysql? | |
Re: 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 | |
Re: 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. | |
Re: nobody can solve it, until you post your concern code | |
Re: 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 … | |
Re: $query="update applicants set applicants.reviewedby = CONCAT(ifnull(applicants.reviewedby,''),".$_SESSION['user_id'].") where user_id={$_GET['uid']}"; | |
Re: 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 | |
Re: 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 | |
Re: 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 | |
Re: 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 … | |
Re: 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> … | |
Re: you check primary key of "list" table, it may be possible that not allowing multiple docno or revno. | |
Re: 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 … | |
Re: 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. ![]() | |
Re: You must have mail server configured in yoru network, which ip address you can configure with ur php. | |
Re: http://w3schools.com/sql/default.asp | |
Re: type exit after all headers to avoid belwo code to excute; header('Location: profile.php'); exit; | |
Re: > 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` … | |
Re: 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 | |
Re: refer this i think it will help http://phpsense.com/2007/php-pagination-script/ | |
Re: where is the source, who build that link. It not in our control if somebody refter your page like this. | |
| |
Re: <?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 … ![]() | |
Re: what is table struture? what is ur database? mysql, mssql or other? do you have sale date/pur date? ![]() | |
Re: 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 | |
Re: 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) | |
Re: add this 3 lines in the beginging of your page error_reporting(0); ini_set("display_errors",0); if ($_GET['start']=="") $_GET['start']=1; | |
Re: <div id="Foo" style='color:red;background-color:black'>news</div> | |
Re: 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 | |
Re: write these 2 statument in the begining of your php file <?php error_reporting(0); ini_set("display_errors",0); . . . ?> | |
Re: 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'> | |
Re: 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 … | |
Re: 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 … | |
Re: comment line 2, everything will run proeplry then //$keywords =mysql_real_escape_string(htmlentities(trim($_POST['keywords']))); | |
Re: eye cathing is personal issue, you can not please all. just select 2 random colors and get it done. | |
Re: 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']}'"; | |
Re: 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 … |
The End.