Jump to content

Recommended Posts

Not sure how well I can describe my situation, but I'll try...

 

I'm trying to create a reminder program for myself (I forget a lot). I have a mysql table set up where it stores the hour it's supposed to remind me and the description of the reminder...

 

I want to have some reminders with multiple hours, like it's supposed to remind me at "2,5,12". I can't just select the row where HOUR=2 because it has several other numbers in the same row, and I can't select the row where HOUR like '2' because then it might select the rows with 12 (which isn't 2). Is there a way I can select the rows where HOUR=2 and where HOUR has a 2 in the commas? Or do I have to just select the rows where HOUR like '2' and then sort through it with more code?

Link to comment
https://forums.phpfreaks.com/topic/156890-solved-select-in-a-comma-splice/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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