
zgkhoo
Members-
Posts
507 -
Joined
-
Last visited
Never
Everything posted by zgkhoo
-
how to let print_r($array) in a proper way? which this ...very unreadable Array ( [0] => Array ( ) [1] => Array ( [0] => 16 ) [2] => Array ( [0] => 8 ) [3] => Array ( [0] => 24 ) [4] => Array ( [0] => 4 ) [5] => Array ( [0] => 20 ) [6] => Array ( [0] => 12 ) [7] => Array ( [0] => 28 ) [8] => Array ( [0] => 2 ) [9] => Array ( [0] => 18 ) [10] => Array ( [0] => 10 ) [11] => Array ( [0] => 26 ) [12] => Array ( [0] => 6 ) [13] => Array ( [0] => 22 ) [14] => Array ( [0] => 14 ) [15] => Array ( [0] => 30 ) [16] => Array ( [0] => 1 ) [17] => Array ( [0] => 17 ) [18] => Array ( [0] => 9 ) [19] => Array ( [0] => 25 ) [20] => Array ( [0] => 5 ) [21] => Array ( [0] => 21 ) [22] => Array ( [0] => 13 ) [23] => Array ( [0] => 29 ) [24] => Array ( [0] => 3 ) [25] => Array ( [0] => 19 ) [26] => Array ( [0] => 11 ) [27] => Array ( [0] => 27 ) [28] => Array ( [0] => 7 ) [29] => Array ( [0] => 23 ) [30] => Array ( [0] => 15 ) [31] => Array ( [0] => 31 ) )
-
why modified???
-
Array ( [0] => Array ( ) [1] => Array ( [0] => 16 ) [2] => Array ( [0] => 8 ) [3] => Array ( [0] => 24 ) [4] => Array ( [0] => 4 ) [5] => Array ( [0] => 20 ) [6] => Array ( [0] => 12 ) [7] => Array ( [0] => 28 ) [8] => Array ( [0] => 2 ) [9] => Array ( [0] => 18 ) [10] => Array ( [0] => 10 ) [11] => Array ( [0] => 26 ) [12] => Array ( [0] => 6 ) [13] => Array ( [0] => 22 ) [14] => Array ( [0] => 14 ) [15] => Array ( [0] => 30 ) [16] => Array ( [0] => 1 ) [17] => Array ( [0] => 17 ) [18] => Array ( [0] => 9 ) [19] => Array ( [0] => 25 ) [20] => Array ( [0] => 5 ) [21] => Array ( [0] => 21 ) [22] => Array ( [0] => 13 ) [23] => Array ( [0] => 29 ) [24] => Array ( [0] => 3 ) [25] => Array ( [0] => 19 ) [26] => Array ( [0] => 11 ) [27] => Array ( [0] => 27 ) [28] => Array ( [0] => 7 ) [29] => Array ( [0] => 23 ) [30] => Array ( [0] => 15 ) [31] => Array ( [0] => 31 ) ) output if enter only 31 number
-
thank you very much wat if i enter no enough number ? eg..only 6 number 1,2,3,4,5,6,7 wat will happen?
-
is a pyramid....keep increase....keep expanding.... how then? i cant estimate....cos it depend on how the user input how many data inside
-
the total number is binary ..which will only 2 number 4 number 8 number (example of above is this) 16 number 32 number 64 number and so on..
-
i wanna sort the number in an array ..which consist of 1 2 3 4 5 6 7 8 become this(split the middle of the back part of array and put into the bottom) 1 2 3 4 5 6 7 8 then become (split middle again ) 1 2 5 6 3 4 7 8 then become 1 5 3 7 2 6 4 8 then finally the array sort from 1 2 3 4 5 6 7 8 to 1 5 3 7 2 6 4 8 anyone how to write it? ??? move the back middle part of the array to
-
Array Limit In PHP。。。sorry miss post.....pls remove..thanks..
zgkhoo replied to zgkhoo's topic in PHP Coding Help
u estimate a 500char array use how much bit? -
Array Limit In PHP。。。sorry miss post.....pls remove..thanks..
zgkhoo replied to zgkhoo's topic in PHP Coding Help
1 array[] =how many bit? -
Hi, Here i am putting my question in front to all of you that may be common one for you. My question is that: What is the array limit in PHP ? means How many elements can be stored in an array at a time while using PHP ?
-
$sql="INSERT INTO pyramid(PyramidID,Serialnum,Upline) VALUES ('$lastID',$cardID,$_POST['upline']),'11111')"; the $_POST['upline']) appear to be invalid ..after put in the quote.. wat should i modify? thanks..
-
what is the max number table/database limit for mysql?
zgkhoo replied to zgkhoo's topic in MySQL Help
i suspect a real problem..which afraid after i design the database reach the limit.. thanks -
what is the max number table/database limit for mysql?
zgkhoo replied to zgkhoo's topic in MySQL Help
*bump* -
what is the max number table/database limit for mysql?
zgkhoo replied to zgkhoo's topic in MySQL Help
wat if i changed to oracle? is it need rewrite all my *.php files? thanks -
what is the max number table/database limit for mysql?
zgkhoo replied to zgkhoo's topic in MySQL Help
wat if i reach those limit? the database cant insert any data anymore? would it crash the website? -
how to convert mysql to oracle ? i need rewrite all my php file's code?
-
what is the max number table/database limit for mysql? what if i reach those limit?
-
<?php $login=$_SESSION['UserID']; $login=1009; include '../../../config.php'; include '../../../opendb.php'; echo "</br>login=".$login; echo "calculate ur total game point"; $totalpoint=0; echo "show all ur gamepoint,and total it up !"; echo"<left><table border=1><tr> <td>GpTID</td><td>TranDate</td><td>Mode</td><td>UserID</td><td>CardSerial</td><td>Point Earn</td><td>Purpose</td><td>BenefitFrom</td><td>BenefitFlevel</td></tr>"; //finding all card that owner owned $result=mysql_query("SELECT * from gptran WHERE UserID='$login'")or die('Query failed: ' . mysql_error()); while($row = mysql_fetch_array($result,MYSQL_ASSOC)){ echo "<tr><td>$row[GpTID]</td><td>$row[TranDate]</td><td>$row[Mode]</td><td>$row[userID]</td><td>$row[CardSerial]</td><td>$row[TranPoint]</td><td>$row[Purpose]</td><td>$row[benefitFrom]</td><td>$row[benefitFlevel]</td></tr>"; $totalpoint+=$row[TranPoint]; }//end while echo "</br> Your total game point=".$totalpoint; echo "</table></left>"; function lastGpTID(){ //finding the lastGpTID in DB echo "</br></br>enter last gpTID function"; $result2=mysql_query("SELECT * from dbstore"); while($row2 = mysql_fetch_array($result2,MYSQL_ASSOC)){ return $row2[LastGpTID]; } } if(isset($_POST[click])){ echo "<br>exchange clicked"; echo "</br>expoint=".$_P0ST['point']; echo "</br>test=".$_P0ST[test]; //$sql="INSERT INTO gptran (TranDate,Mode,UserID,TranPoint,Purpose,FromWhere,ToWhere) // VALUES // (NOW(),'Debit','$login',$_P0ST[Expoint],'EXCHANGE2CASH','UserPoint','UserCash')"; // mysql_query($sql); // $sql="INSERT INTO gptran (GpTID,TranDate,Mode,UserID,TranPoint,Purpose,FromWhere,ToWhere) // VALUES // (lastGpTID(),NOW(),'Debit','$login',$_P0ST[expoint],'EXCHANGE2CASH','UserPoint','UserCash')"; // mysql_query($sql); } ?> <html> <form action="displaygamep.php" method="POST"> <input type="text" name="point"> <Input type="text" name="test"> <input type="submit" name="click"> </form> </html> i changed...still the same output after i input number and click the submit button: exchange clicked expoint= weird.. ??? ??? ???
-
part of the code <?php if(isset($_POST[click])){ echo "<br>exchange clicked"; echo "</br>expoint=".$_P0ST[point]; //$sql="INSERT INTO gptran (TranDate,Mode,UserID,TranPoint,Purpose,FromWhere,ToWhere) // VALUES // (NOW(),'Debit','$login',$_P0ST[Expoint],'EXCHANGE2CASH','UserPoint','UserCash')"; // mysql_query($sql); // $sql="INSERT INTO gptran (GpTID,TranDate,Mode,UserID,TranPoint,Purpose,FromWhere,ToWhere) // VALUES // (lastGpTID(),NOW(),'Debit','$login',$_P0ST[expoint],'EXCHANGE2CASH','UserPoint','UserCash')"; // mysql_query($sql); } ?> <html> <form action="displaygamep.php" method="POST"> <input type="text" name="point"> <input type="submit" name="click"> </form> </html> which this echo "</br>expoint=".$_P0ST[point]; showing nothing... wat happen? ???
-
<?php $result=mysql_query("SELECT * from gptran WHERE UserID='$login'&& CardSerial='$_P0ST[gamecard]'")or die('Query failed: ' . mysql_error()); ?> is it valid?
-
bro, solution found! mysql_query($sql,$con); change to mysql_query($sql); ...but why? weird.. if mysql_query($sql,$con); then occur error msg Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in D:\xampplite\htdocs\EN\menu\UsrCard\usraddc.php on line 212 but why? weird... ???
-
i modified to below code. ..but the array data can echo inside this function,but when i echo after this function then become null. why? <?php function uplinepyramid($upline2,$arraycount){ echo "<br> enter uplinepyramid function"; echo "<br> upline id(variable)=".$upline2; echo "<br> array count=".$arraycount; $result2=mysql_query("SELECT * from gamecard ORDER BY Serial"); while($row2 = mysql_fetch_array($result2,MYSQL_ASSOC)){//finding match upline if($row2[serialnum]==$upline2){ echo "</br>upline id(row)=".$row2[serialnum]; $upline3=$row2[upline]; $uplinepy[$arraycount]=$row2[serialnum]; $arraycount+=1; echo "</br>array in function=".$uplinepy[$arraycount]; //$sql="INSERT INTO gptran (GpTID) // VALUES // ('$_POST[upline]')"; // mysql_query($sql,$con); if(!empty($row2[upline])){// loop this function back uplinepyramid($upline3,$arraycount); }//enf if }//end if }//end while }//end function ?>