Showing results 1 to 40 of 61
Search took 0.01 seconds; generated 3 minute(s) ago.
Posts Made By: Eko
Forum: JavaScript / DHTML / AJAX 32 Days Ago
Replies: 1
Views: 686
Posted By Eko
Re: Jquery : get elements by index from the wrapper set

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 everytime...
Forum: JavaScript / DHTML / AJAX 33 Days Ago
Replies: 1
Views: 686
Posted By Eko
Jquery : get elements by index from the wrapper set

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: 6
Views: 1,370
Posted By Eko
Re: warning C4305: '=' : truncation from 'double' to 'float'

This helped a lot , thanks Aia . You're great .
Forum: C Mar 15th, 2008
Replies: 6
Views: 1,370
Posted By Eko
warning C4305: '=' : truncation from 'double' to 'float'

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: 1
Views: 288
Posted By Eko
Help Re: Better way to program these if/else statements?

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: 503
Posted By Eko
Re: phpbb mod

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: 503
Posted By Eko
phpbb mod

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: 1,297
Posted By Eko
Re: Pull info from gas price websites?

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/");

$gasprice =...
Forum: PHP Sep 16th, 2007
Replies: 13
Views: 1,036
Posted By Eko
Re: HTML In Mail

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: 651
Posted By Eko
Re: Find & Insert Part of urlQuery value?

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: 2,066
Posted By Eko
Re: Comparing two arrays problem

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: 1,725
Posted By Eko
Re: How to insert image in MySQL.......

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: 837
Posted By Eko
Re: Mail to a list of people

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 familiar with...
Forum: PHP Aug 22nd, 2007
Replies: 8
Views: 934
Posted By Eko
Re: Login Page problems

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: 3,029
Posted By Eko
Re: what's wrong in this code?

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: 1,739
Posted By Eko
Help Keeping track of the checkboxes selected acrros the page

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: 514
Posted By Eko
Re: I want to take information about songs and albums from other web sites...how ?

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 found...
Forum: PHP Jul 31st, 2007
Replies: 7
Views: 793
Posted By Eko
Forum: PHP Jul 31st, 2007
Replies: 5
Views: 1,962
Posted By Eko
Re: how to create a link in php?

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: 752
Posted By Eko
Re: URL with query is not working...

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,121
Posted By Eko
Re: Need a good C++ book

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,121
Posted By Eko
Re: Need a good C++ book

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,121
Posted By Eko
Re: C++ Books

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,017
Posted By Eko
Re: Very strange

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,017
Posted By Eko
Re: Very strange

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,017
Posted By Eko
Very strange

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...
Forum: C++ Apr 13th, 2007
Replies: 3
Views: 1,829
Posted By Eko
Re: operator - (minus) overloading problem

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: 1,829
Posted By Eko
Help operator - (minus) overloading problem

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 operator...
Forum: Networking Hardware Configuration Mar 23rd, 2007
Replies: 4
Views: 1,041
Posted By Eko
Re: 2 desktops home network

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,041
Posted By Eko
2 desktops home network

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: 4,250
Posted By Eko
Re: gets() problem in C

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: 3,404
Posted By Eko
Re: Can a function return 2 values?

You were right.It was that time variable :cheesy:

Thanks Ancient Dragos,Ravalon
Forum: C Jan 21st, 2007
Replies: 8
Views: 3,404
Posted By Eko
Re: Can a function return 2 values?

#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: 3,404
Posted By Eko
Re: Can a function return 2 values?

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: 3,404
Posted By Eko
Re: Can a function return 2 values?

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: 3,404
Posted By Eko
Can a function return 2 values?

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: 1,770
Posted By Eko
Re: Memory reallocation

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 :...
Forum: C Jan 3rd, 2007
Replies: 14
Views: 1,770
Posted By Eko
Re: Memory reallocation

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 be...
Forum: C Jan 3rd, 2007
Replies: 14
Views: 1,770
Posted By Eko
Re: Memory reallocation

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: 1,770
Posted By Eko
Re: Memory reallocation

This is what I got so far

#include <iostream>

using namespace std;

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

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