39,320 Topics
| |
Hi guys, I want to put links on 1 box @ right hand side but only show it on homepage. The problem is the right handside show sitewide (all pages). How can I show that box only hompage and the rest of right handside still show all pages? my sites … | |
Hi, What I am trying to do is enter HTML code into a variable and then pass it along to another script with POST to have it used as the HTML content with PHPmailer. As soon as my HTML code that i paste into the textarea contains double quotes it … | |
Hello everyone. I am having trouble trying to write some script that will unlink all files in a directory. Can anyone help me? I am not sure of the best way to do this? Thankyou. | |
Hello, I am trying to use submit buttons, with different meeting dates as the name. When user clicks (for example) September 9, 2010 button, the text file called September 9, 2010 will open in the other div. If user clicks October button, the October text file would open in other … | |
Hie, I'm trying to first pass a variable in a link from index.php to a page template.php. This variable is holding a table name of a data-base. Now my problem is to get this passed variable (which is a table name) from index.php to template.php and use the same to … | |
This script logins the facebook and gather some data (not important) from search, but however, its not working. Where is my mistake ? (Login is working, but gathering info from search results, isnt.) [CODE]<? $first_name = 'Eda'; $login_email = 'bodrumlukardes@hotmail.com'; $login_pass = 'mypassword'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://login.facebook.com/login.php?m&next=http%3A%2F%2Fm.facebook.com%2Fhome.php'); curl_setopt($ch, … | |
Hi guys i can't seem to figure out whats wrong with my sql statement. its an insert statements using session variables to insert into a SQLite table. part of problem code as follows: [CODE]<?php $db = new PDO('sqlite:name.sqlite'); $submitNewSummary = $db ->query("INSERT INTO clinicalSummary(placementID,attMon1,attTue1,attWed1,attThu1,attFri1,attMon2,attTue2,attWed2,attThu2,attFri2,item1,item2,item3,item4,item5,item6,item7,item8,item9,item10,item11,item12,item13,item14,item15,item16,item17,item18,item19,item20,dateCompleted) VALUES (".$_SESSION['studentRetrievedPID'].",".$_SESSION['Monday1'].",".$_SESSION['Tuesday1'].",".$_SESSION['Wednesday1'].",".$_SESSION['Thursday1'].",".$_SESSION['Friday1'].",".$_SESSION['Monday2'].",".$_SESSION['Tuesday2'].",".$_SESSION['Wednesday2'].",".$_SESSION['Thursday2'].",".$_SESSION['Friday2'].",".$_SESSION['itemSummary1'].",".$_SESSION['itemSummary2'].",".$_SESSION['itemSummary3'].",".$_SESSION['itemSummary4'].",".$_SESSION['itemSummary5'].",".$_SESSION['itemSummary6'].",".$_SESSION['itemSummary7'].",".$_SESSION['itemSummary8'].",".$_SESSION['itemSummary9'].",".$_SESSION['itemSummary10'].",".$_SESSION['itemSummary11'].",".$_SESSION['itemSummary12'].",".$_SESSION['itemSummary13'].",".$_SESSION['itemSummary14'].",".$_SESSION['itemSummary15'].",".$_SESSION['itemSummary16'].",".$_SESSION['itemSummary17'].",".$_SESSION['itemSummary18'].",".$_SESSION['itemSummary19'].",".$_SESSION['itemSummary20'].",".$_SESSION['studentRetrievedDF'].")"); if ($submitNewSummary) { echo … | |
Hi all, I have a table containing about 10 records and each record has a unique ID. I'm trying to dynamically generate a pie chart according to each record The output I want is this: [code]$pct_data = array( new pie_value($this->Client->count_all_by_pct(1,$thisMonth), $this->Pct->info(1)->name.', '.$this->Pct->info(1)->location.' ('.$this->Client->count_all_by_pct(1,$thisMonth).')'), new pie_value($this->Client->count_all_by_pct(4,$thisMonth), $this->Pct->info(4)->name.', '.$this->Pct->info(4)->location.' ('.$this->Client->count_all_by_pct(4,$thisMonth).')'), new pie_value($this->Client->count_all_by_pct(6,$thisMonth), … | |
Here is my problem. I have a table that produces 11 names with 2 values for each. These values are derived by subtracting one field in the database from the other. I have no problem gettign the table to produce those 22 values, but now I want to total each … | |
Hi All, can anyone suggest the quick manual on implementation of Unit Tests for PHP? | |
I have tried to write a script that sends image as an embedded object rather that attachment OR a url link but it is not working. I am attaching the code. Please help me. | |
| I'm not sure how to do this or if its possible with CSS/HTML. I have tables that hold info on my index page that is entered from the members area. The table has a plain white background, which isn't my problem. I'd like it if when new info is entered … |
i'm sorry my title is confusing here's my problem i've created this echo "<table border='1'> <tr> <th>Idno</th> <th>Name</th> <th>Specialty</th> <th>Email</th> <th></th> </tr>"; while($row = mysql_fetch_array($result)) { echo "<tr>"; echo "<td>" . $row['Idno'] . "</td>"; echo "<td>" . $row['LastName'] . " " . $row['FirstName'] . " " . $row['MiddleName'] . "</td>"; … | |
Hi all, This may be asking a bit much, but this is my FIRST advanced PHP/MySQL project. Any help is appreciated. I am currently building a website for one of my friends photography business, and she has requested to allow her clients to be able to sign with a username … | |
Im a novice at php and cant seem to get the following two line together. We want to use this line [CODE] <?php if($logged_in) { echo "Welcome back, $logged_row[username] "; } else { print('<a href="http://xxx/login.html">Login</a> / <a href="http://xxx.com/signup.html">Signup</a>'); } ?>[/CODE] But we need this put into it, we need it before … | |
[CODE] <html> <link rel="stylesheet" media="screen" href="DynCalendar/dynCalendar.css" /> <script language="javascript" type="text/javascript" src="DynCalendar/browserSniffer.js"></script> <script language="javascript" type="text/javascript" src="DynCalendar/dynCalendar.js"></script> <body> <table width="703" height="210" border="1" cellpadding="5" cellspacing="0"> <tr> <td width="535"><form name="Add_Record"><form action="insert.php" method="POST"> <p class="Headings"><strong>Add a Record</strong> </p> <p>First Name: <input type="text" size="20" maxlength="20"name="firstname" /> Last Name: <input type="text" size="20" maxlength="20" name="lastname" /> </p> <p>Days … | |
Plz any body help me how can i send data in server by form use Zend framwork MVC or give me instraction about zend MVC | |
guyz pls i need help writting d php script for a registration form...i want all the contents of the form to be emailed to an email address i will provide here is a copy of the html code, its juss the php script i need not pls someone help [CODE]<FORM … | |
Subject PHP: Echo SimpleXMLElement Object Data Out to 3 Column HTML Table Post Hello everyone. I am working with Simple XML Element object data and PHP code. I want to echo out that data into a 3 column HTML table and have run into some trouble. I am currently able … | |
can anyone explain me add to cart script.i have read it in some sites but dont know what it means. can anyone explain a simple one? | |
Hi I am parsing .csv file which contains 21 000 records. While i am parsing it i insert records in database. It is taking about 40 second for script to parse the file. User will not sit and wait 40 seconds - he might close page. How can i print … | |
I have a form, that when the user click Submit, I need a php variable to be echoed to the page. This is for an upload page. So when they are waiting for the file to upload, it will say "Uploading..." until the upload is complete. All I know so … | |
Hi forum, This will probably be an easy one but i have a situation where i have multiple PHP/HTML <SELECT> tags. So i hold their id and name in an array. When i go to call this enableBox JavaScript function and i try to call the selectorName[] using the getElementById … | |
Good Morning, I am looking for some code that will simply echo "0" when the result is negative. I dont want it to output a negative number. Here is the line I am looking to add this to: [code] echo $row['GP1011_'.$wk.'']-$row['GP1011_'.$prev.'']; [/code] Any help is appreciated. Thanks Chris | |
Hi Guys, OK I'll admit it from the off I'm a complete PHP newbie, but I'm willing to learn. Here's what I've got so far... I have a search form which is being updated using an AJAX call. So far so good, but my boss would like it so that … | |
hi there.. well lets say I do have a multidimensional array of the sort shown below.. Now I do need to pass on the arrays using checkboxes..!! how do I assign single row to each checkbox so that when I onclick it posts the value to the function on the … | |
i have a form and text box where user can enter amount on the basis of that amount tax rate fetch from mysql.the query below working well but when user input above 50000 , i want tax_rate should be calcuated according to 35%.. ...it givning me empty result,,, how to … | |
Right the code below selects staff members from the database by the column gp(group) which enables me to select all or filter down by their group, but i need certain members to appear in more than one group any ideas would be much appreciated [CODE] <form name="staff" action="staffs.php" method="POST"> <select … | |
Hi, i have a php script form, and i want to use the js confirmation alert, the problem is, this echo "<script> var yes=confirm('warever you want'); if (yes){}<---here i want to plase something in php code else{} </script>"; $confirm='yes' how can i math bouth codes? | |
hi all i am working on a website that will display projects and many images for each project. i want to make an interface for the website admin to login and add new projects and images for each project. i was wondering whats the best way to store the images … |
The End.