Search found 40 matches

by parxal
Thu Jul 08, 2004 9:57 am
Forum: mySQL & php coding
Topic: Mysql search!????
Replies: 1
Views: 593

Mysql search!????

// The form: <form method="POST" action=""> Search Word: <input type="text" name="query"> <input type="SUBMIT" value="Search!"> </form> <? // PHP Search Script $sql = mysql_query("SELECT topico,texto FROM yourtable WHERE topico LI...
by parxal
Tue Jun 22, 2004 6:20 pm
Forum: JavaScript
Topic: need to open a pop up window and then redirect!
Replies: 2
Views: 1813

Thanks

Thanks a lot!
that solved my problem :) keep replying to php-forum , you have done a good job :)
by parxal
Mon Jun 21, 2004 6:32 am
Forum: JavaScript
Topic: need to open a pop up window and then redirect!
Replies: 2
Views: 1813

need to open a pop up window and then redirect!

My php file need to open a pop window and the redirects for another page.

page1.php is called
then popup.htm is open
page1.php redirects for page2.php

Is this possible? any help?
by parxal
Sat Jun 19, 2004 12:34 pm
Forum: PHP coding => General
Topic: Window.open and redirect problem.
Replies: 5
Views: 1272

Window.open and redirect problem.

<html> <head> <script> window.open("http://www.google.com", "bwin", "toolbar,status"); </script> </head> <body> <? header("Location: listar_link.php"); exit; ?> </body> </html> When this page runs i need to open a small window with information...
by parxal
Tue May 25, 2004 12:11 pm
Forum: PHP coding => General
Topic: How to Make a function on an external file?
Replies: 1
Views: 562

How to Make a function on an external file?

a simple function like this: function text(var) { if (var=="teste") { $tex="correct"; } else { $tex="incorrect"; } return $tex; } How can i make an external with it and call this function everytime i need it? Do i need class...
by parxal
Tue May 25, 2004 10:50 am
Forum: PHP coding => General
Topic: Class problem . need help
Replies: 3
Views: 809

uhmm

