Search the Community
Showing results for tags 'split'.
-
Hi, How do you split a search string by space and put it into a prepare query? $strings = $_POST['strings']; $string_array = explode(" ", $strings); $search = $mysqli->prepare(" SELECT * FROM core_table where item_name in ( ? ) "); $search->bind_param("s", $string_array); ...
- 6 replies
-
- search string
- split
-
(and 1 more)
Tagged with:
-
My datebase structure like User_Id | UserName | Date | Time I would show result like User_Id | UserName | Date | In | Leave | Back IN | Out In = time 6-8 am Leave = time 12 pm Back in = time 5 pm Out= time 8 pm
-
Hi guys, I was wondering, is it possible to split an array into pages with 10 values on each page? And how can I make a navigation bar with Page 1 2 3 in it? And if it's possible, how would I do that? Thanks in advance, iRoot121
-
Hello, I have one big XML file (600 MB - 850 MB) in format "cells_yyyymmdd_hhmi.xml" I would like to specify that everyday i will have new file with new date. So, there should be general way to rea For exmaple, i have file of 7th January. Its, cells_20140107_154016 Goal is to split into small parts by shell script and do operation.
-
Okay - I'm trying to split the following string while perserving the values I used to split the string. I've tried searching on this and can't seem to figure out how to accomplish what I'm after using examples I've found. Here's what I have so far: var string = '[{"require":true,"minLengthInput":"6"},{"require":true,"emailAddress":"email"}]'; console.log(string.split(/},{(?=},{/)); So I want to perserve the },{ in the objects that come back. The above doesn't work at all but the output I want is: var[0] = [{"require":true,"minLengthInput":"6"}, var[1] = {"require":true,"emailAddress":"email"}] Thanks for any help you can provide me.
-
Hi, I have a string which I am pulling from a MySQL DB which unfortunately looks like the following. <p><img src="myimage.jpg" border="0" /></p> <p>My short paragraph</p> I would like to pull out <img src="myimage.jpg" border="0" /> and place it in a separate variable 'strImage' (so I can echo it elsewhere), and then place the remainder of the string in a second variable 'strText'. Note: The <img src> and <border> values will vary depending on the article I pull from the database. What method should I use to make this happen? Thank you so much for your help in advance! Matt