coder9
Members-
Posts
85 -
Joined
-
Last visited
Never
Everything posted by coder9
-
Hi Anyone knows how to integrate AlertURL using alertpay.com? I have problem integrating it, do you know a link that will teach me how to integrate it properly? I tried it many times using DEMO MODE, but unfortunately it doesn't work. Thank you.
-
Ok, i know how to create basic form with button. What i want is an automatic one. That has no button. Let say the fields has values already. and then automatically redirect to the other page. How would do that? Tank u!
-
Thorpe I love you! Thank you!
-
i have this echo " . $i2: . " : " . $link . "; an interget ($i2) on the left side a character (':') in the middle and another integer ($link) on the right side. thank you.
-
Where DarkWater?
-
while($i<=100) { if($i == $link) { $tmpbakcolor[$link]="#C0C0C0"; } $i++; solved!
-
good evening. shorter version of this codes? switch ($link) { case 1: $tmpbakcolor[1]="#C0C0C0"; break; case 2: $tmpbakcolor[2]="#C0C0C0"; break; case 3: $tmpbakcolor[3]="#C0C0C0"; break; case 4: $tmpbakcolor[4]="#C0C0C0"; break; case 5: $tmpbakcolor[5]="#C0C0C0"; break; case 6: $tmpbakcolor[6]="#C0C0C0"; break; case 7: $tmpbakcolor[7]="#C0C0C0"; break; case 8: $tmpbakcolor[8]="#C0C0C0"; break; case 9: $tmpbakcolor[9]="#C0C0C0"; break; case 10: $tmpbakcolor[10]="#C0C0C0"; break; more codes here... case 100: $tmpbakcolor[100]="#C0C0C0"; break; default: echo ""; } loop? thank you.
-
ok problem solved i forgot the $i++; inside the loop. lol
-
Ok i have this scripts that is not written by me? The whole site has hundreds of .php page. so digging them will really take time. what i did was, i created a simple loop like this one below. function check_selected_box3() { $i=0; while($i<=10) { echo "Nasaan? <br>". $i; } } and called that function inside into the existing script not written by me? then i noticed also the tab of firefox browser display the '500' message. i'm not sure about that 500. What do you think is the cause of this, not displaying the page? Any smart guess? Thank you in advance.
-
i tried this one function check_selected_box() { //access all field name $query = "SELECT * FROM jtablegrid WHERE game_no = 1"; $result = mysql_query($query) or die("Problem with the query: $query on line " . __LINE__ . '<br>' . mysql_error()); $row = mysql_fetch_row($result); $i=0; while($i <=100) { if($row[$i] != '') { echo "user" . $row[$i]; echo "<br>"; } } } but it display a blank page. i dunno what's causing the blank display? is that function that i created almost got the necessary logic. All i want really is to get all the not empty column names and display there column names. thanks in advance if someone will help me with this. sorry i can't edit my first post for this because there is no button to edit my first post that is why i can't fix the wrong words there. any help please.
-
bump
-
sorry the alignment column of the table is not well aligned.
-
yo! How to determine which column name are not blank? in a record? and display the not empty column name? let say i have this table below. box1|box2|box3|box4|box5|box6|box7|box8|box9| ------------------------------------------------- ok | | | ok | | ok | | | ok | using loop thank you.
-
thank you KEN
-
hello the codes $tmp_name = 'user_box' . $link; $query = "UPDATE jtablegrid SET '$tmp_name'='$username' WHERE game_no = 1; mysql_query($query) or die(mysql_error()); thank you.
-
hello what is wrong with this codes when i call the function store_cell_number() it insert a record not 1 but 2. why is this? here is the codes, <?php function store_cell_number($link){ #$query = "INSERT INTO jtablegrid (user_box" . $link . ") VALUES ('" . $link . "')"; #$query = "INSERT INTO jtablegrid (user_box" . $link . ") VALUES ('.$link.')"; //get status of jtablegrid get all column value. //concatenate the name. $tmp_name = 'user_box' . $link; if($tmp_name != 'user_box') { $query = "INSERT INTO jtablegrid ($tmp_name) VALUES ('.$link.')"; mysql_query($query) or die(mysql_error()); } } ?> i call this function from another .php page. thank you.
-
thank you wildteen88
-
ok let say i have a string and a integer value of a variable that needs to be concantenation each other. let say i have, 'box' //string name. and $tmp_value = 8 //variable with value 8 now i want to concantenation these two. is this correct? $tmp_= "box ' . $tmp_value . '"; any advice please.
-
Sorry i can't edit my own thread. this is suppose to be my right function prototype. function store_cell_number($link){ $query = "INSERT INTO jtablegrid ($link) VALUES ('$link')"; mysql_query($query); }
-
ok i have this simple grid table below http://czone01.com/zodesk/paradiseclicks/tablegrid.php when you click each cell number for instance. it will store the number into variable --> $link now i'm trying to create a function that will insert it into the table which has the same column number name of the table from 1 to 100. table |cid|user_box1|user_box2|user_box3|user_box4|user_box5|user_box6|user_box7|user_box8|user_box9| and soon... -------------------------------------------- |1 | | | | | | | | | | so when i click number 9 cell on the table grid for instance it should store the number 9 (which is stored in $link) and insert the value of $link (which value 9) into column user_box9 of the table (jtablegrid). (this is the tricky part, because $link is dynamic and it should find the right column number in the table itself) here is my not finish prototype function, function store_cell_number(){ //get value of variable link. //determine what number. //find the right cell number. //assign it and insert it into the table $link = $link; $query = "INSERT INTO jtablegrid (_no) VALUES ('$game_no')"; mysql_query($query); } Please show me how to insert the dynamic value $link into its right column number that has the same number of $link. THANK YOU!!! very much in advance.
-
very basic error. here are the codes. function clicking_cell(){ //check table if game_number column is empty. //assign game number if none //else do nothing //get the value of game_no first. $query = "SELECT jtid, game_no FROM jtablegrid WHERE jtid=1; $result = mysql_query($query) or die(mysql_error()); while($row = mysql_fetch_array($result)) { $game_no = $row['game_no']; //this is where the number line 19 with error. echo $game_no, "<br>"; } and the error is. Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/unt1lid1/public_html/jpfunctions.php on line 19 Thank you.
-
Thanks man i'll try that.
-
hi Scott, thanks for the reply any basic sample please...
-
I wonder if this is possible. Let say i have a link or hyper link. after i click that link (left click) the link will disable and turn it's color into gray. is this possible in php? if no possible in php maybe javascript or css? any sample? or tutorial? Thank you a ton.