|
|||
I don't think there's anything wrong with that script. Have you edited pesakit.php? Because if you haven't, that's why it doesn't insert. The script that I gave you (the modified script) doesn't have a insert routine.
BTW, did you write the script yourself? Because, there are easier ways to do what your trying to do. I mean with your HTML_Head(); HTML_Form(); HTML_Foot(); You can just make those pure HTML, it'll be easier too. You should only use functions like that when you want a standard but dynamic header and footer on multiple pages. The insert routine shouldn't be to hard to do, so I wish you the best of luck on your assignment. |
|
|||
Just to give you a kick start add:
PHP Code:
|
|
|||
Hi,
That's true lcf, but from the script she gave, it's a bit difficult to explain how she could fix her code without changing a large chunk of it. Her script had a lot of redundant code. I'm not saying that it's wrong or anything. A programmer has the right to program how he or she want and I have no right to say anything about it. But from looking at this code I know she doesn't know it that well, in fact, I think the code is just a copy-and-paste script taken from somewhere. I modified the script to make it as simple as possible. She can use the script like that, but I also hope that she learns from what I gave her. Hopefully, with that simple script, she will be able to expand her knowledge, get to know the basics well and in the future, be able to use that knowledge to stand up for herself. I will help anyone who asks for help, especially those who are trying to learn - but I won't help those who ask me to do something and expect me to do something for them without them at least putting their own effort into it. From experience, I know that this topic, interfacing PHP with Access is not an easy task. I did this once for one of my projects, but I ended up abandoning the project because I found problems that were to tedious to fix. My intention was to pass the knowledge and for her to learn. I'm not doing the work for her. Please don't misinterpret that. The job of re-writing the script only took about 30-45mins. That time would be much less than to tell her to do this and that, and when it doesn't work (and she starts pulling her hair out), she comes back, posts another problem (by then, it probably gets even more complicated) and then give we her another hint. That would take too much time and it wouldn't be worth it. It would waste a lot of her time, and it would waste a lot of mine too. So instead of taking days to solve a problem why not just cut to the chase and solve the problem in 30 minutes? I know what I did could be considered wrong (because it's for her practical), but if she wanted help - guidelines, she could just go to google and search for guides or tutorials. Justification of the design. When I re-wrote the script, I just got a template (that I made for a project I was doing), it has the same format that could be used for this, so I just used it. Permission is granted (to anyone) to use the design as is or modified, but it would be better if she used her own creativity and made her own design. The design wasn't anything special either, so it's no big deal. As for my last post, (about the kick start) that code was just a copy-and-paste of her original code. My intention was to give a guide (in the form of a working script), so that it would be easier for her to learn, and not to do the work for her. She will still have to modify the script to her requirements. But thanks lcf for bringing this up. But like I said, if anyone asks me for help, I will do my best to help. |
|
|||
|
|||
|
||||
still got an error...
ERROR 1064: you have an error in your SQL syntax near 'mysqladmin -u .............................................' one more question... maybe little bit fool question 4 all of us here.... tp..saya still nak tau... boleh ke nak buat relationship (sama mcm dlm access) kalau kiter guna mysql as database? **still blajar**
__________________
aku seadanya... |
|
|||
Are you running mysqladmin from a command line or within a script? mySQL has to be running, and you must run mysqladmin from the command line.
e.g.: C:\mysql\bin>mysqladmin -u root password aBc123 For your second questions, you can have relationships (linked tables) in MySQL, but I think you won't really need to worry about that for now. It would be easier for you to do relationships within SQL syntax for now. |
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| chart... tolong sket... | ridz_021 | Website Programming | 4 | 08-02-2006 01:19 PM |
| tlg check sket code ni | prozone | Website Programming | 3 | 04-08-2005 10:17 PM |
| Nak tanya sket | jepp | Website Programming | 2 | 18-03-2005 01:05 PM |
| tolong sket pasal style... | YajivMalhotra | Website Design | 2 | 02-11-2004 12:40 PM |
| Boleh kasi komen web site ni tak ? | myravens | Websites Review and Suggestion | 9 | 29-08-2003 06:55 PM |
All times are GMT +8. The time now is 03:12 AM.
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.














Linear Mode

