home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Maschine's webscheduler for Media Portal
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Anonymous" data-source="post: 6822"><p>And the fix <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p>Fixes both "only future" and "only title searched"</p><p></p><p></p><p> // only search for future programs</p><p> $p_now = date("Ymdhis");</p><p></p><p> $p_query = "SELECT * FROM program WHERE (strTitle LIKE '%".$_GET[searchfor]."%' OR strDescription LIKE '%".$_GET[searchfor]."%') AND iStartTime > ".$p_now ." ORDER BY iStartTime";</p><p> $program = sqlite_query ($db,$p_query);</p><p></p><p></p><p>My first PHP code ever <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /> </p><p></p><p>Kind regards</p><p>Anders</p></blockquote><p></p>
[QUOTE="Anonymous, post: 6822"] And the fix :-) Fixes both "only future" and "only title searched" // only search for future programs $p_now = date("Ymdhis"); $p_query = "SELECT * FROM program WHERE (strTitle LIKE '%".$_GET[searchfor]."%' OR strDescription LIKE '%".$_GET[searchfor]."%') AND iStartTime > ".$p_now ." ORDER BY iStartTime"; $program = sqlite_query ($db,$p_query); My first PHP code ever :D Kind regards Anders [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Maschine's webscheduler for Media Portal
Contact us
RSS
Top
Bottom