Forum: Ruby 34 Days Ago |
| Replies: 1 Views: 499 |
Forum: Ruby Jun 8th, 2008 |
| Replies: 13 Views: 5,402 |
Forum: Python May 4th, 2008 |
| Replies: 4 Views: 347 Re: elif structure print "Your choices are: "
print "1) Play"
choice = raw_input("Choose your option(1) ")
loop = 1
if choice == '1':
dir_list = ['N','S','E','W']
print "Your on an adventure to find the... |
Forum: Python May 4th, 2008 |
| Replies: 4 Views: 347 Re: elif structure Yes, it's indention problem.
print "1) Play"
if choice == 1:
ways = ['L','R','S']
ways = raw_input("Which way do you want to go(L,R,S)?: ")
elif direction == 'L':
print "You have... |
Forum: PHP Apr 26th, 2008 |
| Replies: 1 Views: 147 |
Forum: Python Apr 24th, 2008 |
| Replies: 2 Views: 164 |
Forum: Python Apr 21st, 2008 |
| Replies: 6 Views: 407 |
Forum: Python Apr 20th, 2008 |
| Replies: 6 Views: 407 |
Forum: Python Apr 20th, 2008 |
| Replies: 6 Views: 407 Re: Advanced Sorting Hi.
If you have a list like that :
listunsorted = ['3 text_red','7 text_yellow','9 text_blue', '1 text_pink','3 text_black','6 text_orange','7 text_white']
... you can sort it like this... |
Forum: PHP Jan 28th, 2008 |
| Replies: 4 Views: 489 |
Forum: PHP Jan 28th, 2008 |
| Replies: 3 Views: 2,037 Re: is the checkbox checked? Hi.
You have to check if the value of the checkbox is set by isset (http://bg2.php.net/isset) function for example :
Sport : <input type="checkbox" name="sport" value="football" />
<?php
if... |
Forum: PHP Jan 13th, 2008 |
| Replies: 2 Views: 331 |
Forum: Web Developers' Lounge Jan 11th, 2008 |
| Replies: 7 Views: 808 |
Forum: PHP Jan 11th, 2008 |
| Replies: 22 Views: 1,114 Re: Need Help Hi.
So, why don't you make such kind of query statement ? |
Forum: PHP Jan 11th, 2008 |
| Replies: 6 Views: 566 Re: PHP Mysql "Where" statement Hi again.
I cannot understand what's the problem to add WHERE clause to the queries ? $query = " SELECT ........ FROM table WHERE Product_Category = 'Acoustic treatment'; " |
Forum: PHP Jan 11th, 2008 |
| Replies: 6 Views: 566 Re: PHP Mysql "Where" statement Hi.
Is this the query you want to edit and put WHERE caluse :
$sql = "SELECT `Product_Name`, `Product_Description`, `Product_Picture`, `Product_price`, `Product_Category`, `Product_Pdf`,... |
Forum: PHP Jan 11th, 2008 |
| Replies: 8 Views: 550 Re: validation Hi.
I use this function to validate name in my forms :
function valName($name)
{
$name = preg_replace(β/[\s]+/isβ, β β, $name);
$name = trim($name);
return... |
Forum: PHP Jan 10th, 2008 |
| Replies: 3 Views: 487 |
Forum: PHP Jan 3rd, 2008 |
| Replies: 1 Views: 423 Re: tpl files Hi.
Tpl is extension used by Smarty and not only for web templates. Go to Smarty to see examples what template engine is.
http://www.smarty.net/
http://en.wikipedia.org/wiki/Web_template |
Forum: PHP Dec 30th, 2007 |
| Replies: 2 Views: 446 |
Forum: PHP Dec 30th, 2007 |
| Replies: 5 Views: 480 Re: Restricting access to a page Hi.
Here is two simple ways to do this :
First way is to use .htaccess file :
deny from 111.222.333.444
deny from 222.333.444.555
Second way is php code : |
Forum: PHP Dec 29th, 2007 |
| Replies: 3 Views: 822 Re: PHP Self? Hi.
You can do this like this :
<?php
$file = $_GET['t'].".php";
include ($file);
?> |
Forum: Web Developers' Lounge Dec 29th, 2007 |
| Replies: 2 Views: 1,074 Re: Django vs. Rails ... Hi guys.
I've just watched 'Snakes and Rubies (http://www.djangoproject.com/snakesandrubies/)" , read many articles and still cannot choose my new framework.
Please, assist :-/ |
Forum: PHP Dec 28th, 2007 |
| Replies: 1 Views: 716 PHP class for manipulating xls ( MS Excel ) ? Hi folks.
I wonder if some of you has worked with xls class for manipulating spreadsheets with PHP.
The thing is that I have to get some values from 5 or 6 files and put them in HTML tables.
Thanks... |
Forum: PHP Dec 27th, 2007 |
| Replies: 1 Views: 429 Re: Php Mvc http://en.wikipedia.org/wiki/Model-view-controller
http://www.symfony-project.org/
http://www.cakephp.org/ |
Forum: Web Developers' Lounge Dec 25th, 2007 |
| Replies: 2 Views: 1,074 Django vs. Rails ... Hi folks.
I made some research on Rails vs. Django, but I didn't come to conclusion which is better to learn.
Basically I don't know either Ruby or Python. RoR became very popular last year, has... |
Forum: PHP Dec 13th, 2007 |
| Replies: 2 Views: 1,046 |
Forum: PHP Dec 13th, 2007 |
| Replies: 2 Views: 367 |
Forum: PHP Dec 6th, 2007 |
| Replies: 13 Views: 698 Re: Form I think that you are not new to php, in fact I think you don't want to learn PHP. If I'm wrong show us some effort, not just "ask code". |
Forum: PHP Dec 5th, 2007 |
| Replies: 2 Views: 382 |
Forum: PHP Dec 5th, 2007 |
| Replies: 6 Views: 2,735 Re: Create HTML Table with Dynamic Rows And what format do you exactly want ?
picture1 | picture2 | picture3
==================
lablel1 | label2 | label3
==================
Three pictures in row next the three labels and next pictures... |
Forum: PHP Dec 5th, 2007 |
| Replies: 4 Views: 770 Re: Passing VRB's within HTML href tag I used for date '2007-12-12' and for shift 'R' :
<?php
$date='2007-12-12';
$shift='R';
$shift_table=$shift."_shift_duties";
$fileDir="TOP".$shift."Shiftlog";
$fileID=$date."_".$shift."shift.rtf"; |
Forum: PHP Dec 5th, 2007 |
| Replies: 6 Views: 2,735 Re: Create HTML Table with Dynamic Rows Hi.
How can you expect to see "label" if in your code there is no $row['label'] for example.
I mean you print only $rows['FileDirectory'] and $rows['Graphic'] extracted form DB as I can see.
Show... |
Forum: PHP Dec 5th, 2007 |
| Replies: 4 Views: 770 Re: Passing VRB's within HTML href tag Hi.
Here you forgot to put ; ...
$fileDir="TOP".$shift."Shiftlog"
This is working, but I don't know what exactly do you want :
echo"<a href='file:///N:/$fileDir/$fileID'>Link to text... |
Forum: PHP Dec 2nd, 2007 |
| Replies: 3 Views: 333 |
Forum: PHP Dec 2nd, 2007 |
| Replies: 10 Views: 1,319 Re: Help beta testing new CMS Very simple so for but fast. Keep coding ...
Have you thought using SQLite as serveless DB ?
Tested on Windwos Vista Home Premium
Apache 2.2.6
PHP 5.2.5 |
Forum: PHP Nov 30th, 2007 |
| Replies: 5 Views: 443 Re: Question The actual day or date ?
Current date : $today = date('Y-m-d');
echo $today; // This will print for example 2007-11-30
Current day : $today = date('d');
echo $today; // This will print for example... |
Forum: PHP Nov 30th, 2007 |
| Replies: 4 Views: 559 Re: html vs. php Hi.
You cannot compare those two.
PHP is server-side programming language, providing dynimic web content. |
Forum: PHP Nov 21st, 2007 |
| Replies: 3 Views: 1,535 Re: how to send attachment file This is easy to use and install ( only copy and paste file and include it in your script ) powerfull class, but you if want to write it by yourself you've got to play with the the headers ->... |
Forum: PHP Nov 21st, 2007 |
| Replies: 3 Views: 463 |