39,393 Topics

Member Avatar for
Member Avatar for tie372

I have a bunch of checkboxes on one page, that look like this [code]<input type="checkbox" value="classic" name=subgenre[]></input>[/code] And when all the data is collected and inserted into a databse, it looks like this [code]$subgenre=$_POST[subgenre];[/code] This is supposed to collect every box that is checked and store it in a database …

Member Avatar for johnsquibb
0
77
Member Avatar for CMCDragonkai

I have a string like this. $function = " array_splice($arr . $arrayimploded, end($index), 1, $data); "; $arr is an array $arr = array(0 => array(0 => "s", 1 => "es"), 1 => array(0 => "ing"), 2 => array(0 => "d", 1 => "ed") ); The $arrayimploded is "[0]" The end($index) …

Member Avatar for CMCDragonkai
0
81
Member Avatar for EnderX

I've been requested to write a PHP-driven database report by my boss. The reports will be located on our servers, where PHP is installed. However, the DBs that I'm supposed to read from are going to be located on the client machines. The servers are running SuSE 9.3 with Apache …

Member Avatar for werks
0
448
Member Avatar for chitra1

Hi everyone! I'm working on a project whereby the system is rule-based. I have to write the rules in either Common Lisp but the problem is that i'm using PHP for designing the interface and I'm not able to link these two languages. Could anyone plz help me??????

Member Avatar for digital-ether
0
105
Member Avatar for frezek

I hawe a microsoft publisher 07 how can i add my host or dns??

0
50
Member Avatar for lydia21

hi i have a login page which is allowing only registered user .it is working too...... but when the second page URL is typed it is getting displayed i want the all the user to enter through the first page.......when the second page URL is typed it should not get …

Member Avatar for ezb
0
121
Member Avatar for neha gupta

Hi , I need to access a MS-Word document using php... Plz suggest me how to do it.... Thanks in advance!!!!

0
68
Member Avatar for OmniX

I have an input submit button that once clicked activates php. Now the problem I have is that I have the neccessary code (or what i think is) to stop from the input button working (as I have used the same technique on the other input submit buttons). To get …

Member Avatar for OmniX
0
103
Member Avatar for love19_foryou

I hv downloaded html to pdf convertor but i am not able to use css in pdf file. can anyone hrlp me.

Member Avatar for phper
0
92
Member Avatar for halifaxer

Hi there, Bit of a complicated query, for me anyway. lol Following code: [code]$url = 'http://www.cheapsmells.com/viewProduct.php?id=6590'; $html = file_get_contents($url); preg_match('/<div class='productOurPrice'?>(.+?)(\d+\.\d+)(.+?)?<\/div>/', $html, $match); $out = $match[2];[/code] Great, no problem! However, this next url I need to code to is a bit trickier as the tag data is, well see below... …

Member Avatar for phper
0
142
Member Avatar for lesalmin

