-
Replied To a Post in welcome message
Don't get me wrong here, but are you sure you know how to use the rest of that script if you don't even know how to output such a thing? … -
Replied To a Post in How can I make submit buttons to run a query?
Well, any `<input>` of which you want to use the value must (generally spoken) be inside `<form>` element. When you press the submit button, all input inside the `<form>` element … -
Replied To a Post in Can't Properly Record Data On csv File
O my god I thought that `$message` was meant to be overwritten by `$v1`, but now that I read these new messages you may very well be right, Traevel :p. -
Replied To a Post in How can I make submit buttons to run a query?
Well, there seems to be missing an INSERT or UPDATE query to insert/update the like/dislike, and there seems to be missing a `<form>` that the buttons use. So where/when exactly … -
Replied To a Post in Hi! Happy New Year 2015
Well, same to you :). -
Replied To a Post in Can't Properly Record Data On csv File
What JorgeM says, plus: my best guess is that it has something to do with the contents of `$message`. Have you tried omitting `$message` from your CSV to see if … -
Replied To a Post in whats the best way to find sub string in mysql?
So all a shop's products are saved inside a big TEXT field? Isn't the whole idea of SQL that you - in this case - should save all your products … -
Replied To a Post in php error on connection
Looks as if you're simply providing a wrong username/password combination indeed. -
Replied To a Post in how to crate or to add WCMS (Web content management system)
If you are asking how to create a complete CMS, I'm afraid that's going to be too much to explain in just one forum post. There are numerous tutorials on … -
Replied To a Post in E-commerce websites
I believe there are multiple e-commerce management systems. There are plugins for Wordpress, but probably for Joomla as well. You have Magento, OpenCart, and probably numerous others. I suggest you … -
Replied To a Post in It been ahwhile since I did a php contact form.
First of all: do you get an error, or does the mail simly not arrive? Second: you don't have to enclose the variables you pass to the mail() function in … -
Replied To a Post in session expire prob
First thing I see is that your code is a bit.. unexpected: Your code: if(isset($_SESSION['user'])== ' '){ header('location:index.php'); exit(); } Should be: if(!empty($_SESSION['user'])){ header('location:index.php'); exit(); } as isset() returns a … -
Replied To a Post in JavaScript Form Validation
This should work: $('form#your_form').submit(function() { // Your code here. // Return false so that the form will not actually be submitted. return false; }); -
Replied To a Post in Mouseout executed twice.
That is because your "mouseout" event is bound as soon as the user mouseovers your image. So if a user mouses over the image 100 times, the "mouseout" event will … -
Replied To a Post in Mouseout executed twice.
Well, if you bind an event inside another event, i.e. binding the mouseout event as soon as the user mouseins, it means that the event will be bound every time … -
Replied To a Post in What's up with Windows 10?
God damnit I was just getting used to Windows 8, and now they're going to bake scrambled eggs with it to make yet another new interface and who knows what. … -
Replied To a Post in refreshing a page
Doesn't the Javascript version require two http requests to be made (the post request and then the reload) versus only one when submitting a form right away? -
Replied To a Post in Can't connect to local MySQL server
Well that probably means that you have somehow specified the wrong MySQL connect/login data. EDIT: Ahum, reading the error again, I think there might be something else wrong :p. Although … -
Replied To a Post in JavaScript Form Validation
You have bound the checkForm() function to the form's submit button. I think that's what destroying your plans here. You should probably bind the function to the submit event of … -
Replied To a Post in Mouseout executed twice.
Why do you have your *mouseout* event listener **inside** the other event listenere in the first place? :p -
Replied To a Post in how to search a record
Well that means that something must be wrong with your form and/or PHP. Did you already try to find out what's in your $_POST var after having submitted the form? … -
Replied To a Post in Clone of iWork.com "review" feature
That looks like text highlight --> add comment? -
Replied To a Post in how to search a record
Well, maybe you should change it to this: <html> <fieldset style=text-align:left> <form name="empdetails" id="empdetails" action="view.php"> ID : <input type="text" id="id" name="id" ><br> <input type="submit" id="submit" name="view" value="view" ><br> </form> </body> … -
Replied To a Post in how to search a record
Well, have you checked the value of $id after the form has been submitted and if a record with that $id actually exists? Checking your code, I notice that you … -
Replied To a Post in ajax keep return error function instead of sucess function
What does the error message say? The value you filled in for "url" seems a bit odd to me - maybe that's a file that cannot be loaded? -
Replied To a Post in how to search a record
So what seems to be the problem? :) Do you get any errors? -
Replied To a Post in Combining Javascript & PHP with RequireJS
I have heard of AngularJS, but I've never really looked into it. Does seem interesting, thanks for the tip! -
Replied To a Post in table border color
I think you may want to style the <td> borders instead of the <table> borders to get what you're looking for. So: table#adminTable td { border: 1px solid #e2e0e0; } -
Replied To a Post in how can i minus the quantity when click delete
You should not use that exact example, but modify it to your own needs. Or did you do that already and is it still not working? -
Replied To a Post in htaccess php
Well, the .htaccess that I use is usually something like: RewriteEngine on Options -Indexes RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* index.php [L] This redirects **everything** to index.php. You … -
Replied To a Post in Combining Javascript & PHP with RequireJS
Yeah, I thought so.. Too bad, I think I'm just gonna stick with what I have for now, then. I had hoped for a way to let RequireJS "require" a … -
Replied To a Post in htaccess php
Well have you read any .htaccess tutorials yet? -
Replied To a Post in how can i minus the quantity when click delete
Why don't you just select the product merely by the product code? Or isn't that unique? E.g. foreach($_SESSION['products'] as $key => $cart_item) { if($product_code == $_GET['product_code']) { //* This is … -
Created Combining Javascript & PHP with RequireJS
So I've given RequireJS a try this weekend, and although it appears to work pretty smooth, I can't figure out one thing: How do I combine PHP and Javascript while … -
Replied To a Post in Anyone from Finland?
She does indeed like to hike, and so do I, but I'm only going there for a weekend and I'd like to spend some .. quiet time with her. Activities … -
Created Anyone from Finland?
I'll be visiting my girlfriend who's staying in Helsinki, Finland until the end of december, and I'd like to surprise her by taking her on some kind of trip or … -
Gave Reputation to woooee in Bad computer habits
What, no one has mentioned writing a sloppy, undocumented program because it is a one-time quick and dirty use. Murphy's law says you will still be using that program 10 … -
Replied To a Post in Prevent MySQL trigger recursion
Solved it, I got kinda lost in the bunch of triggers I was creating, and apparently in all the confusion I accidentally changed a trigger to BEFORE delete instead of … -
Marked Solved Status for Prevent MySQL trigger recursion
For some reason my triggers are recursing, while I think they shouldn't. I'll simplify the examples for the sake of you not having to read through all the code. Trigger … -
Created Prevent MySQL trigger recursion
For some reason my triggers are recursing, while I think they shouldn't. I'll simplify the examples for the sake of you not having to read through all the code. Trigger … -
Replied To a Post in url rewrite
Just for your information: you can also use PHP to read your URL. Say your .htaccess is like this: RewriteEngine on Options -Indexes RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule … -
Replied To a Post in MySql Deleted records appear
I don't think I fully understand your question. Could you give us some more background info? Like the table structure and the queries you are using? :) -
Replied To a Post in MySql Deleted records appear
What is the query that you are using to delete the record? Are you not in a transaction that is cancelled and rolled back? Some background info (queries) would not … -
Replied To a Post in Pass textbox value to checkbox
Well, let's say you have this setup: <input type="checkbox" name="a_checkbox0" value="a_value0"> <input type="checkbox" name="a_checkbox1" value="a_value1"> <input type="checkbox" name="a_checkbox2" value="a_value2"> <input type="checkbox" name="a_checkbox3" value="a_value3"> <input type="checkbox" name="a_checkbox4" value="a_value4"> <textarea name="a_textarea"></textarea> Then … -
Replied To a Post in upload image into mysql db using php and fetch that image
You will need to put that file name inside an <img> tag, I guess ;). And I also think you probably should've posted that question in a new topic, but … -
Replied To a Post in PHP multi choice quiz
Have you given these pages/articles a read? http://stackoverflow.com/questions/4329396/mysql-select-10-random-rows-from-600k-rows-fast http://stackoverflow.com/questions/12087519/how-to-query-10-random-unique-records-in-mysql-database http://stackoverflow.com/questions/4966154/how-to-select-random-unique-records-on-each-execution-of-the-sql-query -
Replied To a Post in How to stop timer after 10 seconds
Your script should include something like this: var number_of_timeouts_executed = 0; // (Your decrement function:) function decrement() { // If 10 or more timeouts have already been excuted, it's been … -
Replied To a Post in Pass textbox value to checkbox
So there's a textarea on page A, and a checkbox on page B, and a value from page A needs to be passed on to page B and given to … -
Replied To a Post in How to stop timer after 10 seconds
You could add a counter that counts how many times the function has been executed. If it reaches 10, you could prevent the timeout from being set again. I hope … -
Replied To a Post in Pass textbox value to checkbox
I'm sorry but I find it kind of hard to understand your question :p. Is what you're asking: 'How do I pass the value of a textarea to a checkbox …
The End.