8,966 Posted Topics

Member Avatar for kristo_1

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']))

Member Avatar for pritaeas
0
183
Member Avatar for joshl_1995

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 …

Member Avatar for joshl_1995
0
259
Member Avatar for ignnniter

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).

Member Avatar for kRod
0
198
Member Avatar for ignnniter
Member Avatar for RikTelner
Member Avatar for vizz

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.

Member Avatar for pritaeas
0
222
Member Avatar for mattyd

> 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, …

Member Avatar for rch1231
0
121
Member Avatar for dinhunzvi

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.

Member Avatar for pritaeas
0
230
Member Avatar for olegb

[Message queues](http://msdn.microsoft.com/en-us/library/windows/desktop/ms711472(v=vs.85).aspx) can be used for communication.

Member Avatar for pritaeas
0
302
Member Avatar for pritaeas

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 …

Member Avatar for Dani
0
367
Member Avatar for AARTI SHRIVAS
Member Avatar for shakti_1

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.

Member Avatar for pritaeas
0
105
Member Avatar for Transcendent

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.

Member Avatar for pritaeas
0
125
Member Avatar for sweet.virat
Member Avatar for Siberian
Member Avatar for iamthwee
Member Avatar for pritaeas

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. ![0ab8e0c6fc92294cb65c942ed5249b0b](/attachments/large/0/0ab8e0c6fc92294cb65c942ed5249b0b.png "0ab8e0c6fc92294cb65c942ed5249b0b")

Member Avatar for pritaeas
1
595
Member Avatar for mattyd

Am not sure if it's related, but I get this a lot after manually refreshing the page with F5 (work IE11, home Opera). ![4ab1d4f1e0969b3a04ec6c0d9324d581](/attachments/large/0/4ab1d4f1e0969b3a04ec6c0d9324d581.png "4ab1d4f1e0969b3a04ec6c0d9324d581")

Member Avatar for Dani
0
361
Member Avatar for mattyd

The error means your query has failed. Add error checking to that to find out more.

Member Avatar for mattyd
0
296
Member Avatar for 2mhzbrain
Member Avatar for 2mhzbrain
0
299
Member Avatar for castajiz_2

http://www.daniweb.com/web-development/php/code/462126/pdo-binding-example http://www.daniweb.com/web-development/php/code/462098/mysqli-binding-example

Member Avatar for JorgeM
0
146
Member Avatar for azegurb

The `&` referencing is something that predates PHP5 and it's use is now no longer needed.

Member Avatar for azegurb
0
167
Member Avatar for nawazsj

Looks like you upload the path into the table, so you should just output echo "<img src=\"{$row['photos']}\"/>";

Member Avatar for pritaeas
0
316
Member Avatar for davy_yg

No, it's not correct. You need `LIKE` after every column, unless you concatenate them first.

Member Avatar for davy_yg
0
234
Member Avatar for sweet.virat
Member Avatar for LRNPHP

http://php.net/manual/en/function.date.php `date('w', $NewDate)` returns 0 through 6, so you exclude 0 (sunday) and 6 (saturday).

Member Avatar for LRNPHP
0
445
Member Avatar for mattyd

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.

Member Avatar for pritaeas
0
174
Member Avatar for FOYSAL_1

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".

Member Avatar for pritaeas
0
435
Member Avatar for RikTelner

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?

Member Avatar for RikTelner
0
195
Member Avatar for geneh23
Member Avatar for AmirHosseinHP
0
2K
Member Avatar for baig772

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.

Member Avatar for baig772
0
219
Member Avatar for inetwebhost
Member Avatar for urtrivedi
Member Avatar for Manish02
0
218
Member Avatar for Eagle.Avik
Member Avatar for Eagle.Avik
0
691
Member Avatar for eburlea
Member Avatar for MasterH_1

> And im getting a lot of warnings and notices, how do i turn them off. Don't turn them off... fix the problems!

Member Avatar for pritaeas
0
119
Member Avatar for gu mi nam
Member Avatar for pritaeas

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 …

Member Avatar for pritaeas
0
240
Member Avatar for Stefano Mtangoo

> i m not able to execute this code. > mai i get a complete code for this.. It is complete, what's the problem?

Member Avatar for pritaeas
0
618
Member Avatar for mrhankey

http://jqueryui.com/datepicker/ If you are referring to that, it's `datepicker`, and not `datepick` Also, why are you including the file twice?

Member Avatar for diafol
0
213
Member Avatar for klemme

I created [this](http://www.pritaeas.net/tools/linkfarm/) filtering example. Not sure if it's useful.

Member Avatar for klemme
0
196
Member Avatar for RikTelner

> 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?

Member Avatar for RikTelner
0
80
Member Avatar for safeer008

> 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.

Member Avatar for pixelsoul
0
113
Member Avatar for thilipdilip

> 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)

Member Avatar for thilipdilip
0
2K
Member Avatar for newbie26
Member Avatar for newbie26
0
2K
Member Avatar for terryds
Member Avatar for nowewiesci
Member Avatar for pritaeas
0
153
Member Avatar for Jibran12345

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.

Member Avatar for pritaeas
0
429
Member Avatar for Warrens80
Member Avatar for Reverend Jim
0
1K
Member Avatar for Khawar_1

The End.