Jump to content

jazzman1

Staff Alumni
  • Posts

    2,713
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by jazzman1

  1. Just add it in your pattern [^\n] or if you have more than one [^\n]+
  2. Me too. The first sequencer I'd been used, was Roland MC-50, lately I'd started with Cakewalk About the guitar on the photo, is it Ovation, I hardly see it from this position.
  3. Good for you, I think that MC-808 is a good sampling machine. My first keyboard was Yamaha DX 7. While I was a musician I had a lots of keyboards, as Korg Trinity, Korg T3, Yamaha Motif 7,Yamaha S-80, Hammond Organ X-5, Oberheim OB-8, Midi Master Keyboard Doepfer, and more and more others What kind of music do you record?
  4. I think that's Ovation. @trq, how use the keyboard, like sound module keyboard or just like master keyboard with external sound module ?
  5. What do you mean by "just normal php" ? I'm using swiftmailer. You have to spend maximum 30 min, to configure the script for you....
  6. Are you surprised?
  7. <input type="image" name="Submit" src="images/03.png" id="Submit" value="Hardware" /> Not Equal To <input type="submit" name="Submit" id="Submit" value="Hardware" /> If you want to check whether the form has been submitted, you could use a hidden input field.
  8. @Monkuar, you have to use "this" object. Example: var links = document.getElementsByClassName('findex'); for(var i = 0; i<links.length; i++) { //Do whatever you want with the links links[i].onclick = function(){ alert(this.id); } } @Christian, are you sure about your writing?
  9. Have you tried to include(link to) jQuery library and jqPrng plugin? I cannot see any including in your script.
  10. Is it a prototype, jQuery library or some mixed?
  11. Why, do you have a double ampersand in your sting?
  12. As David said, the best-practice for this would be 2 tables. Take a look at this structure 1.Answers Table +-------------+------------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-------------+------------------+------+-----+---------+----------------+ | id | int(10) unsigned | NO | PRI | NULL | auto_increment | | question_id | int(10) unsigned | NO | | NULL | | | answer | varchar(255) | NO | | NULL | | | answerer | varchar(64) | NO | | NULL | | | created_at | datetime | NO | | NULL | | | modified_at | datetime | NO | | NULL | | +-------------+------------------+------+-----+---------+----------------+ 2.Questions Table +------------+------------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +------------+------------------+------+-----+---------+----------------+ | id | int(10) unsigned | NO | PRI | NULL | auto_increment | | question | varchar(255) | NO | | NULL | | | questioner | varchar(64) | NO | | NULL | | | created_at | datetime | NO | | NULL | | | modified_at | datetime | NO | | NULL | | +------------+------------------+------+-----+---------+----------------+
  13. Change the name of the file, exactly like this: gallerycontroller.php to gallery_controller.php
  14. You still have a wrong html structure. Do not do this.
  15. Greate Job Guys! Why, I can write in Cyrillic? Test : Тестово съобщение
  16. You don't need to refresh the whole page, that's the purpose of javascript in this example (it was just for my test to check what's going on). The problem is when you create new elements you also create a second form inside first one with the same id and name. That's a wrong html structure.
  17. I've never seen before on the web someone to use execute() in this way. I always follow the manual of php.net -> http://php.net/manual/en/mysqli-stmt.execute.php About the second question, you don't have to repeat $stmt = $db->prepare($sql), $stmt->close(), $stmt->bind_param() and $stmt->execute() To build a bind_param dynamically, you could use a wonderful php function for me named call_user_func_array(). There is a lot of resources on the web. Last one(update statement) never runs properly maybe you don't send any data from $_POST['title'], $_POST['entry'] and $_POST['id'] . The url below comes just from anchor tag or from form action attribute? mysite.com/admin.php?page=addentry&id=5 i highly recommend you to start from the manual of php.net.
  18. When you create a new elements, you're also creating a new form too. When you refresh the page, this second form disappears and you are able to delete the elements like before.
  19. You cannot execute the script in way what you wrote. Where is bind_param(). It's wrong : $stmt->execute( array( $_POST['title'], $_POST['entry'], $_POST['id'] ) ); Also, don't repeat the same code multiple times in your if , else statements.
  20. In addition to @requinix, Do you know that you need to call this function somewhere in your script?
  21. As @PFMaBiSmAd mentioned above using sprintf - http://en.wikipedia.org/wiki/SQL_injection (take a look at Escaping ) Example: $query = sprintf("SELECT * FROM `Users` WHERE UserName='%s' AND Password='%s'", mysql_real_escape_string($Username), mysql_real_escape_string($Password)); mysql_query($query); Best way to prevent SQL injection is prepared statements and parametrical queries, using PDO or mysqli.
  22. Put this one on the top immediately after php open tag. <?php echo 'check'; exit; $connect = mysql_connect("","",""); etc......
  23. What's happening if you try to delete line 62?
  24. Is this on a hosted server, or a local?
  25. @Christian, you like the simple (not elementary) things. Simple question == simple answer, right?
×
×
  • 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.