How should I implement "interactive refresh" (I don't even know how I should call it) where one visitor's action (klicking a link, submit button etc. - everything will do) activates page refreshing of other visitors on the same page? I know how to implement an automatic, periodic refresh but I …

Member Avatar for phper
0
174
Member Avatar for usc87bb

Hi there...I'm pretty new at the PHP game, I've basically taught myself everything from looking at examples scripts and Google, and I've only been tinkering with scripts for about a week. Therefore, I'm confused about the error I'm getting when I try and run this part of the script. Basically, …

Member Avatar for usc87bb
0
90
Member Avatar for smilyswapna10

hi all, when i refresh the parent window then the child winodw should be closed using javascript and html. Thanks& Regards, swap.

Member Avatar for nav33n
0
89
Member Avatar for avmaza

Dear friends, I have trouble with printing page with landscape. I am using java script to print the page. as well as I have set css file to print landscape but it is not working. I have used these line in css files, <style type="text/css"> <!-- @page { size: landscape; …

0
63
Member Avatar for dorcas

I installed Wampserver on my machine and everything else seems to be working well except that scripts on html pages are not being executed by the server. I previously had Apache 2.0.59 and still experienced the same problem. E.g on the code below: [code] <html> <body><?php echo "Hello World"; ?> …

Member Avatar for ezb
0
106
Member Avatar for Bro

I have about 100 sub web sites under my domain, example: domain.com/England, domain.com/Denver and I adding more, I need my main web site to recognize where the customer came from (which sub domain) and send the form information via email to that office. Let's say someone goes to my England …

Member Avatar for rudevils
0
76
Member Avatar for tie372

How would I make it so when I select something from a mysql database, that information isn't stored in the array twice? Here is my code [code]<?php include "header.html"; include "db.php"; if($_GET[by]==genre) { $sort = mysql_query("SELECT genre FROM bands ORDER BY genre"); while($sort2 = mysql_fetch_array($sort)) { $sql=mysql_query("SELECT * FROM bands …

Member Avatar for digital-ether
0
70
Member Avatar for killer007

[B]Hello Guys Can anybody here answer my this question. How we can show Latest Categories from this Sql table. Here is the Table [code] -- -- Table structure for table `jos_afm_cats` -- CREATE TABLE `jos_afm_cats` ( `cat_id` int(11) NOT NULL auto_increment, `parent_id` text NOT NULL, `file_id` int(11) NOT NULL default …

Member Avatar for nav33n
0
129
Member Avatar for tjenning27

Hello I found some great php code on this site yet I have a question. regarding the php script below: <?php $to = "orders@babyresume.com"; $subject = "Contact Us"; $email = $_REQUEST['email'] ; $message = $_REQUEST['message'] ; $headers = "From: $email"; $sent = mail($to, $subject, $message, $headers) ; if($sent) {print "Your …

Member Avatar for tjenning27
0
103
Member Avatar for Dsiembab

Good Morning, I am thinking of letting users upload files to my website. I already have a php script to allow this which will be the back-end of a flash GUI. I have made the .swf which would allow the browser to find files with only the specified file-types for …

Member Avatar for Dsiembab
0
128
Member Avatar for alfred_cooldogg

Any one know what i have to studying the zend php 5 test? i have the study guide book for the zend php 5 certification, but i read it all and think it is not that useful. Is there any where have the practice test or tell me what i …

Member Avatar for nav33n
0
76
Member Avatar for mcx76

I am creating web order form html and php.I am not php coder.So please sorry if i am wrong . The demo page is [URL="http://www.desinovels.com/order/contactus.htm"]Here[/URL] I want if user come and click on check boxes.So i will receive email on completion.when submit.I dont know which tags will be user to …

Member Avatar for nav33n
0
113
Member Avatar for Charleslp2007

Hello !!! I am the owner of a website which is a social network. The members can email each other but there is a little problem: [B]They can see the email address of the person who wrote them[/B]. As you can see, this is uncomfortable for some people because there …

Member Avatar for digital-ether
0
295
Member Avatar for manish_gajjar

ajax_example1.php <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script language="javascript"> function showdetail(id) { //var xmlhttp; //if(window.XMLHttpRequest) xmlhttp=new XMLHttpRequest(); /*else if(window.ActiveXObject) xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");*/ xmlhttp.open("GET","data_fetch.php?id="+id,true); xmlhttp.send(null); xmlhttp.onreadystatechange=function() { if(xmlhttp.readyState==4 || xmlhttp.readyState=="complete") { //if(xmlhttp.status==200) { //if(xmlhttp.responseText!='') { //document.getElementById('emp_nm').innerHTML=xmlhttp.responseText; xmldoc=xmlhttp.responseXML; document.getElementById("emp_nm").innerHTML=xmldoc.getElementsByTagName("emp_nm")[0].firstChild.data; document.getElementById("dpt_nm").innerHTML=xmldoc.getElementsByTagName("dpt_nm")[0].firstChild.data; document.getElementById("wrkphour").innerHTML=xmldoc.getElementsByTagName("wrkphour")[0].firstChild.data; document.getElementById("sal").innerHTML=xmldoc.getElementsByTagName("sal")[0].firstChild.data; document.getElementById("ph_no").innerHTML=xmldoc.getElementsByTagName("ph_no")[0].firstChild.data; …

Member Avatar for cfroese
0
90
Member Avatar for neha gupta

Hi, I m trying to run my php script using the xampp on Fedora linux. I ve sucessfully started xampp.And tested using "http://localhost/" It works well.... But when i try to run my file (php or html)it does nt work.. I put my file exp.html [or exp.php] in the "lampp/htdocs/" …

Member Avatar for cfroese
0
219
Member Avatar for martinkorner

I am currently reading and displaying the entire contents of a text file using the following code: [ICODE]$html_get = file('content.txt'); foreach ($html_get as $html_num => $html_text) { echo $html_text; }[/ICODE] I would like, however, to have the code read the contents of the text file up to a certain line …

Member Avatar for mario.stoica
0
173
Member Avatar for KingTheoden

Hey guys, sorry to bother you with some rather elementary woes. I am using the book Beginnings PHP5 and MySQL E-Commerce and am stuck at Chapter 2. My default folder for Apache is C:/htdocs. I created a folder C:/tshirtshop, created a simple php info page in this folder, and have …

Member Avatar for KingTheoden
0
89
Member Avatar for ned69

Hi Guys I have two tables I'm trying to pull information from. In the end I want to be able to display a username and a school name which are contained in 2 separate tables but linked by the school id number. The problem is that the 'members' table which …

Member Avatar for ned69
0
109
Member Avatar for mgn2683

Hi I'm trying to be able to pull user information from a Heidisql table. Using a recordset I was able to pull cand_id and set_nbr, but not the actual response, which is the most important aspect. The code I'm working with is: $GETURLCAND_ID = $_GET['cand_id']; $GETURLSET_NBR = $_GET['set_nbr']; mysql_select_db($database_episcopalgbec, $episcopalgbec); …

Member Avatar for ShawnCplus
0
73
Member Avatar for dss

Hello, I need some help with php and tpl. What tpl is ? I saw lots of website having tpl files. whats the advantage ? How to work with tpl ? Basically is tpl used with smarty ? I hope i get some help at Daniweb. Thanks DSS

Member Avatar for MitkOK
0
70

The End.