Search Results

Showing results 1 to 40 of 61
Search took 0.01 seconds.
Search: Posts Made By: Eko
Forum: JavaScript / DHTML / AJAX Oct 19th, 2008
Replies: 1
Views: 4,183
Posted By Eko
I found out what the problem is .

When getting an element from the wrapper set ( by index array notation or by get(index ) ), it returns a javascript element , NOT a jquery object and thus...
Forum: JavaScript / DHTML / AJAX Oct 18th, 2008
Replies: 1
Views: 4,183
Posted By Eko
Hey guys ,

While playing with jquery i've come across the following situation :



$(document).ready(function(){

$("div")[0].css("background-color","blue");
});
Forum: C Mar 15th, 2008
Replies: 7
Views: 4,289
Posted By Eko
This helped a lot , thanks Aia . You're great .
Forum: C Mar 15th, 2008
Replies: 7
Views: 4,289
Posted By Eko
Hi guys ,

In Visual Studio 2005 I compiled the following code

int main()
{
float a;
a=0.1;

if(a<0.1)
Forum: PHP Nov 29th, 2007
Replies: 2
Views: 489
Posted By Eko
I assume you have a single form , with lots of input of type checkbox.
In this case , what you can do to avoid the if/else avalanche is to loop through the $_POST array , and make a single if...
Forum: PHP Oct 2nd, 2007
Replies: 3
Views: 730
Posted By Eko
No , I just needed a very simple post quick reply implementation on the viewtopic.php in phpbb 2.0
I found a mod that does exactly what I need .Stupid me , I googled for "short message reply" mod ,...
Forum: PHP Oct 1st, 2007
Replies: 3
Views: 730
Posted By Eko
How can I have a post quick reply textarea , just like the one on daniweb , in a phpbb 2.0 ?
Do you know/have a mod that does that ?
Forum: PHP Sep 18th, 2007
Replies: 7
Views: 2,109
Posted By Eko
This code gets the today's gas price
It's easy to get it on this site because the price is placed between a span with the id "GBPS_lblUSToday"

$arr = file("http://www.gasbuddy.com/");
...
Forum: PHP Sep 16th, 2007
Replies: 13
Views: 1,508
Posted By Eko
in the $header,make sure you have a space after From:

$headers="From: Mycompany asdfa@asfa.com";
Forum: PHP Sep 16th, 2007
Replies: 3
Views: 931
Posted By Eko
If the user input is ,for example "house Seattle job" and you wanna get the Seattle word, you can do this with explode http://www.php.net/manual/en/function.explode.php

php if($_GET['KEY'] == "")...
Forum: PHP Sep 8th, 2007
Replies: 1
Views: 4,521
Posted By Eko
U can use the array_search() function
http://www.php.net/array_search
Make sure u use the "===" for comparising.
It should look something like this :

if ($NewVersionFlag==0)
{
$i=0;
...
Forum: PHP Aug 26th, 2007
Replies: 4
Views: 2,800
Posted By Eko
Dude , have you read at least one php book ????

Inserting images in MySql it's possible by using a BLOB column , but is very very inefficient
It takes a lot of space , thus slowing down the...
Forum: PHP Aug 22nd, 2007
Replies: 6
Views: 1,266
Posted By Eko
Some advice :
1.Always test if the file exists , first :

if(!file_exists("to.txt"))
die("File could not be found");
2.

$names[$x] = fgets($sub);
$x++;
I assume you are...
Forum: PHP Aug 22nd, 2007
Replies: 8
Views: 1,425
Posted By Eko
LOL
It's because on your laptop you have a database with a table admin(or whatever you name it ) which contains the info to be checked when a user tries to log in .

When you take your script on...
Forum: PHP Aug 22nd, 2007
Replies: 29
Views: 4,198
Posted By Eko
Are you sure you don't have a closing php tag( ?> ) somewhere ?
Type phpinfo(); at the line where it crashes ,to see if the interpreter works at that point( although I'm pretty sure it won't)
Forum: PHP Aug 7th, 2007
Replies: 0
Views: 2,706
Posted By Eko
I have a list of users(signed for a newsletter).I'm retrieving the list from a database when the admin clicks on a button.
There are maximum 10 users diplayed per page.For example,if I had 30 users...
Forum: PHP Aug 2nd, 2007
Replies: 2
Views: 702
Posted By Eko
First of all , you must get the hole html content of the page in an array.U can do that with the file() function an example :

$arr=file('http://www.yahoo.com');
Grabs all the content...
Forum: PHP Jul 31st, 2007
Replies: 7
Views: 1,134
Posted By Eko
Forum: PHP Jul 31st, 2007
Replies: 5
Views: 6,193
Posted By Eko
This is a very famous error in php . If you echo something , before the header function you'll get an error because the "channel" was occupied by echo.You need to put the header before any echo's or...
Forum: PHP Jul 9th, 2007
Replies: 6
Views: 1,069
Posted By Eko
It's better if you leave it off . Imagine how easy is for someone to hack your code .This is the reason why the developers set the register_globals off by default from php 4.2 . Instead u can use...
Forum: C++ Jun 6th, 2007
Replies: 9
Views: 1,476
Posted By Eko
My teacher wrote that sample code , and yes,is bad formatted,but he's not so bad ; at class , he explaines very well and he's one of the few teachers who really knows about modern programming

...
Forum: C++ Jun 5th, 2007
Replies: 9
Views: 1,476
Posted By Eko
I need a book with tests, like : "Find the error in the code bellow",something like that . The c++ exam,i'll have to take, consists of trick questions , this is an example :


What's the error?...
Forum: C++ Jun 2nd, 2007
Replies: 9
Views: 1,476
Posted By Eko
I'm looking for a C++ book with exercices(solved),practice or something like "tips and trips of c++ language" cause I need to prepare for the exam.
If someone know's a kind of this book , pls...
Forum: PHP May 9th, 2007
Replies: 5
Views: 1,349
Posted By Eko
I've used wamp 1.5.0 , 1.5.0.a , 1.7.1 , 1.4.2
All of them have the short_open_tag = Off by default , and I guess that all future versions will have this as well
It can be really frustrating.
They...
Forum: PHP May 9th, 2007
Replies: 5
Views: 1,349
Posted By Eko
Hey thanks :) It worked . You we're right ,it was that short_hand thing.

You're the best
Forum: PHP May 8th, 2007
Replies: 5
Views: 1,349
Posted By Eko
The following cod,when I press the SUBMIT button , I get "Forbidden, You don't have permission to access /< on this server."


<html>
<head>
<title> The Internet Joke Database </title>
</head>...
Forum: C++ Apr 13th, 2007
Replies: 3
Views: 2,892
Posted By Eko
As Snoop Dog would said , fo'shizzle :cool:

Here's the header file :


#ifndef SET_H
#define SET_H

#include <iostream>
Forum: C++ Apr 13th, 2007
Replies: 3
Views: 2,892
Posted By Eko
I have a class , named Set,and I want to overload the operator - so I can get the difference between 2 Set object.
i.e. A={1,2,3,4} , B={ 3,4,5,6} , A-B={1,2}

In header file I declared the...
Forum: Networking Hardware Configuration Mar 23rd, 2007
Replies: 4
Views: 1,457
Posted By Eko
It was the cable , a few wires weren't entirely in contact with the pins of the RJ-45 connector
Forum: Networking Hardware Configuration Mar 19th, 2007
Replies: 4
Views: 1,457
Posted By Eko
I have 2 desktops ,with 3 network cards and Win XP.I want to connect them so i can share my files and internet connection,only that I'm getting "A network cable is unplugged".
I did everything :...
Forum: C Jan 21st, 2007
Replies: 28
Views: 6,036
Posted By Eko
U forgot to put the ampersand at age.It should look like this scanf("%d",&age)
btw,u might wanna declare variable age first.
Forum: C Jan 21st, 2007
Replies: 8
Views: 6,711
Posted By Eko
You were right.It was that time variable :cheesy:

Thanks Ancient Dragos,Ravalon
Forum: C Jan 21st, 2007
Replies: 8
Views: 6,711
Posted By Eko
#include <stdio.h>
#include <time.h>
#include <dos.h>

int foo()
{
int x=0;
while(x<1000000)
x++;
return x;
Forum: C Jan 21st, 2007
Replies: 8
Views: 6,711
Posted By Eko
Well for the second example , I get " error C2064: term does not evaluate to a function taking 1 arguments" at the start and end temp(0) :sad:
Forum: C Jan 21st, 2007
Replies: 8
Views: 6,711
Posted By Eko
After you said , at the first method ,i came up with this:

#include <stdio.h>
#include <time.h>


int foo( clock_t* time)
{
int x=0;
while(x<1000000000)
Forum: C Jan 21st, 2007
Replies: 8
Views: 6,711
Posted By Eko
I have one or more functions separate from main() , that besides the return value , must also return the time it tooked to process.
How can I do that ?
Forum: C Jan 9th, 2007
Replies: 14
Views: 2,463
Posted By Eko
Well,the hole project is strongly recommended for the use of static allocation and the insert ,delete must be made as a circular queue .
So i got a circular queue :


#include<stdio.h>...
Forum: C Jan 3rd, 2007
Replies: 14
Views: 2,463
Posted By Eko
I've chose to use an array just so i can make it easier.

Imagine this : You have 3 different arrays,separate from each other.
Let's say we must get a product name from the user(product name will...
Forum: C Jan 3rd, 2007
Replies: 14
Views: 2,463
Posted By Eko
Almost.The free space when one part gets full,is associated to the full one,thus increasing in size .In other words the data inserted into the free space when one part is full , becomes part of the...
Forum: C Jan 3rd, 2007
Replies: 14
Views: 2,463
Posted By Eko
This is what I got so far

#include <iostream>

using namespace std;

int main()
{
int v[90];
Showing results 1 to 40 of 61

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC