Search found 191 matches

by WoozyDuck
Sun Apr 17, 2005 3:11 am
Forum: mySQL & php coding
Topic: Find next primary key ...
Replies: 2
Views: 1608

Find next primary key ...

HI all I have a field (int) which is primary key in my table I know it is simple to set it to AUTO_INCREMENT to find out next available one. but I would like to have a calculation to find out the next free one myself. Imaging this is my table: ID Name ---- ---------- 1 Michael 2 Geroge 3 Patrick 4 J...
by WoozyDuck
Fri Apr 15, 2005 9:27 am
Forum: JavaScript
Topic: Change form target ...
Replies: 3
Views: 2630

I have actually used a function to change form.target
cheers
by WoozyDuck
Thu Apr 14, 2005 7:02 am
Forum: JavaScript
Topic: Change form target ...
Replies: 3
Views: 2630

Change form target ...

Hi all

For instance we have a form with BLANK target to show the action in new window. is it possible to change this target dynamicly before clicking the submit button?

I mean is it possible to give the users the option to show the action in SAME WINDOW or NEW WINDOW at one form?
by WoozyDuck
Tue Mar 15, 2005 11:12 pm
Forum: PHP General
Topic: Banned users and changing IP story ...
Replies: 12
Views: 4327

Thanx
Yes, Ive used both IP and COOKIES
but its easy to disable or delete the cookies as well as changing IP!
but thanx for your answer :)
by WoozyDuck
Tue Mar 15, 2005 11:11 pm
Forum: PHP General
Topic: Came from where ?
Replies: 5
Views: 2558

Thanx a lot,
so there is no secure way to find that out then :(
but thanx
by WoozyDuck
Tue Mar 15, 2005 9:06 am
Forum: PHP General
Topic: Came from where ?
Replies: 5
Views: 2558

Came from where ?

Hi all If you have noticed before some programs (like nedstat) can trace user and tell WHERE DOES HE COME FROM to a web site for example in some web site statics tools you can see some people came to your web site from Google, etc. I know this is possible with PHP. I have searched for that but I can...
by WoozyDuck
Fri Mar 11, 2005 11:38 am
Forum: PHP General
Topic: Banned users and changing IP story ...
Replies: 12
Views: 4327

Re: Banned users and changing IP story ...

WiZARD wrote:try send to user cookie..... :o)
Cookie????
That is the easiest way for them to disable!
but thanx for help
I guess there is no way to do that
but making a regsitration system with high security

Thanx
by WoozyDuck
Sun Mar 06, 2005 5:45 am
Forum: PHP coding => General
Topic: Need help with mysql search code!!!
Replies: 11
Views: 3342

Try this one instead :

$Link = mysql_connect($Host, $User, $Password);
$Query="SELECT * from $leftout Where suburb IN $Array[suburb]";
$Result= mysql_db_query ($DBName, $Query, $Link);
by WoozyDuck
Sat Mar 05, 2005 10:32 am
Forum: PHP coding => General
Topic: Need help with mysql search code!!!
Replies: 11
Views: 3342

I think when you are searchin gin SQL database for some ARRAY, you should use IN.
The IN operator may be used if you know the exact value you want to return for at least one of the columns.

Code: Select all

SELECT column_name FROM table_name
WHERE column_name IN (value1,value2,..)
by WoozyDuck
Fri Mar 04, 2005 7:50 am
Forum: PHP General
Topic: Banned users and changing IP story ...
Replies: 12
Views: 4327

Thanx Nikk yes thats what I mean I think there is no way do that instead of making a membership system which will let the users to become a member with verify a email or something so if we bann them from our system they have to use another mail to confirm membership and that wont be hard to do every...
by WoozyDuck
Fri Mar 04, 2005 2:37 am
Forum: mySQL & php coding
Topic: Connect to a database in another web site ...
Replies: 5
Views: 2265

Cheers!
by WoozyDuck
Fri Mar 04, 2005 2:36 am
Forum: PHP General
Topic: Banned users and changing IP story ...
Replies: 12
Views: 4327

Alexei Kubarev wrote:you may even ban a user host in case you want it so that that machine will not be able to come there
Sorry can you please explain more about this?
by WoozyDuck
Fri Mar 04, 2005 2:35 am
Forum: PHP General
Topic: Banned users and changing IP story ...
Replies: 12
Views: 4327

Well the thing is we dont have user membership syetem in our web site!
so we cannot ban any member,
is there any other way to do it?
by WoozyDuck
Thu Mar 03, 2005 2:04 pm
Forum: PHP General
Topic: SUbmit from where ?
Replies: 7
Views: 2783

Yes I was thinking the same thing, well I cant use time cause it will be different any sec, min or hour! Cant use Date though cause it will be change in one sec in the midnight post! Well maybe thats a solution cause that will lose just one sec! But I remember ther was a function for this in PHP! It...
by WoozyDuck
Thu Mar 03, 2005 1:19 pm
Forum: PHP General
Topic: Banned users and changing IP story ...
Replies: 12
Views: 4327

Banned users and changing IP story ...

Hi I have a banned system on my web site which will check user's IP and see if that IP is in banned list in our database and if it is, then he wont let the user to use the web site. This works perfect until they use some other web sites to change their IP to a new one! Then they can enter the web si...
by WoozyDuck
Thu Mar 03, 2005 1:16 pm
Forum: PHP General
Topic: SUbmit from where ?
Replies: 7
Views: 2783

actually that will be a fix string, am I right?
in this case if user make the same textfield with the same string in
his hacking page then he can send message to my web site again!
is that right?
by WoozyDuck
Mon Feb 28, 2005 10:59 am
Forum: PHP General
Topic: SUbmit from where ?
Replies: 7
Views: 2783

nice finger print though
Thanx!
by WoozyDuck
Mon Feb 28, 2005 10:32 am
Forum: mySQL & php coding
Topic: Connect to a database in another web site ...
Replies: 5
Views: 2265

WHat do you mean by readin or writing permission. well that is my own database and I have username and password for that. Can it be a permission or do we need any special permission to read the database from outside the site? For example think our web site is called (http://www.mywebsite.com) Should...
by WoozyDuck
Sun Feb 27, 2005 4:39 pm
Forum: mySQL & php coding
Topic: Connect to a database in another web site ...
Replies: 5
Views: 2265

Connect to a database in another web site ...

HI all

I want to connect to a database in another web site,
normally I use [localhost] as db host,
what kind of address should I use to connect
to the mentioned database?

Cheers
by WoozyDuck
Sun Feb 27, 2005 3:28 pm
Forum: PHP General
Topic: SUbmit from where ?
Replies: 7
Views: 2783

SUbmit from where ?

Hi all

I know there is a function to test if user is submiting a from from a certain page, like you can test if he is using your page to submit the form or any other fake page to do that!

Could anyone please tell me how can we check this?
by WoozyDuck
Thu Feb 24, 2005 11:33 am
Forum: HTML Basics
Topic: What is SHTML?
Replies: 19
Views: 21161

Thanx a lot

Now I understand what is SHTML ...
if you look at [BBC] web site, they name all the pages with SHTML (or stm)
I was wondering what kind of langauge they are using
now I can guess what is that

Thank you again for your answer
by WoozyDuck
Thu Feb 24, 2005 4:23 am
Forum: HTML Basics
Topic: What is SHTML?
Replies: 19
Views: 21161

Nope We cannot! Ive just made a file like this: <html> <head> <title>Something</title> </head> <body> <?php echo ("test"); ?> </body> </html> and I name the file index.shtml but when I run that page on my server it didnt show any result although you cna see the php source code as well! so my questio...
by WoozyDuck
Thu Feb 24, 2005 4:20 am
Forum: HTML Basics
Topic: What is SHTML?
Replies: 19
Views: 21161

Thanx for the answer so you mean we can have some scripts in our normal HTML page and then we change the extension to SHTML so server will scan that file first to see if there is any script ... can we include some PHP script inside our HTML (with the php tags) and then call it SHTML and simply run i...
by WoozyDuck
Wed Feb 23, 2005 6:00 pm
Forum: HTML Basics
Topic: What is SHTML?
Replies: 19
Views: 21161

What is SHTML?

Can anybody tell me please what is SHTML
and HOW CAN WE MAKE that?
by WoozyDuck
Wed Feb 23, 2005 1:13 pm
Forum: JavaScript
Topic: Validate fields (List-Dropdown menu)
Replies: 2
Views: 2376

cheers