So a change my class too... class upload { var $ficheiro; function upload($nome) { if (isset( $_FILES['fupload'] ) ) { if (($_FILES['fupload']['type'] == "image/pjpeg") || ($_FILES['fupload']['type'] == "image/png") || &#...
by parxal
Tue May 25, 2004 4:16 am
Forum: PHP coding => General
Topic: Class problem . need help
Replies: 3
Views: 809

Class problem . need help

this is my first class, i want to make a function to use in my php files. so the class: <? class upload { function uploadimagem($nome) { if (isset( $_FILES['fupload'] ) ) { if (($_FILES['fupload']['type'] == "image/pjpeg") || ($_FILES[...
by parxal
Wed May 12, 2004 6:47 am
Forum: PHP coding => General
Topic: cookies problem!
Replies: 4
Views: 1304

uhm

uhm...
I whas thinking to use cookies in a login.
when users make the login a cookie is created and in the other pages tested!
this isn't a good way?
Or sould i use session? or other way?
by parxal
Tue May 11, 2004 5:28 pm
Forum: PHP coding => General
Topic: Redirect problem (Location:)
Replies: 4
Views: 1100

...

i know that, but the last piece of code should work!
by parxal
Tue May 11, 2004 4:09 pm
Forum: PHP coding => General
Topic: Redirect problem (Location:)
Replies: 4
Views: 1100

Redirect problem (Location:)

<?php if ((!$_POST[login]) || (!$_POST[password])) { header("Location: login.htm"); exit; echo "must fill the form"; } ?> This code is suposse to redirect to login.htm, but it doesnt do nothing, the page stands white. I tried this: <?php...
by parxal
Tue May 11, 2004 3:51 pm
Forum: PHP coding => General
Topic: cookies problem!
Replies: 4
Views: 1304

cookies problem!

<?php setcookie("vegetable", "artichoke", time()+3600, "/", "yourdomain.com", 0); ?> <html> <head> <title>Listing 23.6 Setting and printing a cookie value</title> </head> <body> <?php if (isset($_COOKIE[vegetable])) { echo...
by parxal
Wed Jan 28, 2004 4:56 pm
Forum: PHP coding => Mail
Topic: Wrong chars in mail() function
Replies: 1
Views: 1439

Wrong chars in mail() function

The code: On FLash loadVariablesNum("mail.php3", 5, "POST"); <?php mail("xirika@hotmail.com", $subject, $message, "From: beAgency\nReply-To: $from\nX-Mailer: PHP/" . phpversion()); ?> Well it works, but when i receive the mail, chars like ç and ã that exist in the protuguese keyboard are all fucked ...
by parxal
Tue Oct 28, 2003 3:05 pm
Forum: PHP coding => General
Topic: Thanks a lot!
Replies: 1
Views: 578

Thanks a lot!

the first soluction, it's like a multidimensional array! [1] [2] [3] [4] [color] [color] [color] [color] [year] [year] [year] [year] nice solution The class solution was really very good, it made me understand classes thanks a lot! " WORLD PEOPLE - WE NEED MAN'S LIKE THIS ONE"
by parxal
Mon Oct 27, 2003 2:43 pm
Forum: PHP coding => General
Topic: Does php have Struct(c++) or records(parxal) datatype?
Replies: 3
Views: 846

exemple code!

can you make me some exemple code?
thanks
by parxal
Mon Oct 20, 2003 5:23 pm
Forum: PHP coding => General
Topic: Does php have Struct(c++) or records(parxal) datatype?
Replies: 3
Views: 846

Does php have Struct(c++) or records(parxal) datatype?

C++ have this :


struct car {
int year;
char model[15];
};
struct car cararray[10];

cararray[10].year=99;
cararray[10].model='escort';

Is it possible to make a similiar code in php language?
thanks
by parxal
Wed Oct 15, 2003 4:29 pm
Forum: PHP coding => General
Topic: Old question! Making a php forum?
Replies: 2
Views: 976

Old question! Making a php forum?

i think this is an old question, where can i get a tutorial to make a nice forum like this one?
by parxal
Thu Dec 05, 2002 12:15 pm
Forum: PHP coding => General
Topic: auto open and close windows
Replies: 4
Views: 1565

And?

Javascript
window.open("url","name")
window.close()

the question is: Is possible to call a javascript funcion in php?
by parxal
Thu Dec 05, 2002 8:17 am
Forum: PHP coding => General
Topic: auto open and close windows
Replies: 4
Views: 1565

DO tou know the code?

DO tou know the code?
by parxal
Wed Dec 04, 2002 5:28 pm
Forum: PHP coding => General
Topic: auto open and close windows
Replies: 4
Views: 1565

auto open and close windows

Its possible to open a new internet explorer window and close the current one automaticly?, without using links!
by parxal
Mon Dec 02, 2002 4:25 pm
Forum: PHP coding => General
Topic: call php script
Replies: 1
Views: 901

call php script

i have an html and want that html execute a php script
is it possible to call a php script?
by parxal
Mon Dec 02, 2002 10:19 am
Forum: PHP coding => General
Topic: php counter
Replies: 1
Views: 881

php counter

my html have : <script language="javascript" src="http://yourdomain.com/counter.php"></script> my counter.php have <? $log="counter.txt"; $open=@fopen($log,'r+'); $counter=@fread($open,filesize($log)); @fclose($open); $counter++; $write=fopen($log,'w'); fputs($write,$counter); fclose($write); echo "...
by parxal
Mon Dec 02, 2002 8:38 am
Forum: PHP coding => General
Topic: server problem
Replies: 10
Views: 3494

:)

:) thanks! 1º time is hard :P
by parxal
Mon Dec 02, 2002 6:44 am
Forum: PHP coding => General
Topic: poix
Replies: 2
Views: 1120

poix

i tryed
fopen("mail.txt", "a");
and my file is in the same directory that php file is.
and tryed
fopen("http://www.domain.com/mail.txt", "a");
....
by parxal
Mon Dec 02, 2002 5:42 am
Forum: PHP coding => General
Topic: server problem
Replies: 10
Views: 3494

server problem

thanks pejone for the help.
new error:
i am trying to append a text file, and the error is this...

Warning: fopen("mails.dat", "a") - Permission denied in /usr/home/jungli/www/mail.php on line 17
by parxal
Sun Dec 01, 2002 4:24 pm
Forum: PHP coding => General
Topic: Uploading php to a server
Replies: 2
Views: 1442

Uploading php to a server

My web server provider tell me to put my http pages in WWW directory and to put php pages in CGI directory, i have done this. but php pages are not working, not being find. i made the code like -> form action="mail.php" is this correct? or i have to put something like that action="//cgi/mail.php"?? ...