Jump to content

Nakor

Members
  • Posts

    127
  • Joined

  • Last visited

Everything posted by Nakor

  1. Ah, that is because I forgot about those other variables that you had to retrieve from the database. Is it working correctly then?
  2. I don't think that you would have to use AJAX on this page. I think that some simple JavaScript would suffice if you had it communicating with your PHP variables. You could probably just use the onchange() function to change the side boxes based on the item in the first box. Read this:http://www.w3schools.com/jsref/jsref_onchange.asp
  3. Java will probably never be able to compete with C/C++ in the OS field but it does have the capabilities to do graphics processing. In my trials with C++ and Java comparatively I found that Java was not only more efficient at executing graphics commands, but it did it faster. Of course the advantage of C/C++ is that it doesn't require a RTE like so many Java applets do. When I first started into JSP I felt that it wasn't being used much, however I think that a large amount large scale web applications use Java or JSP. I feel that Java is strong in being seamless, and if done server side, entirely invisible to the user. Of course it will probably be that Java and C/C++ will end up 'merging' in a non-conventional sense.
  4. You should post your SQL statement. This could be because the cell that you are trying to insert a date into is not of the 'date' type. If you are not sure that you are using the date variable correctly for the insert read here.http://us3.php.net/date
  5. Yes, but so much of the programming community seems to be stuck on the C languages. I have noticed that more people are moving to Java and it is a good thing. I just felt as if it would have already completely taken the place of C++ or C.
  6. I agree wholeheartedly. As someone who also designs web pages I have felt the anger and frustration when I design a page and test it in Firefox and Opera and it looks good and then as soon as I open up IE everything is wrong. It's Microsoft's fault for not making standards STANDARD. For you to also disregard standards as much as you have I also have a strong dislike for your browser. This is not me saying that you haven't done anything good with it. It is definitely creative and something different, however you can't come waltzing in praising it as the best browser on the face of the planet when it will cause so many problems for so many people.
  7. You may want to try changing the SQL if that is the result. It looks as if it is trying to group them but since the group query is so specific it may not be grouping them because of a subtle difference in one of the fields. Try "SELECT ag_id, COUNT(*) FROM aguitar_inventory, aguitar_models WHERE aguitar_inventory.ag_id = aguitar_models.ag_identity GROUP BY ag_id"; If that does not work you could definitely do some server side PHP to group them together after a simple SELECT * query. Let me know if that doesn't work and I'll see what I can do about some PHP grouping.
  8. No. The $message variable continues on down below to print out an entire HTML block. Leave it as is except for the one semicolon before the message.
  9. Good job. I really believe that Java is going to become very big soon. It's my personal favorite programming language. I remember just starting out on JFrames. You will be getting into some very interesting things soon I'm sure.
  10. Nakor

    page refresh

    Good point. It all just depends on what it is that they are doing. I suppose that I missed that part that said that he was going to be using the same form that submits the data to insert it. In that case you are definitely right.
  11. Nakor

    page refresh

    Or you could add code to your SQL commands to not execute the commands if a table, column, cell, or anything already exists. I think that would be easier.
  12. Change: $subject = 'Confirmation'$message = '<table width="388" border="0" align="center" cellpadding="0" cellspacing="0" class="BodyPagraph"> To: $subject = 'Confirmation';$message = '<table width="388" border="0" align="center" cellpadding="0" cellspacing="0" class="BodyPagraph"> However this is only one of many problems. When I run it I get 12 notices, 1 Debug warning, and 2 strict errors. I will edit this post when I fix the problems.Edit: The only real issue is that you are using the server's timezone in 2 separate locations, which is not safe to rely on. You can change it though. Read about timezones. They are on lines 47, and 209.
  13. Nakor

    URL Logo

    Yes, just erase the favicon that they have in your blog folder and replace it with yours.
  14. Nakor

    Just wondering..

    It would be wise of you to keep a database for an automotive type website. This will allow you to easily keep records of what is in stock, pricing, location, and a link to an image. You can store the image in a folder and then have one of the fields in the MySQL table point to that file. This would also be very good for your friend because you can make a very user friendly user interface for adding, subtracting, and viewing the inventory in PHP. I'm sure you will be able to do what you need to with all of the information available on this site alone. Anything in particular that you would like to know?
  15. As a highschool student getting close to graduation I am trying to get as many certifications as I can before I make my way off to college. I am already working on my A+ and Network+, but I have just become aware of the Zend PHP Certification. I was wondering if anyone on this forum has this certification, or knows anything about it. Is it worth my time, and money, to get it? They show statistics of people being satisfied with what they have accomplished after the exam, but of course they want an excuse for $125 I'm sure. Comments?
  16. Nakor

    Creating an online shop

    Don't worry about it. This is easy enough to solve. On Page 2, before ANY other code you would put <?phpif ($_POST['braid2_colour'] == "Colour") { header("Location: Page1");}?> Of course you would add in additional fields for each of the additional braid fields. However, this will redirect them even if they select 1 band and then in the final box select 0 extra bands. You can solve this with. <?phpif ($_POST['braid1_additional'] != "0") etc. etc. etc. etc.{ if ($_POST['braid2_colour'] == "Colour") { header("Location: Page1");}?>
  17. This will depend on the structure of your SQL database but you may be able to use the GROUP BY function. This function returns all variables that have the same variable declared directly after GROUP BYex.Say you have a table that looks like this select * from test;+----+------------+| id | day |+----+------------+| 1 | 2006-10-08 || 2 | 2006-10-08 || 3 | 2006-10-09 |+----+------------+ If you ran the query: select day, count(*) from test GROUP BY day;+------------+----------+| day | count(*) |+------------+----------+| 2006-10-08 | 2 || 2006-10-09 | 1 |+------------+----------+ As you can see it grouped the two entries that shared the same date. This could be useful for inventorying guitars. I believe this would also handle your problem of out of stock items. If the count returns as 0 then you know there are none and you can show them as out of stock.
  18. Nakor

    ip address

    <?$domain = GetHostByName($REMOTE_ADDR);?>
  19. There's no real need to write a PHP script to read the CSV file as long as you have PHPMyAdmin. There is an option there to import a CSV file. If not look into the fgetcsv() function.
  20. Nakor

    huh?

    FTP has nothing to do with hosting a forum. To host your own forum you would probably want to have an http server, PHP, MySQL, and possibly SMTP. I would suggest that you look into XAMPP. You could then make a forum yourself with PHP, however you have to have a strong grasp of PHP before you make your own forum. You should take a look at phpBB. Their site is down right now but it is very easy to install and configure.
  21. Nakor

    Loop

    Heh. I always do seem to forget the syntax for the arithmetic functions.
  22. http://www.google.com/search?hl=en&saf...ook&spell=1Go to town.
  23. You're going to be hard pressed to just start making a game out of PHP without significant knowledge of the language already. There are numerous e-books on the internet just waiting for you to read them regarding how to make games in PHP. No doubt you will start with something simple like tic-tac-toe or battle tanks but you must understand the principles before you can do anything large scale.Edit: This should probably be moved to the PHP forum.
  24. You can only send headers and cookies before any other information is sent to the browser. I trust that is not your full code. If you want to redirect with the PHP header() funtion you have to do it before ANYTHING else is sent. This includes whitespace.
  25. Nakor

    Loop

    You would have to change the initial value of $nr to 0 because when it is first called it is incremented by 1, correct? As is your code would skip txt1 and instead start with txt2.
×
×
  • Create New...