39,320 Topics

Member Avatar for
Member Avatar for DarkBerzerk

Hey all, I'm making online web based game, but i have some thing wrong that the Armor that the character equip dont calculate in the fight :/ and i tryed to make NPC account with no armor and other account with the same stats and same everything but using armor …

Member Avatar for DarkBerzerk
0
157
Member Avatar for didi00

I have another problem. I try to modify the plaincart and the problem is that the images doesn't show. The code is this: [code] <?php if (!defined('WEB_ROOT')) { exit; } $productsPerRow = 2; $productsPerPage = 4; //$productList = getProductList($catId); $children = array_merge(array($catId), getChildCategories(NULL, $catId)); $children = ' (' . implode(', …

Member Avatar for didi00
0
157
Member Avatar for klemme

Hi all, I am trying to create a small login system, but so far I suck at it. I have a form in one page. It contains only: EMAIL, PASSWORD. I want to do this: When the form has been submitted to the processing page, I am trying to check, …

Member Avatar for ko ko
0
183
Member Avatar for Sorcher

Hello peeps! I am wondering, how can i make this to not require manually writing. [CODE]if($attackerSoldiers >10){$ASoldierPercent = "1";} if($attackerSoldiers >20){$ASoldierPercent = "2";} if($attackerSoldiers >30){$ASoldierPercent = "3";} if($attackerSoldiers >40){$ASoldierPercent = "4";} if($attackerSoldiers >50){$ASoldierPercent = "5";} if($attackerSoldiers >60){$ASoldierPercent = "6";} if($attackerSoldiers >70){$ASoldierPercent = "7";} if($attackerSoldiers >80){$ASoldierPercent = "8";} if($attackerSoldiers >90){$ASoldierPercent = …

Member Avatar for Ezzaral
0
125
Member Avatar for calebcook

Hello everyone! I've created a mailing list where users can subscribe with a form, and the results are added to a MySQL database. They can also unsubscribe. The subscribe/unsubscribe pages work GREAT, but the page where I send out the email is giving me some trouble. It says that the …

Member Avatar for minitauros
0
183
Member Avatar for chudapati09

[CODE] $info = ldap_get_entries($ldap, $search); for($i = 0; $i < count($info) - 1; $i++) { $people = array( $i => array( 'first' => $info[$i]['givenname'][0], 'middle' => $info[$i]['initials'][0], 'last' => $info[$i]['sn'][0], 'email' => $info[$i]['mail'][0], 'username' => $info[$i]['uid'][0] ) ); } [/CODE] I have the following code working, but what happens is …

Member Avatar for chudapati09
0
102
Member Avatar for dyingatmidnight

I'm having a weird problem with myphpAdmin and webpage design. I've been having trouble getting my layout to do what I wanted to so finally I hit the net for examples I could tweak and what have you. So I found this example [URL="http://www.sebastiansulinski.co.uk/demos/three_column_layout/three_column_layout.php"]http://www.sebastiansulinski.co.uk/demos/three_column_layout/three_column_layout.php[/URL] I used the div layout as …

Member Avatar for Kraai
0
192
Member Avatar for chudapati09

[CODE] <?php echo '<script type="text/javascript"> if(confirm("Your time has expired. Do you want to logout?")) alert("Five minutes were added on too your session"); //User will five minutes added on else alert("You are logged out"); //User will be loged out </script>'; ?> [/CODE] How do I put in PHP code inside the …

Member Avatar for chudapati09
0
2K
Member Avatar for simirnov

Hi, I am new to PHP Development. I am retrieving data from my database table clf_email. I am having a mysql_num_rows error in results. I cannot understand where i am going wrong and what error i am doing in the code. Please help in removing this error. [CODE] <?php require_once("../db.php"); …

Member Avatar for simirnov
0
264
Member Avatar for ronnieaka

i tested the php version of the autocomplete example in ajax using PHP from here: [URL="http://www.w3schools.com/ajax/ajax_aspphp.asp"]http://www.w3schools.com/ajax/ajax_aspphp.asp[/URL] i tried the PHP veriosn, not the ASP version. It worked fine. Now i want to implement the same thing in JSP, and so i translated the PHP version of source file (which has …

Member Avatar for ronnieaka
0
233
Member Avatar for Aamit

Hi, I want to find All no of week in any month. And first and last date of that week. Assume Month is Jan 2011 date in Y-m-d 1st week -> Start date=2011-01-01 End date=2011-01-01 2nd week -> Start date=2011-01-02 End date=2011-01-08 3rd week -> Start date=2011-01-09 End date=2011-01-15 4th …

Member Avatar for urtrivedi
0
9K
Member Avatar for mdpepper

Hi guys. I am an IT student currently 3 days into my work placement which is the mandatory 3rd year of my degree course. I am working for a charity in England and my first task is to transfer data from excel sheets to a microsoft sql management studio database. …

Member Avatar for pritaeas
0
198
Member Avatar for kaizerkiller

I got a database named file a table named product has these fields: id | name | sizes | price 1 | Shoe | 9,9.5,10 | 40.25 You can see in the sample record the field sizes. I want to display each sizes in a button, but I don't know …

Member Avatar for diafol
0
122
Member Avatar for ebanbury

Hi Firstly I apologise if this is the wrong forum. The code is a mix of PHP and Javascript, but my overall page is PHP. What I have is one dropdown box, which depending on what is selected produces the appropriate second dropdown box. This is all great and works …

Member Avatar for twiss
0
144
Member Avatar for ebanbury

Hi There. I have a property website, which already has some extensive search criteria for users to filter which properties they would like to see. I need to add to the search queries that fact that only properties which are within 21 days from the date they were submitted should …

Member Avatar for ebanbury
0
117
Member Avatar for bangla

Hi, I am a beginner in php and mysql. Someone pls be kind to help me the following if possible. 1. I know the host name, database name, table name 2. The table has 3 fields-State, Name, Specialty. 3. I want to have a drop down list name ‘State’. In …

Member Avatar for twiss
0
214
Member Avatar for dyingatmidnight

My code is not behaving as I would like and I think I've just been looking at it far to long to find the errors. Its for a library database for a school project (its sort of an independent study so I don't have an instructor to bring it to) …

Member Avatar for dyingatmidnight
0
112
Member Avatar for DarkBerzerk

OK, I'm making items in webbased game and dunno how to design the db well to be able to use well this is the one i made but dunno its nice or no, gonna be hard to use anyway, what i need it item type which is Potion,Gem,or equipment ... …

Member Avatar for DarkBerzerk
0
90
Member Avatar for navi17

Hello, I need a html5 player which can play on all smartphones. I have tried lots of players. Some player works in iphones and not in android vice versa. Any ideas what is best way to do so that video can play on all platforms? Thanks navi

Member Avatar for twiss
0
84
Member Avatar for yongj

How does one create a dynamic table (meaning that it expands as information is automatically put in) with data coming from a MySQL database? I'm pulling information from a private school's "stock" database and need to fill in a table with information such as the date of the stock, the …

Member Avatar for FreddieBambino
0
2K
Member Avatar for Sorcher

Does anyone else see the problem here? i get ""userdetails did not match"" But the $myusername is set correct. [CODE]error_reporting(E_ALL); if($_POST['tSubmit']){ $points = $_POST['pointamount']; $price = $_POST['price']; $reciever = $_POST['reciever']; $mypassword = $_POST['mypassword']; $myusername = $_POST['myusername']; include "../db_connect.inc.php"; $sql= "SELECT password, loginid FROM login WHERE username = '$myusername'"; $result = …

Member Avatar for diafol
0
188
Member Avatar for MadMaddie

Afternoon, I am currently the Webminister for [url]http://www.calontir.org/[/url] and am overseeing the transfer of our Web site from [url]http://www.calontir.info[/url] to our new address. I am having issues with moving our Order of Precedence (OP) database. The original OP database: [url]http://calontir.info/herald/op/[/url] The original pages work fine with the exception of one …

Member Avatar for twiss
-2
239
Member Avatar for rajandass65

hi i am sending request to a server using curl, the resonse of the request is zip file, i have to download it. but the data are show on the page on binarry format(junck character). this is he code. $ch =curl_init(); $headers=array("key: 2434jdfdf3433434"); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_URL, 'https://xyz.com/api/batches/1481307454804189100'); curl_setopt($ch, …

Member Avatar for svilla
0
107
Member Avatar for s.w.a

please what is that do and mean?? [CODE]message = ("HTTP/1.1 302 Found\r\n" + "Location: http://" + redirectionAddress + "/\r\n" + "Content-Length: 0\r\n" + "Connection: close\r\n" + "Cache-Control: max-age=0, no-store, private\r\n" + "\r\n"); where redirectionAddress = nodeAddr + ":" + message; and message = "AuthKey" + ":" + "clientIP" + ":" …

Member Avatar for s.w.a
0
124
Member Avatar for twentylemon

I have a simple function to toggle visibility of whatever. I use it in many places and I know it works fine. [code=html]<script type="text/javascript"> <!-- function toggle_visibility(id) { var e = document.getElementById(id); if (e.style.display == 'block') e.style.display = 'none'; else e.style.display = 'block'; } //--> </script>[/code] I'm now using this …

Member Avatar for twentylemon
0
220
Member Avatar for samsons17

Hi.. I am in the middle of my project but i get stuck here. I want to make the friends linking process page.Which is upon registration, new user will be redirected to this page to find their friends that have registered on my site. I try to google it, but …

Member Avatar for samsons17
0
163
Member Avatar for Dannis86

So i've got a little problem. I'm just running a website for fun, got it from a friend because he didn't need it anymore. Site is called: fapperd.nl Now i'm really happy with me installing a phpbb forum on my server and made a button for the forum as you …

Member Avatar for Dannis86
0
396
Member Avatar for muralibobby2015

hello... i have multiple records in databse. i want to create .xml file automatically. if there is any data in xml file, automatically rewrite that file. how to do this. sugguest me please thanks.

Member Avatar for urtrivedi
0
119
Member Avatar for Jiaxin

Hello, I am trying this code out but has error. Please help, This is my code. <?php include 'dbFunctions.php'; $result = mysql_query('select * from criteria_m'); if (!$result){ die('Query failed: ' . mysql_error()); } $i = 0; while ($i < mysql_num_fields($result)){ echo"information for column $i:<br />\n"; $meta = mysql_fetch_field($result, $i); if(!$meta){ …

Member Avatar for Jiaxin
0
228
Member Avatar for fantasma

Greetings! I'm trying to solve a little problem that occurs when I try to kinda make an associative array out of an associative array. I wish to associate 2 fields coming from mySQL so I can make a simple associated print for the records I want (and I do not …

Member Avatar for diafol
0
114

The End.