how about looping?
echo("<tr><td>" );
echo( record 1);
echo( record 1);
echo( record 1);
echo("<tr><td>" );
Then loop back again
User Profile
Collapse
-
If this is all the code then I wonder where you store the results of your query
Change the line "mysql_query($s ql);" to $result=mysql_q uery($sql);...Leave a comment:
-
As soon as you press the submit button in a form the complete form is send to the server. thus empty fields are also send and will show up as empty in your email you get from this form.
If you do not want this, send the form to the server (to itself) and check in an IF ($submit) {} each var and make a mail to yourself using
mail ( string to, string subject, string message [, string additional_head ers [, string additional_para meters]]...Leave a comment:
-
If you want to send relyable formatting you have to go to HTML mailing.
Make the HTML in a var for the subject. You can then use the complete scope for HTML even CSS
beware that mailclients tend to block HTML mails as spamLeave a comment:
-
If, what you say, is true that the problem is not the browser because people download another brand and still have the same problem.
I was on you site and experiensed a very long loading time.
Do you use ob_start() to buffer the output?
Than the most reasanoble answer is that the request timed out.
try to speed up you pages.Leave a comment:
-
What does the other side expect to get. Is it a HTML file or a XML file.
If it is the latter why not sending it stait away instead of sending the html that makes XML on the, for you, client side.Leave a comment:
-
On <a href="http://www.scribax.com ">www.scribax.c om</a> you can find a free PHP,javascript and MySQL based solution for this.
Saving your password data in a database is more secure then somewere on your server in a .htaccess protected directory. They can be hacked.
The script above sends the password MD5 encripted to the server wher PHP checks the data agains a database.Leave a comment:
-
Include_once is used to stop PHP from including the same file over and over again if you happen to call this file in ie a while loop. If you realy have to include some code in a while loop than you must use this statement.
for a short description about the differance between go to <a href="http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/40">http://www.faqts.com/knowledge_base/...l/aid/1/fid/40 </a>...Leave a comment:
-
Probably the error starts with the ob_start to prevent the output sending to the screen. This is in fact already a statement sending header information. For the session it does not matter if you buffer the output to the screen or not. So this command can come second without any problem.Leave a comment:
-
To set environment vars in Windows XP take the next steps:
Rightclick "My computer" on your desktop and select "properties "
in the properties window select "Advanced"
On the bottom of this window you find a button "Environmet varaibles"
Go to the "system" part and select the existing var "Path" and add your path to PHP seperated from the existing using a semicolon...Leave a comment:
-
Normaly you should not have to add a path in the environment but in certain constistant errors you can do so. but be sure to restart the machine not only the servers installed. Even winXP tends to have problems with adding env. vars on the flyLeave a comment:
-
Move the Session_start() to the top of your page anyway.
But that will not solve the problem i think.
You are sure that the code works because it works on your server. You have to make sure the the new (customer) server understands your code.
Compare your servers PHP.ini against the customers. You will probable find differances in the session part.
Make sure that the session temp dit realy exists. this is case...Leave a comment:
-
I think it has more to do with the $find var.
You check it against the upper() value in the database. But in this code you can not be sure thet the user typed only uppercase.
Make $find upper as well when comparing in the SQL
Next skip the hidden value "searching" and check on the submitbutton "Search"
like if ($Search) .......
this makes sure that hte user realy pressed the search button...Leave a comment:
-
If you want to disable the back button in the browser you have to erase the history data previous to your page or open in a new browser window (will work sometimes)
Or advance to your next page after login in with the location.replac e() method from javascript
Or just forget it. The user will punish himself by login in again anf again and again .......Leave a comment:
-
I should ask first "Is your server up and running."
Try HTTP://localhost to see if you get responce
If not start investing there.
This goes also for MySQL running on localhost. Try to connect using there toolsLeave a comment:
-
try something like $return.visible = 1
I do not realy know the correct syntax. Have seen it onceLeave a comment:
-
Use Javascript or VB script
First start with a disabled button.
Then, with the onChange() event remove the disabled status if a user chahges the content of a field.
Do not forget to check with the onSubmit() event if at least one field has some content
A standard rule should be to do on the client side what can be done there instead of doing it on the serverLeave a comment:
-
Not that I know. You will have to check it using the Javascript onChange() event and correcting the userLeave a comment:
-
You get these warning in you error_log file, right?
PHP does not like undefined vars and indexes. You should get only something like [05-Oct-2006 12:56:33] PHP Notice: Undefined variable: uid in D:\htdocs
but the code works.
If you realy want to get rid of them you have to declare all the vars before using them even if they come from a $_POST or $_GET.Leave a comment:
-
Think step by step
First what do I send (look at it by sending it to your self, maybe another server)
next how does it end up by that merchant (try to simulate)
What do I get back (a html file or something else)
how does it arive on our server.
What kind of vars are send ($_POST or should i use $_GET)
Try to recreate his or her interface toward you.
Look also to there forms. This gives you...Leave a comment:
No activity results to display
Show More
Leave a comment: