Jump to content

marukochan

Members
  • Posts

    35
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

marukochan's Achievements

Member

Member (2/5)

0

Reputation

  1. Can someone point out to me what is wrong with this code? It suppose to print out the company id with "Awarded" status, but instead it prints out ALL the company id regardless it is "Awarded" or "Bidding". $status = "Awarded"; $query = mysql_query ("SELECT * FROM project WHERE project_status = '$status'"); $result= mysql_num_rows($query); while($row=mysql_fetch_array($query)) { print $row["company_id"]; echo ("<br>"); } Thanks.
  2. Hei Anita999, Why don't you have a look at this tutorial at http://php.about.com/od/finishedphp1/ss/php_login_code.htm Look at the script for Members Area. Members Area could only be accessed after you have login. Hope this will help.
  3. Ferguser, If I try to write this way within html, it is working but when I wrote it this way within php, it is not working. I am so confused. How and when should I use single or double quoting. Can you correct my single and double quoting in this code?
  4. Hi! How can I have a dialog box to confirm with the user whether he really wants to delete a specific record. My code: Here is where the user click the 'thrash' icon to delete a record. So, before deleting the record I want to have a dialog box to confirm whether he wants to proceed with the deleting or not. How can I do that ? TQ
  5. Thanks. I've made them in the same page .......... Thanks again.
  6. OK ..... the code will be given to the user via e-mail after he has requested for it. So, the user will type in the code at verification page and after the code is being verified he will be redirected to registration page. If I don't block the registration page with some kind of script, anyone without the code can go directly to registration page only by typing www......../registration.php, right? It is something like if you don't log in you cannot view the page. Only this time, I want the registration page to be redirected only thru verification page. TQ
  7. Can anybody give me an idea on how to do this. I have two pages; verification page (to verify the given code) & registration page. I want the registration page to be opened only after the user have verified the verification code thru verification page. I want the script of registration.php to redirect to code verification page if any user directly open registration.php without going thru verification.php. Understand what I mean. Thanks
  8. Please help me! Is my code correct or wrong because the variable id is empty. My code I echo id there is a value there, but when admin_editprocess is called the id is empty. Please help. Thanks
  9. Can anyone help me. I can't figure out why the date did not came out correctly. I wrote It suppose to come out as 01/Mar/06. But what what came out was 01/Jan/70. ??? Can anyone tell me why this happens.
  10. OK... solved. robcrozier has posted similar problem & the answer is already there. TQ
  11. I welcome any help. I'm trying to set the length of textarea box to 300px but fail to get it. For text field, what I do is It worked for text field, so for textarea I did the same. Unfortunately, it did not work. How do I make it work? Thanks
  12. Please help me. I want to display the value of a query in a text box of a form. How do I write it? The query Extract the value To display, I wrote ( a part of it) But it didn't work. I'm not exactly sure how to write php within html codes. Please help.
  13. Thank you guys!! Worked like a charm. I guess I have to be very careful with ' & ". Thanks again
  14. Hi! I could not figure out what is wrong with my code. I just want to make the icon viewer.ico as the link. The code is echo("<td width=10% align=middle><a href='project_details.php?id=".$row["project_id"]."'><img src="images/viewer.ico" border="0"></a>"); The error is If I change the image with text, the script will run without error. Hope somebody could point out to me what is wrong with the code. TQ
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.