8,966 Posted Topics
Re: Your method: function addnews($t2, $t1, $f1, $date) { mysql_query("insert into news (title, content, pic, date) values ('$t1', '$t2', '$f1', '$time') "); } Two things with this: 1. You use `$date` as parameter, yet use `$time` in the query. 2. Add error logging (at least while testing) to see if/what goes … | |
Re: One thing I notice is `$message` is undefined (line 19). Am not so sure though, that `curl` raises exceptions on errors. | |
![]() | Re: Technically the code is correct. I assume it's not doing what you want. What do you want to happen, and what is it doing instead? |
Re: Have you tried the domain without the leading dot? It should be ignored, but I don't know how strict browsers are with this. | |
Re: From what [I've read](http://www.html5rocks.com/en/tutorials/workers/basics/) this is because the worker is running in a separate thread. The whole purpose of these workers is that they run separate, without DOM interaction. | |
Re: Install a local webserver (WAMP/XAMPP). You can use a text editor, but a good IDE to help you write code and debug is recommended. Use php.net as your main reference, decide on an application to build, then find a tutorial on that specific subject to get you started. ![]() | |
Re: > i have problem my login it's not running plzzz help me Describe your problem, what you have tried and any other relevant info. "It's not running" is just vague. | |
Re: http://www.homeschoolmath.net/teaching/square-root-algorithm.php | |
Re: SHA and MD5 are hashes, not encryption algorithms. | |
Re: Tutorial on [Open Redirection Attacks](http://www.asp.net/mvc/tutorials/security/preventing-open-redirection-attacks). | |
Re: Perhaps [this thread](http://www.daniweb.com/web-development/php/threads/234868/error-commands-out-of-sync-you-cant-run-this-command-now) can help. | |
Re: This perhaps: https://kinecthandtracking.codeplex.com/ | |
Re: http://framework.zend.com/learn/ http://framework.zend.com/manual/2.1/en/index.html | |
Re: You selector is `div:hidden:first` and they work in that order. `div` will list all divs in your DOM. `:hidden` will filter that list so it only contains hidden divs. Lastly `:first` will return the first of those, so the first hidden div it encounters. | |
Re: If you mean it's still visible when you do "View Source" then yes. That only shows the initial downloaded page. If you inspect the page with the developer tool, you see what's in the DOM. Your element should not be shown there. | |
Re: Your "submit" is a link tag, which does not submit automatically. You either need to use Javascript code to trigger the submit, or use `<input type="submit"/>` | |
Re: If you control what is returned from the database, then you can decide to return the total number of records with every call. What I would do is an Ajax call that has the current page as parameter, and the number of items you want to show. What I would … | |
Re: Like so in MySQL, but you need to add the column type again. ALTER TABLE table_name CHANGE COLUMN course_name course_title VARCHAR(64) In SQL Server you can do this: sp_rename 'table_name.course_name', 'course_title' , 'COLUMN' | |
Re: Why not leave the "section_to" value `NULL` (meaning no value). In your queries, you can then use `IFNULL(section_to, NOW())`. Once you know the correct end date, you can always fill it correctly. | |
Re: Line 17 should be directly after line 11, so you'll need to remove the semi-colon at the end of 11. | |
Re: Do you want to use a Joomla module in a Non-Joomla website? | |
Re: You remove the `audio` tag, but do not put it back (or so it appears). | |
Re: Check your database to see how the foreign key is setup. It's possible you are not allowed to delete if there is still a reference to that particular FK. | |
Re: The problem with your query is that `MATCH()` has column names as parameters, and not the values from those columns. That's why the `REPLACE()` is not allowed. It is very difficult to determine, if the user inputs "toothbrush", that you should also look for "tooth" and "brush". The only way … | |
Re: Read [this example](http://www.globalguideline.com/JavaScript_Guide/Java_Script_Conditions.php) first. | |
| |
Re: [This page](http://www.webreference.com/programming/javascript-keyboard-shortcuts/2.html) has a zip showing how to do it. | |
Re: See `BETWEEN` and `NOW()` in the MySQL manual. | |
Re: Both are possible. It depends on what you are planning to do with them, that should guide you to the right choice. | |
Re: Something like [this](http://www.codeproject.com/Articles/17048/Examples-to-create-your-Conferencing-System-in-NET) perhaps? | |
Re: For starters you can create a tool that analyzes your Apache log file. That already contains a lot of information you can use. | |
Re: I'm unsure what you have and what you are trying to accomplish. Can you give a better example? | |
Re: You'll need to find an SMS gateway provider, and use it's API. | |
Re: > when i added some design the validation is not working anymore What exactly is no longer working, and how did it work before? | |
Re: `mysql_query` does not support executing multiple queries, so you'll have to split them into to separate ones. | |
Re: http://dev.mysql.com/doc/refman/5.6/en/alter-table.html Use `FIRST` | |
Re: Companies use a CMS. Either they are specialized in a third party one (free/paid), or they have built their own and are using that. | |
Re: Have you tried connecting to the external IP address of your machine? You may need to set up port forwarding on your router. | |
Re: If you run `getmark.php` in your browser, what do you see? | |
Re: `this` points to the current dom element. For example if you do: $('p').each(function(){ alert(this.id); }); It loops over every paragraph, and within each loop `this` is the paragraph which is the current one in that loop. The alert will show the paragraph's id attribute. | |
Re: 1. The script is called as soon as the browser interpreter gets to line 20. 2. `index` is the position of the current `div`, `currentClass` get the value of that div's class attribute (zero, or more space separated classes). 3. What is returned is **added** to the current class(es) of … | |
Re: None of your images show a diagram, just a table layout. It's hard to guess how far you want to take this, but I'd suggest never to create columns named "artist1_ID, artist2_ID, artist3_ID, artist4_ID". This indicates that you need an intermediate table, because what do you do when you need … | |
Re: > return variance / (Values.Count - 1); Division by zero possibility. | |
Re: I see you generate a random post id. What type of column is this in the database? You should remove the single quotes around `curdate()`, as it is a MySQL function. | |
Re: http://www.w3.org/ It's a standards organization. Technically, it has nothing to do with building websites. | |
Re: You try to execute a `mysql_query`, but where do you connect to your database? |
The End.