Hello all, i need your help regaring this code, which is in python and i need to convert it into mips?? register $s0 holds the base address of list my_data, $s1 holds the length of the list my_data, register $s2 holds the base address of list my_data2 and $s3 holds the length of the list my_data2. def sum_to_x(x): sum = 0 for i in range (x): sum += i return sum my_data = [1, 3, 6, 7] my_data2 = [2, 1, 5] for i in range( len( my_data ) ): my_data[ i ] = sum_to_x( my_data[ i ] ) for …

Member Avatar
Member Avatar
-1 forum 6

I am trying to connect to a Microsoft SQL server database using PHP 5.6 and am getting the error "could not find driver". I am initially attempting to use PDO but I could use the procedural version if necessary. I have downloaded the SQL server PHP driver and placed it in the ext folder in my PHP installation. I have also specified the extension in php.ini. My web server is IIS 7. My platform is Windows 7 Professional (the same box for both the database and the web servers). PHP is executed correctly by IIS. I think I must be …

Member Avatar
Member Avatar
+0 forum 2

here if i click the Generate Employee Id button it should generate the random number in input textfield and then that button should hide after generate the id. how to do that? but, i can automatically generate the random number in input textfiled without the button. that code is below i'm posting. i want to use button here.. any help...?? <td><input type="text" name="emp" readonly="readonly" value="" /></td> <td><input type="button" value="Generate Employee Id" onclick="" /></td> this is the code for generate auto random number in input textfield without button.. <input type="text" name="emp" readonly="readonly" value="<?php function gen_random_string($length=6) { $chars ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890"; $final_rand =''; for($i=0;$i<$length; …

Member Avatar
Member Avatar
+0 forum 13

The End.