Posts

mysql - mysqli extension is missing debian -

im डेबियन पर mysql-sever स्थापित करने का प्रयास करें (WD mycloud live) मैंने सब कुछ कोशिश की है I गूगल पर पाया, लेकिन कोई सफलता /etc/php5/conf.d/mysqli.ini न मौजूद है स्थापित के लिए मैं apt-get -f mysql सर्वर mysql-ग्राहक mysql इस्तेमाल किया अब तक मेरे पास mysql चल रहा है PHP संस्करण 5.4.11-1 लिनक्स डब्लूडएमएमक्लाउड 3.2.26 # 1 एसएमपी शुक्र दिसंबर 27 13:50:41 पीएसटी 2013 armv7l अतिरिक्त .ini फ़ाइलों पार्स /etc/php5/apache2/conf.d/10-pdo.ini, /etc/php5/apache2/conf.d/20-apc.ini, / etc / PHP5 / apache2 / conf.d / 20-curl.ini, /etc/php5/apache2/conf.d/20-pdo_sqlite.ini, /etc/php5/apache2/conf.d/20-sqlite3.ini, / आदि /php5/apache2/conf.d/include_path.ini mysql - संस्करण - & gt; 14.14 distrib 5.5.35 ver mysql, डेबियन-linux-जीएनयू (armv71) के लिए ReadLine 6.2 का उपयोग कर मैं वहाँ Webmin स्थापित मैं अपने mysql सर्वर जानकारी देख सकते हैं, मैं वहाँ है पथ आदेश mysqlshow को mysql आदेश को / usr / bin / mysqladmin पथ - / usr / bin / mysql पथ आदेश mysqldump के लिए - / usr / b...

cakephp - How can I fetch rows using numeric values as condition? -

There is a colum alphanumeric values ​​in my database table. I want to get only rows of numeric values ​​in this column. $ this-> Mymodel- & gt; Find ('all', 'position' => array ('mymodel .field') => gt; ???)); If you are using MySQL, you can use it. $ this-> Mymodel- & gt; Search ('all', 'conditions' => (array' Mymodel.field REGEXP '^ [0-9] + $ "'));

hyperlink - Ruby on Rails: Create record from link -

How do I issue a create order from a link? I have an if / else statement that displays editing or making, but I have not found the correct method of recording. I had this, but then I have to refresh the page to get this function, which I can not have: & amp; Lt;% If FollowUwyk Where (subject_id: sub. Point_id). First! = ZERO% & gt; & Lt;% = link_to "edit", follow_up3_week_path ([FollowUp3Week.where (subject_id: sub.subject_id). First])% & gt; & lt;% else% & gt; & Lt;% = FollowUp3Week.create (subject_id: sub.subject_id)%> & Lt;% end% & gt; And I'm trying this, but there is no luck yet (where topics are the link to the current page): Whatever suggestions, or references I should read, be greatly appreciated I really want to 'create' the link to generate a 'edit' link. Thank you for your time. You call a controller You will only be able to create a record, so what you want to do in your case,...

Eloquent JavaScript 2nd Edition recursion exercise solution -

I tried to solve the recurring practice of online book: Here's the question: We have seen that% (the remaining operator) can be used to test whether this number is used to check a number or weird using% 2 or not that it is divisible There is a positive way from two to the fact that a (positive, complete) number is too odd: There is also zero. One is strange. li> For any other number, its tolerance is similar to N-2. Define a recurring function according to this description. Function should accept a number parameter and return a boolean. Check it at 50 and 75. See how it behaves at 1. Why do I do this? Can you think of a way to fix it? Here's what I have tried and this works: function isEven (number) {if (number == 0) {back true; } And {return (-member% 2 == 0)? right wrong; } Returns also (number-2); } Console.log (isEven (-1)); But, this seems a wrong answer because I understand that the author wants me to use 2. I am thinking that this is the...

php - jquery AJAX function issue -

I am trying to run a function that executes a spinner while loading a PHP script And refreshes a PHP file that counts the number of rows inserted to show the progress of the script. This is what I have done so far: The progression () function starts yet, even if the button is not pushed even after the interval has ended, I believe that I should tie it with the spinner function But I am not completely sure how to do this work. Edit: Here is the HTML that displays buttons and divisions: & lt; div id = "stage" & gt; Click to import new data into the Assetata table & lt; P & gt; & Lt; div id = "spinner" & gt; & Lt; Img src = "/ images / spinner.gif" alt = "Loading ..." & gt; & Lt; / Div & gt; & Lt; Div id = "content" & gt; & Lt; / Div & gt; & Lt; P & gt; & Lt; Input type = "button" id = "driver" value = "load data" onClick = ...

ios - Storing functions in an array and applying them to an array of numbers -

I have prototyped an algorithm in Python of my iOS game, and I would have to rewrite the ObjC actually, my There is a board of 16 numbers, and I should loop three numbers through each number and the four functions I am using (add, subtract, multiply, exponentiate). 1 + 2 + 3, 2 * 3-4, 3 ^ 4-5, 9-4 ^ 3, etc., but without the operation (first operation is always done first). Would I like this to be an overview of how this can be implemented in objective C, in particular, what is the equivalent of an array of work in Objective-C? Is it an easy way to implement it with selectors? What is the best structure to use for loops with numbers? Array of NSInteger s, int s, NSArray / NSMutableArray of NSNumbers ? Random import as random = 0 maximum = 9 max_target = 20 max_to_calculate = 100 drt multiplication (x, y): return x * y def exponent (x, y): return x * Y def plus (x, y): return x + y def subtract (x, y): return x - y function_array = [multiply, exponate, add, subtract] b...

PHP query to search multiple tables in MySQL database? -

इस सवाल का पहले से ही एक उत्तर है: 3 जवाब मैंने एक के माध्यम से पढ़ा है इन प्रतिक्रियाओं में से कुछ और मुझे यकीन नहीं है कि मैं इस बारे में कैसे जाना है, यह समझता हूं। मैं पूरी तरह से इस के लिए नया हूँ, और थोड़ा खो दिया महसूस अभी, मेरे पास एक PHP क्वेरी है जो एक टेबल से डाटा का उपयोग करती है I मेरे पास एक डेटाबेस है जो प्रतिदिन एक नई तालिका उत्पन्न करता है मुझे सभी तालिकाओं में मूल्यों के लिए डेटाबेस को निरंतर खोज करने में सक्षम होना चाहिए। इस समय मेरा कोड है: & lt;? Php $ dbc = mysql_connect (' स्थानीय होस्ट ',' जड़ ',' abcde '); अगर (! $ डीबीसी) (मर ('कनेक्टेड नहीं:'। Mysql_error ()); } $ Db_selected = mysql_select_db ('game_database', $ dbc); अगर (! $ Db_selected) {मर ("कनेक्ट नहीं कर सकते:"। Mysql_error ()); } $ Query = "चयन करें * से 03-31-14` जहां खेल = 'कुलों का संघर्ष'"; $ परिणाम = mysql_query ($ क्वेरी); यदि (! $ query) {die ("कनेक्ट नहीं कर सकते:" .mysql_error ()); } जबकि ($ r...