Search found 1716 matches

by gesf
Wed Sep 17, 2003 11:59 am
Forum: HTML Basics
Topic: PHP WML POSTGRESQL
Replies: 1
Views: 2675

Hi there! Well...by the date i´m think you´ve already fix the bug. I gave the same answer in this post: http://www.php-forum.com/p/viewtopic.php?t=1806 I just don´t have sure if php i´ll get already the variables(It´s from an example a have), because i have i problem, and i think you can help me: I ...
by gesf
Wed Sep 17, 2003 8:20 am
Forum: PHP coding => General
Topic: wap & php
Replies: 2
Views: 1289

Try replacing the method "get" with "post" on the "go" tag.

If it doesn´t work,
try replace your complete "do" tag with this:

Code: Select all

<anchor title="title">submit
	<go href="index.php" method="post">
	</go>
</anchor>
by gesf
Fri Aug 08, 2003 7:39 am
Forum: PHP coding => General
Topic: Cookies
Replies: 3
Views: 960

Hey swirlee. The cookie update is now working. The cookie was not working because of that $skin variable. It was the same as the cookie name and another one that i´m using in another code, to check the requested skin. That´s why it doesn´t work. You can now see it working: view default skin (1) - vi...
by gesf
Thu Aug 07, 2003 11:14 pm
Forum: PHP coding => General
Topic: Cookies
Replies: 3
Views: 960

Cookies

hi. I´m making a 'change skin' script for my site and i´m using php cookies. This is the code i´m using to set the cookie: // This cookie will expire after 30 days. <? if (isset($skin)) { setcookie ("skin","$skin",time()+60*60*24*30,"/",getenv("HTTP_HOST")); } $place = $_SERVER['HTTP_REFERER']; head...
by gesf
Thu Jun 12, 2003 2:45 am
Forum: mySQL & php coding
Topic: Mysql executing the content in a field!?
Replies: 5
Views: 1866

I´m not insert info and creting a table at the same time! That "CREAT TABLE code", is from the tutorial that i am inserting, that´s why i´m saying that it´s executing the info that i am inserting. I think that the problem is here: ' '. When it is updating the value, it generate an error when it find...
by gesf
Wed Jun 11, 2003 12:36 pm
Forum: mySQL & php coding
Topic: Mysql executing the content in a field!?
Replies: 5
Views: 1866

Sorry WiZARD, i forgot that! Ok, here goes: // It gives me the same error with an update or an insert command! 1º: // I´m just inserting the name of the tutorial "test" and the content Error in MySQL-Query in query: INSERT INTO tutorials VALUES ("", "0", "test", "", "", "", " //CREATE TABLE guestboo...
by gesf
Tue Jun 10, 2003 3:38 pm
Forum: mySQL & php coding
Topic: Mysql executing the content in a field!?
Replies: 5
Views: 1866

Mysql executing the content in a field!?

Hi guy. I made a script to my tutorials section. All the information is in a db. So i have to save the tutorials code in the db. But when i saving something like an guestbook code that include mysql command, i´t gives me an error, as if it was to execute the code of the tutorial that I am saving. Th...
by gesf
Mon Jun 09, 2003 9:14 pm
Forum: mySQL & php coding
Topic: Go to next and previous record
Replies: 9
Views: 3237

Hi

Maybe this helps... here goes: <?php $result = mysql_query("SELECT * FROM table"); $show = 10; // Define the number of showed pages $total = mysql_num_rows($result); // return total rows $pages = ceil($total / $show); // return total pages if(!isset($page)) { $page = 0; } /* if there´s no action for...
by gesf
Sun Mar 23, 2003 1:37 am
Forum: PHP coding => General
Topic: filters naughty words
Replies: 2
Views: 1354

hey robbied. I´m bad in English and not a pro in php. I´ve just made a mix with some codes. Hope it helps. // Your file $file="your file here"; // The bad and the respective censored word $badword = "blabla"; $censorword = "bl***a"; // To search in the file $result = explode($badword); // Open file ...
by gesf
Tue Feb 11, 2003 1:09 pm
Forum: PHP & MySQL Security
Topic: show(print) value from the database
Replies: 2
Views: 2856

Thanks a lot Mixamajic.
by gesf
Sat Feb 08, 2003 12:12 pm
Forum: PHP & MySQL Security
Topic: show(print) value from the database
Replies: 2
Views: 2856

show(print) value from the database

Hi Can anyone tell how can i show(print) a value from my db? my field is int(10) and and using this code to show what is inside: $test = mysql_query("SELECT myfield FROM mytable WHERE id = '1'"); echo "$test"; But it show '4' and not the value that is in that field. I wanna know too, how can i show ...
by gesf
Thu Jan 02, 2003 5:46 am
Forum: PHP coding => General
Topic: replace break lines in string
Replies: 7
Views: 2371

hey Pejone thanks,but i´d try all those examples but nothing. It doesn´t work. I don´t know what to do! I´ll keep trying!
by gesf
Thu Jan 02, 2003 3:07 am
Forum: PHP coding => General
Topic: replace break lines in string
Replies: 7
Views: 2371

Hi guys. I have the oposite problem. I have a php forum and it doesn´t replace enter key with <br>... it writes <br>. I use: $text = str_replace("\n","<br>",$text);. In my case, i have already try the way u say Pejone, but it dosn´t work. I don´t know why it doesn´t work. My shoutbox have the same c...
by gesf
Sun Dec 29, 2002 11:34 pm
Forum: PHP coding => General
Topic: calling a variable from other php file.
Replies: 2
Views: 1723

Yep...that´s the better way. I´m gonna try to do with writing in a file first...i don´t know work with sessions ! :(
Thanks DecoRJ.
C ya
by gesf
Sun Dec 29, 2002 7:14 am
Forum: PHP coding => General
Topic: calling a variable from other php file.
Replies: 2
Views: 1723

Hunn, no... it will not work that way. I can´t include the openner file "index". this file have so much things and i just need to pass the information of some variabels, and not the complete file. Is there some way to call some vars without calling the complete file? i don´t... specifying: first -fi...
by gesf
Sun Dec 29, 2002 5:28 am
Forum: PHP coding => General
Topic: calling a variable from other php file.
Replies: 2
Views: 1723

calling a variable from other php file.

hi guys. Can anyone tell how can i call a variable from other php file? I making some changes in my forum and i´m making a system to send msgs by icq if the user have it. Well, but the form to send that msgs is open in a new window, but a need to send for the form of the new window, the information ...