Maq
Administrators-
Posts
9,363 -
Joined
-
Last visited
-
Days Won
3
Everything posted by Maq
-
[quote author=Ken2k7 link=topic=54859.msg1176585#msg1176585 date=1241460241] Shut it! I use Vim for any edits, local copies or via SSH because I'm lazy to use FTP. The process to edit files using FTP is a bit tedious. [/quote] Editing files using FTP...? Please, share with us.
-
[quote author=premiso link=topic=54859.msg1176542#msg1176542 date=1241458732] [quote author=jackpf link=topic=54859.msg1176532#msg1176532 date=1241458347] Meh. Guess I'm beaten. I still love my Notepad++ though. :P [/quote] Notepad++ is great for small simple projects, honestly. But it really does lack for big projects, it is very hard to manage them from NPP, an IDE tends to keep projects in line so you can see the different functions, parameters you defined etc for bigger projects. This way you know of issues. I love NPP too, so I use both. I do small and simple changes to scripts etc with NPP, but to manage my bigger projects NetBeans works great to keep me inline on what I have done without having to open each file individually :) It is not the sense of "being beaten". It is more or less you should use the right tool for the job. Most IDE's you can disable auto-complete if you want (As I know NPP comes with auto-complete). But for big projects, NPP really is not the tool for efficiently and effectively managing it. [/quote] Exactly, I wasn't trying to make an argument out of it or prove why certain IDE's are better. They're all tools, and should be used that way. I do use Eclipse for mostly all projects just for the simple fact you can integrate CVS into it and it's very convenient to just commit the changes right to the dev server, this way it tells you if you have the latest version from the head or something is conflicting etc... Like premiso said, it's not like I'm trying to 'beat' you in any sense, just spreading my knowledge and opinion. [quote author=Ken2k7 link=topic=54859.msg1176550#msg1176550 date=1241459160] I use Vim. [/quote] For small local changes I use vim as well. ;)
-
[quote author=jackpf link=topic=54859.msg1176513#msg1176513 date=1241457772] Yeah, I totally agree. But if you're actually paying for these features when Notepad++ does them anyways... I know netbeans is free. But people earlier on in this thread said they were paying like $150 for their IDE's... [/quote] No, notepad++ doesn't even have a 1/3 of these features... Package Explorer, class outlines, style importing, auto-completion, CVS, automatic building/compiling, server/database binding... I don't remember notepad++ having any of these, and besides, it's absolutely free! Maybe for maintaining a tiny personal site, notepad++ is suitable, in fact, I use it all the time, but for a medium-large scale project you NEED to have an IDE that can handle and offer these features or you will take twice as long to get anything done.
-
You should never store comma separated values in one record. You should have a separate table to handle this. That way you don't run into this problem, and your database will be a little more normalized. Like Ken mentioned, there is no equivalent of explode in PHP in MySQL, AFAIK. You may be able to use REGEXP and match on 5, but I don't this would be the best approach. (Note: this does not take into account spacing) AND id_page REGEXP '(^5,|,5,|,5$)'
-
Just echo out the value, you're already looping through the result from explode. echo $a;
-
It's hard to help without more information, specifically log messages. Have you checked the server logs?
-
That seems like it would be a pretty popular operation, someone should write a tutorial about it you could find on Google...
-
Brother I think I Have Some Php Problem In My server or in my scripts.Not a Vb problem.. So Kindly Help Me In This Case Thanks What do you mean PHP problem in your server? What part(s) are PHP?
-
[quote]But yeah, with what Daniel0 said, I guess the bracket thing can be pretty useful for people who can't count :P[/quote] Even if you can count, LISP code gets very annoying with all of the parentheses. An IDE that handles this is very convenient and saves a lot of time. With languages such as PHP and Java, you're right, if you can count you should be fine ;) Although, I still use some of the auto-complete features when dealing with any J2EE projects. It's also nice because at work we have a specific style of formatting and with most IDE's you can just import an XML formatter which will format your code automatically.
-
I understand what you do in the technique you linked to, which is fine if you're assigning a client-side variable to a server-side one (JS = PHP), but he's trying to assign a server-side to a client-side (PHP = JS), which is impossible without a response back to the server (AJAX).
-
Have you even looked at his code...? He's trying to assign a PHP variable to a Javascript variable: function setRm1PkgCst(rm1desc) { $rm1packagecost = rm1desc }
-
The easiest way to install the necessary components would be to use a pre-packaged one, such as - WAMP. This is assuming you're using Apache.
-
You can't do that. PHP lives on the server so assigning a PHP var to a JS one is impossible without the help of AJAX or something similar.
-
[SOLVED] $sql = 'SELECT ['id', 'imgpath'] FROM thumb';
Maq replied to y2yang's topic in PHP Coding Help
Please use tags, not with . -
Ken is correct, it is impossible with pure PHP, you need to use AJAX, or something similar. Moving to AJAX section for further help.
-
[SOLVED] $sql = 'SELECT ['id', 'imgpath'] FROM thumb';
Maq replied to y2yang's topic in PHP Coding Help
$sql = "SELECT id, imgpath FROM thumb"; EDIT: Are you referring to using an array in your query? Or are 'id' and 'imgpath' fields in your DB? This is also assuming you are using MySQL. -
[SOLVED] Need help with an UPDATE to my database
Maq replied to austin6118's topic in PHP Coding Help
Please mark as SOLVED if that's the case. -
You were missing '(' and ')' around your conditions. You also should specify each condition with '&&' or 'OR'. if($n1 == $n2 && $n1 == $n3) {
-
Have a look here - Ubuntu Installation.
-
When I use the following login credentials, nothing happens...
-
This has nothing to do with PHP. Check the sticky at the top of the board I'm moving you to: Web Host List.
-
Your link is misspelled.
-
Query: post reply in PHP Freelancing?
Maq replied to rupam_jaiswal's topic in PHPFreaks.com Website Feedback
Well, I guess it's no longer a rumor, huh Dan? Given how many people actually read stickies, it's closer to being a myth than a rumor. Who in the world wants to read a sticky?! Takes too much time... -
No, leave the query alone. Just assign the variables like I showed you in the post above, or else the variables don't contain any value, well they actually don't even exist...
-
There are a couple issues you have here: 1) Never use short-hand tags (), always use <?php. 2) Your form doesn't specify a method. Change this line to: </pre> <form action="updated.php" method="POST">< 3) You also need to use that method on the action page (updated.php) i.e.: $ud_address = mysql_real_escape_string($_POST['ud_address']); $ud_city = mysql_real_escape_string($_POST['ud_city']); $ud_state = mysql_real_escape_string($_POST['ud_state']); // etc... (The mysql_real_escape_string prevents SQL Injections.)