AyKay47
Members-
Posts
3,281 -
Joined
-
Last visited
-
Days Won
1
Everything posted by AyKay47
-
the link i gave you has several tutorials, and they are from the creators of PHP, can't get any better than that. But if you want to look at more, you can probably google "php tutorials"
-
yes, post the relevant code.
-
if you are storing html inside of your database, don't. To get started, you don't even need a database, whatever is after the ? in a url is called the query string, and contains values to be sent to that page and used with a server side coding language. You might want to start by viewing some basic tutorials on PHP. You can google for this or go to http://php.net/manual/en/tutorial.php which has quite a few good tuts on it.
-
Trying to restrict characters in regular expression to just a-z
AyKay47 replied to j.smith1981's topic in Regex Help
did you not read adams post? preg_match('/[a-z]+/', 'this may or may not be valid 1'); this will always match as long as there is a string of at least 1 a-z value, what you need to do is add ^ to the beginning and $ to the end of your pattern, this will tell the parser, I want the string to start with an alphabetic character, only contain alphabetic characters, and end with an alphabetic character. Edit: and if you want to match a space as well, add that into your character group. -
Why do you manually create an object instead of using this, then only pass in the selectedIndex so that you have to recreate the same object within the function, when you could have just passed it in? whichPet(this); function whichPet(select) { alert("You selected " + select.options[select.selectedIndex].value); } yeah, thumbs up
-
Select form to display data from MySQL not working when using AJAX
AyKay47 replied to webguync's topic in PHP Coding Help
Edit: lack of attention to details. -
Readable Programming Language to Create Audio Software
AyKay47 replied to Glese's topic in Miscellaneous
really, this is the best option if you do not care to learn a new language, took a look at it, nice toolkit that will get the job done, and of course, its nice that it is in JS. -
Select form to display data from MySQL not working when using AJAX
AyKay47 replied to webguync's topic in PHP Coding Help
really, I would recommend that you switch to using the AJAX api with Jquery, much easier and less coding. -
.text will work technically, however you should always include a back end alternative for those that do not have javascript enabled in their browser, so you would want to have values for your <option>s anyway.
-
for this one i'm curious to see the final code.
-
Select form to display data from MySQL not working when using AJAX
AyKay47 replied to webguync's topic in PHP Coding Help
It's acceptable to use in this case, because otherwise if you fail to connect it's going to spit it out something like this for everyone to see: Warning: mysql_connect(): Access denied for user 'blah'@'localhost' (using password: YES) EDIT: By the way, why are you mixing jQuery with native Javascript? One of the most awesome things about jQuery is handling AJAX. jQuery.post unless you suppress the warnings/errors the correct way, which would be to set the php.ini directives "error_reporting" and "display_errors" to 0 and no, respectfully, for a live server. True, you shouldn't be displaying ANY warnings to the public on a live server. But there's no ill side effects from suppressing mysql_connect(). It ensures that if your code ever lands on an improperly configured server that the world isn't going to get a glimpse at your database credentials. no argument there, but it should be done by using the php.ini directives listed above. -
Select form to display data from MySQL not working when using AJAX
AyKay47 replied to webguync's topic in PHP Coding Help
It's acceptable to use in this case, because otherwise if you fail to connect it's going to spit it out something like this for everyone to see: Warning: mysql_connect(): Access denied for user 'blah'@'localhost' (using password: YES) EDIT: By the way, why are you mixing jQuery with native Javascript? One of the most awesome things about jQuery is handling AJAX. jQuery.post unless you suppress the warnings/errors the correct way, which would be to set the php.ini directives "error_reporting" and "display_errors" to 0 and no, respectfully, for a live server. -
Select form to display data from MySQL not working when using AJAX
AyKay47 replied to webguync's topic in PHP Coding Help
1. instead of onchange=showPlayers(this.value); you will want onchange=showPlayers(this.options[this.selectedIndex].value); 2. don't get into the habit of using the suppression operator @, should only be used in certain instances, this is not one of them. -
Readable Programming Language to Create Audio Software
AyKay47 replied to Glese's topic in Miscellaneous
wasn't a terrible question, he wanted to know what languages you could create something like a synthesizer in, seems like a valid question to me. "the one you are proficient with" is less then helpful. I'm not here to argue, i'm here to help people, later. -
i guess i'll show you, im going to add values to your options, which should be done anyway. <!DOCTYPE html> <html> <head><title>HTML5, CSS3, CSS, JavaScript, AJAX practice</title> <script type="text/javascript" src="js_.js" ></script> </head> <body> <form id="form_2"> <br /><br /> <select id="select_1" size="4" onchange="whichPet(document.getElementById('select_1').selectedIndex);"> <option value='golden retriever'>golden retriever</option> <option value='siamese cat'>siamese cat</option> <option value='goldfish'>goldfish</option> <option value='parrot'>parrot</option> </select> </form> </body> </html> external function whichPet(petListIndex) { var obj = document.getelementById("select_1"); alert("You selected " + obj.options[petListIndex].value); }
-
whats it doing
-
Readable Programming Language to Create Audio Software
AyKay47 replied to Glese's topic in Miscellaneous
Fail You can do what he wants with a ton of languages. Without asking a more specific question, that's all he's going to get. next time I want to make a synthesizer in CSS, ill come to you -
Readable Programming Language to Create Audio Software
AyKay47 replied to Glese's topic in Miscellaneous
didn't know that, nice. -
Readable Programming Language to Create Audio Software
AyKay47 replied to Glese's topic in Miscellaneous
Fail Popular ones are C, C++, and Java. -
You presume right, change it to a datetime format and use the MySQL function date_format();
-
Is the field a varchar or a datetime field?
-
you want to add a row directly from phpmyadmin?
-
or maybe we should let the OP answer my question first. Why? Silkfire made a good suggestion. was more of a statement, hadn't heard of steganography before, looks interesting, all I am saying is I want to know the real reason for this before we go any further, then everyone jumped on the guessing game.
-
or maybe we should let the OP answer my question first.