39,326 Topics

Member Avatar for
Member Avatar for osamabin.idrees

hi everybody, i am 2nd year student of computer science department, and now i am thinking about choosing my main field about programming. There are two choices in my mind either to start learning php development(because it has a lot jobs) or start learning java and become a java developer. …

Member Avatar for DarkMonarch
0
129
Member Avatar for ska_defender

I am trying to use bad words filter but I want to load the bad words from a txt file on my server but some how failed to do so.here is my bad words filter code function badWordFilter(&$text, $replace) { $patterns = array( '/butt/i', '/poop/i', '/crap/i' ); $replaces = array( …

Member Avatar for diafol
0
789
Member Avatar for latooplat

I wanted to save this array: $words = array ("close","fed","house"); into : $words_assoc = array (21=>"close",13=>"fed",15=>"house");

Member Avatar for diafol
0
80
Member Avatar for presly

using few softwares we can create web site and even can create better web pages than writing programs by our own itseems. is it true? if so then can any1 suggest me a simple software? please help me in this..

Member Avatar for rotten69
0
144
Member Avatar for javacle

Hi, guyz. I'm kinda lost on how to do this. I wnat to connect from a facebook application that i have to a database in my own custom server, that i'm working on. I've connected with the right connection parameters from facebook to my server for inputing records, but it's …

Member Avatar for pritaeas
0
73
Member Avatar for da(code)da

My Table create is giving me problems. i probably missed something small but i cant find it. $dbase = $_COOKIE['ID'] . "char"; // Create table mysql_select_db($dbase, $con); $sql = "CREATE TABLE games ( gameID int NOT NULL AUTO_INCREMENT, PRIMARY KEY(gameID), gameName varchar(25), intro TEXT, bground TEXT, cast ENUM( '0', '0', …

Member Avatar for phorce
0
109
Member Avatar for magicmarkuk

Hi I am trying to add a small piece of code to a script to validate two user inputs. 1. Whether a minimum bid is less that 20 - if so show an error; and 2. Check that the maximum bid is higher than the minimum bid - if not …

Member Avatar for phorce
0
167
Member Avatar for da(code)da

Ok I have a promblem. Im getting a unidentified variable error from **$found:** Whats wrong here? while($row = mysql_fetch_array($result)) { **$found** = true; echo "Character/Alias: " . $row["CharName"] . "<br>Created: " . $row["CharBorn"] . "<br>Game: "; if ($row["CharGame"] == '0') { echo "None"; } else { echo "In-Game"; } } …

Member Avatar for da(code)da
0
120
Member Avatar for Khav

Hi Guys I have been extracting zip files and uploading them successfully with PclZip Library.However i want to rename the extracted files using some random string generator on the fly before placing them in my 'images' folder On the site they said that a callback function can be used to …

Member Avatar for Khav
0
823
Member Avatar for jfunchio

I have this rather large form that I need to process and have the results sent to my email. Note the data will only be sent to an email not save in a database. The problem I'm having is that in these form there are tables, not only html tables, …

Member Avatar for almostbob
0
181
Member Avatar for calvinmicklefin

I have the following code ... <?php // test $item_101_product_title = "MGT-101"; $item_102_product_title = "MGT-102"; $item_103_product_title = "MGT-103"; $item_104_product_title = "MGT-104"; $item_105_product_title = "MGT-105"; $item_106_product_title = "MGT-106"; $item_107_product_title = "MGT-107"; $item_108_product_title = "MGT-108"; $item_109_product_title = "MGT-109"; $item_110_product_title = "MGT-110"; $item_111_product_title = "MGT-111"; $item_112_product_title = "MGT-112"; $item_113_product_title = "MGT-113"; $message = …

Member Avatar for calvinmicklefin
0
184
Member Avatar for eburlea

Hi all! I am trying to insert multiple arrays values into a MySQL table. All I can manage is to echo in the browser. I have the following arrays: $array1 [0] = "Arsenal"; $array1 [1] = "Barcelona"; $array1 [2] = "Bayern"; $array2 [0] = "England Premier League"; $array2 [1] = …

Member Avatar for Swayam.tejwani
1
7K
Member Avatar for aianne

Hello everyone! Guys I really need your help. I'm still a noob and a student. So I made a table for electoral officials and also I made a link where user can see the information of the certain candidates in mouseover box. But I'm still trying to figure out how …

Member Avatar for aianne
0
1K
Member Avatar for BleepyE

Im very new to PHP and im wondering how I can create a button to delete a post on my blog system. My system is as follows; **Blog Page** <?php include ("includes/includes.php"); $blogPosts = GetBlogPosts(); foreach ($blogPosts as $post) { echo "<div class='post'>"; echo "<h2>" . $post->title . "</h2>"; echo …

Member Avatar for diafol
0
133
Member Avatar for sri.

i am learning oops concept now i am very confused in oops .Anybody tell me a simple examples for oops concepts

Member Avatar for rajengg
0
126
Member Avatar for da(code)da

here my username is know as callsign there is a problem somewhere that i cant find and i present the code: $callsign = mysql_real_escape_string($_POST["CallSign"]); $result = mysql_query("SELECT * FROM users WHERE CallSign = '$callsign'"); $row = mysql_fetch_array($result); echo $row['CallSign'] . "<br>"; $sql = "SELECT COUNT(*) FROM users WHERE CallSign = …

Member Avatar for phorce
0
257
Member Avatar for wildplace

let say i have an expression like the one below, I guess it goes from left to right? if(exp1 && (exp2 && exp3 || exp4) || exp5)

Member Avatar for wildplace
0
111
Member Avatar for da(code)da

my code is messing up. help: if (mysql_query("CREATE DATABASE $dbname",$con)) { echo "Database Created<br>"; $dbase = $_POST["CallSign"]."char"; mysql_select_db($dbase, $con); $sql = "SELECT * FROM $dbase"; $result = mysql_query($sql); if ($result) { echo "CallSign Accepted<br>"; mysql_select_db("my_db", $con); $sql="INSERT INTO users ( CallSign, Email, FirstName, MiddleName, LastName, Gender, BirthMonth, BirthDay, BirthYear, Location, …

Member Avatar for da(code)da
0
183
Member Avatar for smoothe19

I am trying to push to the javascript array after looping 200 times through the member array to push every member that matches the department selected description into the javascript array., However it fails <? $i = 0 ; while( $i < 200) { if ($members[$i]['department'] == $depttts){ break; echo …

Member Avatar for diafol
0
185
Member Avatar for aianne

Hello everyone! :) Could you please help me? I am still a noob and I'm having a hard time about displaying selected values from mysql database into popup window? This is my code where user can see the table of the electoral officials: -----CUT----- <div id="page"> <div id="blanket" style="display:none;"></div> <div …

Member Avatar for diafol
0
4K
Member Avatar for da(code)da

So im trying to make a password login and im getting errors. i got past my Unable to jump to row 0 error with this: **mysql_num_rows($result) >= 1** but now it wont jump to the row when the password is correct ether :/ here is the code; whats wrong with …

Member Avatar for da(code)da
0
265
Member Avatar for rjony321

Hello,I cant access my two table date together in one search option.like table name: name_search & skill_search.here is the code.please check it and if possible solve it. <?php $connect=mysql_connect('localhost','root',''); $mysql_db=mysql_select_db('my_database',$connect) or die(mysql_error()); if (isset($_POST['search_name']) && isset($_POST['search_skill'])) { $search_name= $_POST['search_name']; $search_skill= $_POST['search_skill']; if(!empty($search_name) && !empty($search_skill)){ if(strlen($search_name,$search_skill)>=4){ $query = "SELECT name FROM …

Member Avatar for diafol
0
126
Member Avatar for my3h

Hi, I am using `$_SERVER['REQUEST_URI'] ;` to get the complete URL address, but in that i want to take only the half, example in `$_SERVER['REQUEST_URI'] ;` i get http://www.mystore.website.com/index.php?fkdsjklfjdskldfd=id... but i want to take only till http://www.mystore.website.com, how can i do it? In PHP is there any function called LastIndex …

Member Avatar for diafol
0
158
Member Avatar for cscheck

Hello all, Correct me if I mis-post or should have posted this somewhere else. This is my first thread here so bear with me. I have had a lot of luck just browsing other issues to get my problems solved in the past, but this time I am stumped. More …

Member Avatar for cscheck
0
2K
Member Avatar for spowel4

I have a class with a required file: require_once 'includes/constants.php'; That required file contains the following: <?php // Define constants here define("DB_SERVER", "localhost"); define('DB_USER', 'xxxxxxxxxx'); define('DB_PASSWORD', 'xxxxxxxxxx'); define("DB_NAME", "customerInfo"); define("ERROR_FILE", "c:\wamp\www\customerinfo\Errors.txt"); The class has a constructor: function __construct() { $dbServer = DB_SERVER; $dbName = DB_NAME; $dbUser = DB_USER; $dbPWD = …

Member Avatar for spowel4
0
189
Member Avatar for raminr63

Hi guys i first thank you for helps. and i have a script i use that for application authentication In fact the users must use your user name and password to use that App then after authentication of they user and pass passed they allow to use that application. and …

Member Avatar for pritaeas
0
294
Member Avatar for israillaky

hi everyone im new in ajax and i currently studing ajax. my problem is $('#current').click(function() { var id = $(this).attr("id"); var sellitem=$('#spid').val(); $.ajax( { type: "POST", url: "updatecurrentsp.php", data:{ 'itemid' : id ,'sellitem' : sellitem }, success: function(data) { $('#sellprice').css("display","block"); //Changes the style of table from display:none to display:block $('#sellprice').html(data); …

Member Avatar for pritaeas
0
120
Member Avatar for HasNor

Dear all, I'm here just for asking your suggestion.. I would like to develop application that display listing but the list item is not in database. It is create in excel and convert to html file. My question here, is it able to me to develop application that allowed user …

Member Avatar for willson1
0
121
Member Avatar for CarterLangley

Hi guys, OK, here is what I have in mind. I have to be able to edit membership information, so I propose populating a form with the relevant information. But, I would like to populate the form depending on what member is chosen using a select box. Now, the form …

Member Avatar for phorce
0
108
Member Avatar for rfrapp

Hi, I am recieving these two errors when attempting to upload an image file to my server: Warning: move_uploaded_file(images/) [function.move-uploaded-file]: failed to open stream: Is a directory in }[I removed the path, this is not part of the error] on line 13 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/php2bBihw' to …

Member Avatar for rfrapp
0
446

The End.