ok, it works well,
thanks.
Search found 79 matches
- Fri Jul 29, 2005 9:53 am
- Forum: PHP - Code
- Topic: string concept: is this for php?
- Replies: 3
- Views: 466
- Fri Jul 29, 2005 9:37 am
- Forum: Databases
- Topic: need your comments to manage my database
- Replies: 2
- Views: 398
need your comments to manage my database
We sell goods on the internet. Assume a customer buys one good. ok, we have his persional info and purchase (good) info. now: We need to input his data (all info) into our database. what did you do to input data into database? possible solutions: 1) create several php pages then input data manually....
- Fri Jul 29, 2005 9:00 am
- Forum: PHP - Code
- Topic: string concept: is this for php?
- Replies: 3
- Views: 466
string concept: is this for php?
function Alert($str) { echo("<script language='javascript'>"); echo("alert('$str');"); echo("</script>"); } //no error $str="Hello peter"; Alert($str); //error $str="Hello peter's cats"; Alert($str); error code is: Expected ';' I guess problem is the...
- Fri Jul 29, 2005 8:43 am
- Forum: PHP - Code
- Topic: still newbie: syntax error:
- Replies: 4
- Views: 415
- Fri Jul 29, 2005 8:21 am
- Forum: PHP - Code
- Topic: still newbie: syntax error:
- Replies: 4
- Views: 415
still newbie: syntax error:
php code: ------------------------------------- function Alert($str) { echo("<script language='javascript'>"); echo("alert('$str');"); echo("</script>"); } $str="Error: ".mysql_error(); Alert($str);//last line ------------------------------------- problem is l...
- Thu Jul 28, 2005 3:14 pm
- Forum: PHP - Code
- Topic: help me to fix the newbie problem: double quotes in echo
- Replies: 7
- Views: 863
- Thu Jul 28, 2005 2:47 pm
- Forum: PHP - Code
- Topic: help me to fix the newbie problem: double quotes in echo
- Replies: 7
- Views: 863
- Thu Jul 28, 2005 2:27 pm
- Forum: PHP - Code
- Topic: help me to fix the newbie problem: double quotes in echo
- Replies: 7
- Views: 863
- Thu Jul 28, 2005 1:33 pm
- Forum: PHP - Code
- Topic: help me to fix the newbie problem: double quotes in echo
- Replies: 7
- Views: 863
help me to fix the newbie problem: double quotes in echo
I am a C++ programmer and move to php temprately now. I use braces for echo: echo(), and double quotes for string in possible cases, otherwise I just feel unconfortable. my purpose is to display a message box in php code. ok, following is my sick code: function MsgBox000($str) { echo("<script l...
- Thu Jul 28, 2005 12:55 pm
- Forum: PHP - Code
- Topic: user libraries: one or two?
- Replies: 4
- Views: 1095
user libraries: one or two?
in php, we have to use javascript functions, normally, user libraries make things easier. but, do you have two different kinds of libraries: php library and javascript library, or just one? if two, some functions in both libraries look very similar. in my case, I created two, but when I modify one, ...
- Thu Jul 28, 2005 11:07 am
- Forum: PHP - Code
- Topic: using echo, which way do you like?
- Replies: 17
- Views: 3233
using echo, which way do you like?
using echo: start with single quote or double one?
for a simple string, both are the same.
but in complex case, do you like ' or " as whole quote for echo?
i.e. echo '...' or echo "..."?
advantages and drawbacks?
thanks
for a simple string, both are the same.
but in complex case, do you like ' or " as whole quote for echo?
i.e. echo '...' or echo "..."?
advantages and drawbacks?
thanks
- Thu Jul 28, 2005 6:42 am
- Forum: PHP - Code
- Topic: could u explain why for these fun lines?
- Replies: 4
- Views: 715
could u explain why for these fun lines?
first all, do not simply give me a link, i did read many docs from google but i can not find answer. explain first, then links - thanks. followings are code in a php file but out of <?php?> tag. =============================================== <?php $var0="hello, boys"; ?> <form> <input typ...
- Wed Jul 27, 2005 4:12 pm
- Forum: PHP - Code
- Topic: how to set value to inputs of a form
- Replies: 3
- Views: 388
- Wed Jul 27, 2005 3:22 pm
- Forum: PHP - Code
- Topic: how to set value to inputs of a form
- Replies: 3
- Views: 388
how to set value to inputs of a form
I have a form with 2 inputs (type=text), i.e. id and name.
when I click button Read, php reads info from database about id and name.
my question is:
how to set values (id and name) to these 2 inputs from php code?
thanks
when I click button Read, php reads info from database about id and name.
my question is:
how to set values (id and name) to these 2 inputs from php code?
thanks
- Wed Jul 27, 2005 12:36 pm
- Forum: General Discussion
- Topic: it is not fair
- Replies: 9
- Views: 1390
it is not fair
We have a web-site, most of visitors come from search engines, around 1,500/per-day. in theory (by books, articles etc), the number of visitors should increse step by step especially when they come from search engines. but from last half of year, the number of vistors does not increase at all. are t...