User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 402,559 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,290 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 40 of 138
Search took 0.01 seconds.
Posts Made By: MitkOK
Forum: Ruby 34 Days Ago
Replies: 1
Views: 499
Posted By MitkOK
Re: SyntaxError in SayController#hello

Dude, are you actually looking at your code to find the error ?

class SayController < ApplicationController
def hello
end
end
Forum: Ruby Jun 8th, 2008
Replies: 13
Views: 5,402
Posted By MitkOK
Re: Ruby and non-web development

I'm with you guys, Ruby must be in one forum with Python and Perl.
But no one from the admins here will notice that :(.
Forum: Python May 4th, 2008
Replies: 4
Views: 347
Posted By MitkOK
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
Posted By MitkOK
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
Posted By MitkOK
Re: Using custom made programs?

Why don't you write little php script about this operation and executed on the server ?
Forum: Python Apr 24th, 2008
Replies: 2
Views: 164
Posted By MitkOK
Re: count how often a button is clicked python/tk

click=0
def button_clicked():
global click
click=click+1
print click
Forum: Python Apr 21st, 2008
Replies: 6
Views: 407
Posted By MitkOK
Re: Advanced Sorting

I've just started learning Python :icon_cool:
Forum: Python Apr 20th, 2008
Replies: 6
Views: 407
Posted By MitkOK
Re: Advanced Sorting

You're welcome.
PS: My name is Mitko ;)
Forum: Python Apr 20th, 2008
Replies: 6
Views: 407
Posted By MitkOK
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
Posted By MitkOK
Re: Set cookies at start of the website

http://www.w3schools.com/php/php_cookies.asp
Forum: PHP Jan 28th, 2008
Replies: 3
Views: 2,037
Posted By MitkOK
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
Posted By MitkOK
Re: Using Primary Keys in php/mysql

http://dev.mysql.com/doc/refman/5.0/en/getting-unique-id.html
Forum: Web Developers' Lounge Jan 11th, 2008
Replies: 7
Views: 808
Posted By MitkOK
Re: Web host suggestions, anyone?

Dude, fix your web site and then offer services ;)
Forum: PHP Jan 11th, 2008
Replies: 22
Views: 1,114
Posted By MitkOK
Re: Need Help

Hi.

So, why don't you make such kind of query statement ?
Forum: PHP Jan 11th, 2008
Replies: 6
Views: 566
Posted By MitkOK
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
Posted By MitkOK
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
Posted By MitkOK
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
Posted By MitkOK
Re: i want to start programing in PHP,pls. help

Hi.

If you don't want to download, install and configure Apache, PHP and MySQL go for WAMP ( Windows ) or XAMPP ( Windows, Linux, Mac OS, Solaris ).

The best resource for PHP is still...
Forum: PHP Jan 3rd, 2008
Replies: 1
Views: 423
Posted By MitkOK
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
Posted By MitkOK
Re: Formatting text area

http://bg.php.net/function.trim
Forum: PHP Dec 30th, 2007
Replies: 5
Views: 480
Posted By MitkOK
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
Posted By MitkOK
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
Posted By MitkOK
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
Posted By MitkOK
Question 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
Posted By MitkOK
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
Posted By MitkOK
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
Posted By MitkOK
Re: Insert link button

http://tinymce.moxiecode.com/
Forum: PHP Dec 13th, 2007
Replies: 2
Views: 367
Posted By MitkOK
Re: Dynamic graphs

http://www.aditus.nu/jpgraph/
Forum: PHP Dec 6th, 2007
Replies: 13
Views: 698
Posted By MitkOK
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
Posted By MitkOK
Re: adding php scrips ?????

<?php

// your code here

?>
Forum: PHP Dec 5th, 2007
Replies: 6
Views: 2,735
Posted By MitkOK
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
Posted By MitkOK
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
Posted By MitkOK
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
Posted By MitkOK
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
Posted By MitkOK
Re: Where??? HELP!!

http://php.net
Forum: PHP Dec 2nd, 2007
Replies: 10
Views: 1,319
Posted By MitkOK
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
Posted By MitkOK
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
Posted By MitkOK
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
Posted By MitkOK
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
Posted By MitkOK
Re: My first post - help with Email

Mistake, please delete post.
Showing results 1 to 40 of 138

 
All times are GMT -4. The time now is 9:30 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC