Posts

php - What is PDO , how it's related with sql injection & why i should use this? -

Image
Actually I did Google and got so many results, but I do not understand, 'I'm new in this field Am So any 1 can tell me in simple ways that what is PDO, why should I use it, what is SQL injection with example. Actually now my code is so that someone can help me ??? config.php & lt ;? Php $ mysql_hostname = "localhost"; $ Mysql_user = "root"; $ Mysql_password = ""; $ Mysql_database = "testdb"; $ Prefix = ""; $ Bd = mysql_connect ($ mysql_hostname, $ mysql_user, $ mysql_password) or die ("Could not connect to database"); Mysql_select_db ($ mysql_database, $ bd) or die ("database could not be selected"); ? & Gt; insert.php & lt ;? Include php ('config.php'); $ Account_no = $ _ post ['account_no']; $ Amount = $ _ post ['amount']; $ Save = mysql_query ("Include table mirror (account_no, volume) values ​​('$ account_no', '$ amount',")); Hea...

c - Sizeof pointer differs from its representation with printf? -

जब मैं करता हूँ int k = 9; Printf ("sizeof k:% zu \ n", आकारफ (& amp; amp; amp; amp;; k)); मुझे आकार 8 के रूप में मिलता है। लेकिन जब मैं प्रिंटफ़ ("p:% p \ n", & amp; amp; k; मुझे 0x7fff57e3ba24 मिलता है। मैं देख सकता हूं कि यह 12 हेक्स नंबर है जिसका अर्थ है (1 हेक्स 4 बीट्स के बाद से) कि सूचक 48 बिट्स पर रखता है जो 6 बाइट्स है। सवाल: क्यों आकार के आकार का प्रिंट 8 सूचक के लिए है, हालांकि इसकी केवल 6 बाइट्स? आपका तर्क यह है कि यदि मैं printf लिखता हूं ("%" डी ", 4); और यह 1 दशमलव अंक प्रिंट करता है, जो संभावित रूप से 1 बाइट में संग्रहीत किया जा सकता है, फिर sizeof (int) 1 बाइट होना चाहिए। संख्या 0x7fff57e3ba24 समान है 0x00007fff57e3ba24 । सिर्फ इसलिए कि इस प्रकार की संख्या को कम से कम कर सकते हैं, इसका मतलब यह नहीं है कि यह किसी भी कम स्थान पर है।

Are there macros which can be used to test Erlang version in driver C code? -

Erlang R15B जोड़ा ErlDrvSSizeT typedef, और R16B जोड़ा erl_drv_output_term समारोह और पुराने समकक्ष को नापसंद किया क्या पुराना एर्लंग के संस्करणों को उसी कोड के साथ समर्थन करने के लिए पूर्वप्रक्रमक मैक्रोज के साथ इन मतभेदों का परीक्षण करने का कोई तरीका है? आप ERL_DRV_EXTENDED_MAJOR_VERSION और उपयोग कर सकते हैं ERL_DRV_EXTENDED_MINOR_VERSION मैक्रो मूल्यों, erl_driver.h में आपूर्ति, सुविधाओं के बारे में निर्णय लेने के लिए। जब भी ड्राइवर एपीआई बदलता है, ये मान उपयुक्त रूप से बढ़ते हैं। ये वेतन वृद्धि हमेशा Erlang / OTP रिलीज़ नोट में समझाया गया है। उदाहरण के लिए, Erlang / OTP R15B कुछ एपीआई समारोह पैरामीटर प्रकार पूर्णांक से एक नए प्रकार ErlDrvSizeT करने के लिए बदल 64-बिट प्लेटफार्मों से बेहतर ढंग से सामना करने के लिए आप इस के लिए जांच कर सकते हैं और नीचे दिए गए कोड का उपयोग करते हुए पुराने पूर्व-आर 15 बी संस्करणों के लिए इसकी क्षतिपूर्ति कर सकते हैं: #if ERL_DRV_EXTENDED_MAJOR_VERSION & lt; 2 टाइपिंगफेस इंट एरलड्रॉव एसईजेटी; #endif यह typedef आप ErlDrvSi...

dropdownbox - how to insert three dropdown valuein one field in to database -

How can I add a date of birth to three dropdown values ​​in my database to my database? Am I correcting $ dob or is not it? Please help me My form & lt; Form name = "" id = "order-form" class = "smart-form" role = "form" verb = "" method = "post" enactepe = "multipart / form-data" & gt; & Lt; TR & gt; & Lt; Td> & Lt; Font color = "# 334D66" & gt; Date of Birth: & lt; / Td> & Lt; Td> & Lt; Select name = "birthday" & gt; & Lt; Option selected & gt; & Lt; / Options & gt; & Lt; Options & gt; 01 & lt; / Options & gt; & Lt; Options & gt; 02 & lt; / Options & gt; . . & Lt; / Select & gt; & Lt; Select name = "birthmate" & gt; & Lt; Option selected & gt; & Lt; / Options & gt; & Lt; Option & gt; January & lt; / Options & gt; & Lt; Option ...

osx - LLDB - Exit on... exit? -

I currently want to fully automate my compile-run-debugging process for cocoa / purpose-projects I am writing a script. My last line of code is: lldb -f builder / MyApp.app -o "run" which actually opens the debugger, connects the process, and runs it. However, when the app is released, the debugger is open, waiting for a command. In addition to shutting it in any way, after the attached process is finished? One way to do this will be to use Ajith binding, and the incidence of LDD Will listen for If you run the following script, it is a lunch app in debug mode, and well if you close the app script: Other ways might also work: Run the app, Get the screen of the running app, Start LDD and PID Attach to Monitor if the app is running and I do not have to kill l lbb.

Split rule of args in main function in Java? -

Here is a strange problem I ran: Program has been created Args, here is the code: test for public class {public static zero main (string [] args) {for (int i = 0; i & lt; args.length ; I ++) {System.out.println (Args [i]); }}} Then I created a jar file and run the following command: java -jar test.jar test and 1 However, this does not print as expected "test and 1", the result is: test '1' has internal or external commands, operative programs Or is not recognized as a batch file. So my question is: What is the separation of Argus? If I really want to get "test and 1", then what should I do? Thank you! There is nothing to do with Java & amp; The character is special for the Windows Shell (I can tell it to Windows with the error message) : it separates two rows on one line, so what are you doing Java -jar test.jar test is telling the shell to run and then runs 1 . If you want to go to test & amp; 1, you must put...

ios - UICollectionView doesn't display any image -

I am trying to display the image from the document directory in the UICollectionView, everything is fine but no image is visible. - View (zero) viewsDidload {[Super Viewedload]; // Start Recipe image array NSArray * path = NSSearchPathForDirectoriesInDomains (NSDocumentDirectory, NSUserDomainMask, yes); NSString * document directory = [path item overindexx: 0]; NSArray * dirContents = [[NSFileManager Default Manager] Contentoff DirectoryAct Path: Document Directory Error: Zero]; NSMutableArray * image = [NSMutableArray array]; (For dirContents in NSString * tirring) {if ([tString hasSuffix: @ ". Png"]) {[image addObject: tString]; ListeImages = [NSArray arrayWithArray: image]; }}} - (NSInteger) collectionView: (UICollectionView *) collectionView NumberOffAd Insights: (NSInteger) section {return listeImages.count; } - See the (UICollectionViewCell *) collection: (UICollectionView *) collectionView cellForItemAtIndexPath: (NSIndexPath *) index path {static NSString * ide...