Search found 79 matches

by php12342005
Mon Jul 25, 2005 9:12 am
Forum: PHP - Code
Topic: executing process of php file
Replies: 3
Views: 186

executing process of php file

as I know (not sure), a php file is always re-executed from first line to last line after user presses a submit button - is this right? for example, I add following code in a php file: <?php if(isset($_POST['form_Submit'])) { //something } ?> //more html code here which includes a form with submit b...
by php12342005
Mon Jul 25, 2005 4:30 am
Forum: PHP - Code
Topic: how to display a message box in php (newbie)?
Replies: 2
Views: 454

how to display a message box in php (newbie)?

hi all, could you show me php code to display a message box (similar to alert("..") function in html)? E.g. <?php if(isset($_POST['form_Submit'])) { alert('Is sent by submit button');//message box } ?> acturally, my purpose is for contacting to mysql, if the user doesn't exist, php will sh...
by php12342005
Mon Jul 25, 2005 4:18 am
Forum: PHP - Code
Topic: a question about php forum
Replies: 4
Views: 197

thanks for all,
i will test phpBB soon.
by php12342005
Sun Jul 24, 2005 8:31 am
Forum: PHP - Code
Topic: a question about php forum
Replies: 4
Views: 197

a question about php forum

hi all, I need to create a php forum for customers. I want to know if there are free packages (such as a software or similar) which can auto generate a php forum for us, so we do not need to spend time to create php code for the forum ourself? I think there must be some packages of this kind on the ...
by php12342005
Sun Jul 24, 2005 7:24 am
Forum: Databases
Topic: a stupid question about backup and recover mysql database
Replies: 2
Views: 234

a stupid question about backup and recover mysql database

I test to backup my database - download to my PC as a file (host does this), i.e. main.gz. questions: 1. what does a gz file mean? is it just a compressed file? is it readable (undestood) by us? can I view TABLEs, FIELDs and data from the gz file? 2. how to recover my database from the main.gz file?...
by php12342005
Sat Jul 23, 2005 11:59 am
Forum: PHP - Code
Topic: character Tab in php and C++
Replies: 7
Views: 700

is code this way?
print("hello \n");
print("hello \n");

but output is the same.
(&#09 with a semi-colon can not be desplayed)
by php12342005
Sat Jul 23, 2005 11:39 am
Forum: PHP - Code
Topic: character Tab in php and C++
Replies: 7
Views: 700

Hi, I tested your comment: add php code: ----------------------------- print("hello&#09&#09&#09\n"); print("hello&#09&#09&#09\n"); output is ----------------- hello hello You see, only one space character between 2 "hello"s I think the space char...
by php12342005
Sat Jul 23, 2005 11:24 am
Forum: PHP - Code
Topic: character Tab in php and C++
Replies: 7
Views: 700

character Tab in php and C++

I am wondering if such characters can be used in php, which can be used in C++:

characters:
Tab: \t
Line break: \n
etc.

I have to use <br> for \n (it works).
But what TAG or something are similar to \t in php?

\t is useful for displaying (echo or print) text nicer.

thanks
by php12342005
Sat Jul 23, 2005 11:15 am
Forum: PHP - Code
Topic: a stupid question about mysql database
Replies: 7
Views: 590

Thanks to all,
I asked my host and fixed the problem.
correct syntax is
$connection=mysql_connect("",$dbuser,$psuser);
I must use "" to connect!
do you think it is strange?
by php12342005
Sat Jul 23, 2005 4:17 am
Forum: PHP - Code
Topic: a stupid question about mysql database
Replies: 7
Views: 590

here is error code (by $iphost:

Warning: mysql_connect(): Access denied for user: 'my.com@venus.addaction.net' (Using password: YES) in /home/my/public_html/php/php00/test00.php on line 10
Access denied for user: 'my.com@venus.addaction.net' (Using password: YES)
by php12342005
Sat Jul 23, 2005 4:08 am
Forum: PHP - Code
Topic: a stupid question about mysql database (2)
Replies: 2
Views: 281

a stupid question about mysql database (2)

assume a table have data.
will the table loss data if i drop or add a field to the table (except field dropped)?

E.g. Fied UserInfo contains many user names (data), if I add or drop another field (i.e. place), does data of user names in field UserInfo loss?

Thanks
by php12342005
Sat Jul 23, 2005 3:57 am
Forum: PHP - Code
Topic: a stupid question about mysql database
Replies: 7
Views: 590

a stupid question about mysql database

hi all, assume my web-site is http://www.my.com ip address is 33.22.111.444 I created a database my_main and add an user my_user0 with password my_pswd0 to the database. mysql_connect() function failed in php code bellow, could u tell me why? Thanks php code ------------------------------------ $iph...
by php12342005
Thu Apr 14, 2005 4:19 am
Forum: Javascript
Topic: what's wrong with the piece of html code?
Replies: 7
Views: 1394

yes.
when i click button "Go", the selected page (Sun's link) replaces current page in same window - i hope selected page is in a new window (current page is still there).

how to use 'target="_new" in javascript? i tried but it didn't work.
by php12342005
Thu Apr 14, 2005 3:46 am
Forum: Javascript
Topic: what's wrong with the piece of html code?
Replies: 7
Views: 1394

Hi Saibot,
it works well.
(but) do u know how to pop up selected link to a new window? similar to HTML TAG target="_new"?

thanks.
by php12342005
Wed Apr 13, 2005 11:47 pm
Forum: Javascript
Topic: what's wrong with the piece of html code?
Replies: 7
Views: 1394

what's wrong with the piece of html code?

<html> <head> <script type=&quote;text/javascript&quote;> var mySel; function getMultiple(ob) { if (ob.selectedIndex != -1) { mySel=ob.options&#1111;ob.selectedIndex].value; } } function DispPage() { confirm(mySel); location.href=mySel.toString() } </script> </head> <body> <form name='f...