Forum: PHP 19 Days Ago |
| Replies: 3 Views: 285 Would you please show us your code |
Forum: PHP 20 Days Ago |
| Replies: 5 Views: 297 How do you want the variable to be passed? Without reloading the page? |
Forum: PHP 28 Days Ago |
| Replies: 2 Views: 280 Do you know how to edit joomla templates? From my experience, the steps are the same for any template. What happens with some free templates is that the the designers encrypt some files like... |
Forum: PHP Nov 9th, 2009 |
| Replies: 1 Views: 205 PHP provides you with all the necessary functions to access the filesystem just as you would do through the command line. for example listdir.
Find more on these here (http://www.php.net) |
Forum: PHP Nov 2nd, 2009 |
| Replies: 2 Views: 242 $query="SELECT * FROM products WHERE part LIKE \"%$pt%\""
This will match any string in the column `part` where the substring/string contained in $pt is found |
Forum: PHP Oct 29th, 2009 |
| Replies: 13 Views: 319 The date function needs a timestamp argument as the second argument and you should terminate this line.
date("argument 1",time());
Google for more info on how to use the date function |
Forum: PHP Oct 26th, 2009 |
| Replies: 1 Views: 209 There are many ways to do this. What happens is that the next and previous links are generated automatically by php and the appropriate arguments given to them.
For example you can generate such... |
Forum: PHP Oct 23rd, 2009 |
| Replies: 2 Views: 153 I'm sure you want to do it without reloading the page. If so, then what you need is javascript. If the page will be reloaded when a the select box value changes then php will work. |
Forum: PHP Oct 12th, 2009 |
| Replies: 1 Views: 247 A checkbox value will only be set only if it was selected. So a simple test will do
if(isset($_POST['check-box-name']){
//the checkbox was selected therefore do something
} |
Forum: PHP Oct 6th, 2009 |
| Replies: 4 Views: 250 How about adding a die statement to assist in debugging like so
$this->con=mysql_connect($server,$name,$pass) or die(mysql_error());
happy times! |
Forum: PHP Oct 6th, 2009 |
| Replies: 4 Views: 241 What you need is simply DHTML. Just like Gmail's attach another file, you need something like that which when clicked will add two text fields for item code and another one for serial no.
So the... |
Forum: PHP Oct 6th, 2009 |
| Replies: 4 Views: 386 Simply test using php if the checkbox was selected
if(isset($_POST['check-box-name'])){
//Do something
}
From there you can proceed with inserting the values to the database. Test for each... |
Forum: PHP Oct 6th, 2009 |
| Replies: 1 Views: 219 That is one of the problems that you will have to experience when you use one of those freely available templates.
If you want to avoid this problems, buy a professional template or write a css file... |
Forum: PHP Sep 30th, 2009 |
| Replies: 3 Views: 186 It is simple, just like a grading system you assign each member/user a category base on his ranking and then print the appropriate image for his category. e.g if you are a newbie then the image that... |
Forum: PHP Sep 30th, 2009 |
| Replies: 2 Views: 699 As far as I know, PHP cant open a new window. What you can do is to have php print the relevant link in html which when clicked directs a user to the page where the pdf file will be viewed with the... |
Forum: PHP Sep 30th, 2009 |
| Replies: 11 Views: 3,714 Hey! this script i'm sure is meant for beginners. If you know about SQL injection then I guess you are not a beginner and you can even do this community a favour by posting another version of the... |
Forum: PHP Sep 28th, 2009 |
| Replies: 5 Views: 188 Only the check box that is checked will be sent so you can check if it is set like below
if(isset($_POST['check-box-1'])){
//Do something
}
[/code] |
Forum: PHP Aug 11th, 2009 |
| Replies: 1 Views: 521 $data=array(1,2,3,4,5,6);
$rev=array();
$i=count($data);
$x=0
for( $j=$i-1; $j>-1; $j--){
$rev[$x]=$data[$j];
$x++;
} |
Forum: PHP Aug 3rd, 2009 |
| Replies: 2 Views: 188 Have you established a valid connection to the database? |
Forum: PHP Jul 30th, 2009 |
| Replies: 2 Views: 190 I am not using IE right now but you will have to write a separate css file for windows that handles the top alignment.
You know how to go about this? |
Forum: PHP Jul 28th, 2009 |
| Replies: 0 Views: 147 How do I run the gabbage cleaner function in a session class from within the PHP framework.
I use GNU/Linux and I have done it through CRON. Any scheduling library available in PHP?
Any help will... |
Forum: PHP Jul 28th, 2009 |
| Replies: 4 Views: 256 <?php
$row_count = 0;
$columns = 3;
while ($row = mysql_fetch_assoc($result)) {
if ($row_count == $columns) {
echo "</tr><tr>"; |
Forum: PHP Jul 13th, 2009 |
| Replies: 2 Views: 401 I am afraid it's not possible to insert zipped files and songs to the database. What is normally done is simply copying them(songs,images,zipfiles) to the server and storing the details of the... |
Forum: PHP Jul 11th, 2009 |
| Replies: 4 Views: 532 What you would need here is some knowledge in ajax and javascript . When a user logs in for example build the time on his local machine using javascript and pass it to the server using Ajax.
You... |
Forum: PHP Jul 3rd, 2009 |
| Replies: 5 Views: 689 Looping is the way to go as Menster has just shown you here. in your html add as many file input fields as you want but name them all as upload[] so that PHP will take the name upload as an array... |
Forum: PHP Jul 2nd, 2009 |
| Replies: 2 Views: 516 Just to make it better add this lines to the calculate function above to be sure you are multiplying numbers only!
function calculate() {
if(isNan(document.form1.elements.productvalue.value) ||... |
Forum: PHP Jun 23rd, 2009 |
| Replies: 1 Views: 461 Which operating system is that other pc as you put it using?
Once you upload your files to the server (html, image files in one directory) then you don't need that long path.(assuming you are using... |
Forum: PHP Jun 8th, 2009 |
| Replies: 5 Views: 804 Thanks for that advise samarudge |
Forum: PHP Jun 4th, 2009 |
| Replies: 5 Views: 804 You can as well do it without the onclick event by simply placing the desired javascript code in the href attribute or a the function name containing your code.
/*Example*/
<script... |
Forum: PHP Jun 2nd, 2009 |
| Replies: 4 Views: 825 Normally images are usually uploaded to a folder in your webserver (actually a folder in the root folder of your site) and then the details such as image name, path, size stored in the database.
For... |
Forum: PHP May 18th, 2009 |
| Replies: 3 Views: 300 For pages in your site, you don't need the http part. I think Ardav has provided a better explanation on this. |
Forum: PHP May 11th, 2009 |
| Replies: 6 Views: 381 You can session register the time when a user logs in on a different script(or even a function) that won't be used again. Using normal variables will change the time if a page is refreshed.
Try that... |
Forum: PHP May 11th, 2009 |
| Replies: 17 Views: 1,262 Hi Davewylie. Have you tried using css? You can easily format the submit buttons apart from using images |
Forum: PHP May 11th, 2009 |
| Replies: 3 Views: 549 A little explanation of what your code does will help. |
Forum: PHP May 4th, 2009 |
| Replies: 3 Views: 415 I am using the php touch function to create the file and then open and write into it with the regular file operation functions.
The problem is that the touch function fails if the server is not... |
Forum: PHP May 4th, 2009 |
| Replies: 3 Views: 415 I'm working on a php application and when setting it up for the first time it writes a file (system_info.php) to the server that stores several details of the system it is being installed in.
If the... |
Forum: PHP Apr 28th, 2009 |
| Replies: 10 Views: 1,923 Please visit the daniweb javascript/dhtml/ajax forum |
Forum: PHP Apr 24th, 2009 |
| Replies: 1 Views: 238 I have a web application and I keep a list of logged in users in the mysql database.
If a user clicks the sign out button his details are subsequently deleted from the logged in users table and... |
Forum: PHP Apr 8th, 2009 |
| Replies: 5 Views: 475 Do you want to send the content of the form via email or you just want to establish a connection? |
Forum: PHP Apr 6th, 2009 |
| Replies: 2 Views: 302 Let me try it out.
Thanks |