39,320 Topics

Member Avatar for
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
809
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
180
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
183
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
131
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
243
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
264
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
120
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
441
Member Avatar for titansrealm

ok have a problem in a chat i have made, everything is working but the user list , in my assets file in swf i have the following under a config xml <?xml version="1.0"?><config musicPlayer="true" multipleCamBroadcast="true" webcamToWebcam="true" userHasList="true" userListDefaultOpened="true" autoAcceptPrivateInvitations="false" showTipInChat="true" showTipToViewersInPopUp="true" topicEnabled = "true" > then in the same …

Member Avatar for titansrealm
0
182
Member Avatar for Ribamar23

I'm using Wordpress with Woocommerce and using Affiliates Woocommerce Light This plugin has a limitation: you can setup only a fixed comission for all products. I need different comissions for each product. I thought creating a custom field for product in product page when inserting a product. Then I will …

Member Avatar for Ribamar23
0
273
Member Avatar for goody11

Hey evryone. For some reason, I can't seem to insert anything into this table that I have in a database It connects just fine and the variables that I'm retrieving are just fine, which leads me to believe that my INSERT statement is incorrect. Any ideas? Here's the code: function …

Member Avatar for goody11
0
242
Member Avatar for mehidy

I am getting data from my order table in a html form, with its id under checkbox, now i want to select some id by checkbox & want to get the total quantity from the mysql table in a new html form/page. I hope, i am able to make u …

Member Avatar for dpste
0
565
Member Avatar for da(code)da

Im not seeing it but its not working here is the code: mysql_select_db("my_db", $con); $sql = "CREATE TABLE stream ( waveID int NOT NULL AUTO_INCREMENT, PRIMARY KEY(gameID), userID int, wave varchar(25), waveTime TIMESTAMP DEFAULT NOW() )"; // Execute query if(!mysql_query($sql)) { echo "Couldn't do it"; } else { echo "alright"; …

Member Avatar for da(code)da
0
170
Member Avatar for extjac

Hello, i am working on PHP and jQuery trying to do a post with jquery. It seems to work in FF but IE is giving me several error: The follwing is the code i am using: <script> $(function() { $("#mainForm").submit(function() { dataString = $("#mainForm").serialize(); $.ajax({ type : "POST", url : …

Member Avatar for MarPlo
0
321
Member Avatar for rrajgor

<?php function fun1($a,$b) { echo $b; } @fun1(123); //want to store 123 in $b without changing position of any argument...... ?>

Member Avatar for veledrom
0
149
Member Avatar for djuran89

I need somting like this [Click Here](http://www.thewordfinder.com/scrabble.php) , but a want to type letters in separate <input> one <input> one letter. My script find just words with 4 letters if i type 'g','o','l','d' he find me just 'gold' but don't find 'old' and if have the same letters. I don't …

Member Avatar for svfox2000
0
238

The End.