8,966 Posted Topics
Re: On line 45 you use `$_POST['checkbox']`, but this may not necessarily have a value. I assume if nothing is checked, then no updates are needed, so you can probably do this on line 42: if (isset($_POST['Update']) && isset($_POST['checkbox'])) | |
Re: The MySQL extension is deprecated, so will die off soon. Left is MySQLi versus PDO basically. There are some minor differences, but overall they do the same. The advantage of PDO is that it's easier to use a different database (Postgres for example) without having to rewrite your code. PDO … | |
Re: If you turn your string into a list/array, then you can use [Linq to intersect](http://msdn.microsoft.com/en-us/library/bb460136(v=vs.110).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1). | |
Re: select *, (select count(*) from following where follower_id = $user_id) as following from members where member_id != $user_id order by firstname Something like this might work, although I'm sure it can be improved upon. A left join might be quicker, but I need to know what your data looks like. | |
Re: > I write a lot of code. I save many back-ups, that is, current versions of the code in case I need to roll-back. This can be quite tedious and time-consuming. Wouldn't it make more sense to connect to a CVS (tfs, git, svn) and auto commit every 5 minutes, … | |
Re: http://php.net/is_float Don't know why your regex fails, looks fine at first glance. Your function never returns `true` by the way. | |
Re: [Message queues](http://msdn.microsoft.com/en-us/library/windows/desktop/ms711472(v=vs.85).aspx) can be used for communication. | |
I thought this was discussed somewhere, but I can't find the thread. I've updated my authorization to the one you gave me Dani. If I now start my DwArticleWatch after a while (about 2 hours, but unconfirmed) I get an error message that curl failed. I think the access token … | |
| |
Re: You can use `FIND_IN_SET()`. That would mean if you want to search for `php,mysql` for example, that you need to split that string and build your query. | |
Re: Code sample is [here](http://www.daniweb.com/web-development/php/code/434415/using-phpmysql-with-error-checking). You'll have to create your database and tables, and then adjust the code to what you have. More examples in the "Code Snippets" tab of the PHP forum. | |
Re: Can you post your code here? | |
Re: Missing space: var thedate = new Date(1971, 11, 9); | |
![]() | |
http://www.daniweb.com/web-development/php/threads/470495/trim-content#post2052543 I see the link in the code as strikethrough (Win7/IE11). Image attached.  | |
Re: Am not sure if it's related, but I get this a lot after manually refreshing the page with F5 (work IE11, home Opera).  | |
Re: The error means your query has failed. Add error checking to that to find out more. | |
Re: $comment_date = date('d-m-y'); Should be: $comment_date = date('Y-m-d'); | |
Re: http://www.daniweb.com/web-development/php/code/462126/pdo-binding-example http://www.daniweb.com/web-development/php/code/462098/mysqli-binding-example | |
Re: The `&` referencing is something that predates PHP5 and it's use is now no longer needed. | |
Re: Looks like you upload the path into the table, so you should just output echo "<img src=\"{$row['photos']}\"/>"; | |
Re: No, it's not correct. You need `LIKE` after every column, unless you concatenate them first. | |
| |
Re: http://php.net/manual/en/function.date.php `date('w', $NewDate)` returns 0 through 6, so you exclude 0 (sunday) and 6 (saturday). | |
Re: It's a modular approach. However, perhaps since you are redesigning anyway, you can try an [Object Oriented](http://www.daniweb.com/web-development/php/tutorials/437592/introduction-to-phps-object-orientation) approach. | |
Re: What exactly do you need help with? See the manual for datepicker to see how to set "DD.MM.YYYY" as the format. However, since you want to insert into a database, then the most likely format you need is "yyyy-mm-dd". | |
Re: The picture shows a tree, not what it represents (or not readable). Are you just interested in creating this graphically, or is there some meaning/data behind it that needs implementing too? | |
Re: Is this running on your development machine, or on a shared host? | |
Re: Since you apparently didn't wait for an answer on the forum there, I suggest you check the question before yours. It discusses changing the widget, perhaps that's what you need. | |
Re: Welcome to DaniWeb. | |
Re: Perhaps this answers your question: https://support.google.com/webmasters/answer/35287 | |
Re: $('#modal-launcher-user').unbind('click'); Will remove the click handler. | |
Re: > And im getting a lot of warnings and notices, how do i turn them off. Don't turn them off... fix the problems! | |
We're in the process of upgrading/improving our application framework, and we're currently looking into (application) user groups and roles. We want to implement CRUD rights to our screens. What's in place is a kind of ORM, so there's a class for each table already. Am just looking for ideas on … | |
Re: > i m not able to execute this code. > mai i get a complete code for this.. It is complete, what's the problem? | |
Re: http://jqueryui.com/datepicker/ If you are referring to that, it's `datepicker`, and not `datepick` Also, why are you including the file twice? ![]() | |
Re: I created [this](http://www.pritaeas.net/tools/linkfarm/) filtering example. Not sure if it's useful. | |
Re: > Offcourse I could use JavaScript, but I wouldn't be able to get this to PHP That's where AJAX comes in. Is it solved because you found a solution? If so, care to share? | |
Re: > it is not working. It doesn't work on IE, not sure about other browsers, so you'll need to switch to CSS3 animations for example. | |
Re: > And is this the correct format for saving such type of data ? The usual way is to use a link table. > Now I want to display all the products came under a specific category. SELECT * FROM product WHERE FIND_IN_SET('1', category) | |
Re: You mean you want to check if a student passed all of his subjects? | |
Re: .topblack { position:relative; padding-top: 5px; } | |
Re: > Maybe some specific server-side tasks? You can use it to write UDF's for MySQL. | |
Re: Although not directly an answer, this [code snippet](http://www.daniweb.com/web-development/php/code/460663/article-tagging-example) shows how it can be done for tagging, which is basically the same. You might want to show your tables, some data and expected result, so we can see what you are working with. | |
![]() | |
Re: Source code of what software? Did you contact your vendor? |
The End.