I do not know how to use mysqli_result like in the past. Is this OK? How is right WHERE status = 'popup' and creditsp> = 1 and (CH) from $ res = mysqli_query ($ con, "SELECT` id`,` usrid`, `url` site Lt; cf || cf = 0) sequence by rand () border 1 "); $ Urll = mysqli_result ($ res, 0, "url"); $ Ownerid = mysqli_result ($ res, 0, "Elixir"); $ Citid = mascile_salt ($ res, 0, "id"); Use fetch_assoc on the results: $ line = $ res-> gt; Fetch_assoc (); $ Urll = $ line ['url']; $ Owner = $ line ['nectar']; $ Site id = $ line ['id']; If there are more than one line, then: while ($ line = $ res-> fetch_assoc ()) {// process $ Line}
I am trying to clone a request using the given method in this reply: However, if I have content in the original request, then get an Object Dispatch option. How can you clone HttpRequestMessage? This should do the trick: public static async works & lt ; HttpRequestMessage & gt; CloneHttpRequestMessageAsync (HttpRequestMessage Request) {HttpRequestMessage Clone = New HttpRequestMessage (req.Method, req.RequestUri); // Copy the content of the request (through memorystream) in the clone object var ms = new MemoryStream (); If (req.Content! = Null) {wait req.Content.CopyToAsync (ms) Configure (wrong); Ms.osition = 0; Clone.Source = New Stream Continent (MS); // Copy content headings if (req.Content.Headers! = Tap) foreach (var in req.Content.Headers) clone. Content Headers.Add (h.Key, h.Value); } Clone. Version = Rick Version; Foreign currency (keywalkueer & lt; strings, object & gt; support in rike properties) clone Properties Add (prop); Header in Foreach ...
$ str = "हैलो मोटोबेल रिंग्सिंग स्पीच"; लोअरकेस अक्षर से पहले मौजूद होने पर मुझे इस अक्षर को अपरकेस अक्षर से विस्फोट करना होगा। इस तरह से: $ splitted = array (0 = & gt; "हैलो मोटो", 1 = & gt; "बेल रिंग्स", 2 = & gt; "किंग स्पीच"); कोई भी विचार? मैं reg_ex का उपयोग करने की कोशिश करता हूं, लेकिन काम नहीं कर रहा हूं: $ pieces = preg_split ('/ (? = [ए- ZÐ ?? - Я]) / u ', $ str, -1, PREG_SPLIT_NO_EMPTY); var_dump (preg_split ('/ (? & Lt; = [एज़] ) (? = [एजी]) / ',' हैलो मोटोबेल रिंग्सिंग स्पीच ')) // सरणी (3) {// [0] = & gt; // स्ट्रिंग (10) "हैलो मोटो" // [1] = & gt; // स्ट्रिंग (10) "घंटी के छल्ले" // [2] = & gt; // स्ट्रिंग (11) "किंग स्पीच" //}
Comments
Post a Comment