52,566 Archived Topics
Remove Filter ![]() | |
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 … Web Development php | |
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, … | |
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 = … Web Development php | |
Hi! Does anyone know how to upload a file, say in a form, with input type="file". But what I want is to display the uploaded file in an iframe in the same page. Best Regards Web Development display file-system javascript | |
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 … Web Development display html-css javascript-jquery php | |
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 … Web Development first-post php ![]() | |
i am learning oops concept now i am very confused in oops .Anybody tell me a simple examples for oops concepts Web Development php | |
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 = … | |
let say i have an expression like the one below, I guess it goes from left to right? if(exp1 && (exp2 && exp3 || exp4) || exp5) Web Development php | |
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, … Web Development mysql php programming-construct | |
How do I push new values to the following javascript array? json = {"cool":"34.33","alsocool":"45454"} I tried json.push("coolness":"34.33"); but it didnt work Web Development javascript json | |
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 … Web Development javascript php ![]() | |
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 … ![]() | |
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 … | |
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 … ![]() | |
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 … Web Development php ![]() | |
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 … Web Development open-source php sql | |
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 = … Web Development php | |
HI EVERY ONE how i can insert a confirm dialog box behind delete record button so that it will prompt like this ARE YOU SURE YOU WANT TO DELETE? YES OR NO ? if yes button is pressed then it will delete other wise dont .? thanks in advance Web Development asp.net | |
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); … Web Development html-css javascript php | |
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 … Web Development php | |
Hi I am getting value from another page by sending it as part of url query. I want to know how to set that value to textbox or any component in current html page. I tried document.getElementById().value. But it is not working. Is there a way in javascript where I … Web Development javascript | |
How can i export the values of the text box in html to a csv or a excel .I have created an HTML Form which will be used from a local computer and want the form data to be saved in CSV file. Each time the form is submitted, it … Web Development javascript | |
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 … Web Development php | |
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 … Web Development file-stream php | |
I am trying to create a Gridview that allows me to add to a database. I think I have the Gridview formatted correctly and I do not want to use the <emptydatarowstyle>. I have been playing around with different solutions to displaying a header and footer in a gridview with … Web Development asp.net dataset web-server | |
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 … Web Development javascript php | |
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 … | |
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 … | |
I have created pages to comping some content and adding it into db. Here they are composing.php <html> <head> <title>Composing news</title> <script type="text/javascript" src="includes/jquery/jquery.min.js" ></script> <script type="text/javascript"> function reset_form() { document.getElementById("title").reset(); } </script> <script type="text/javascript"> $(document).ready(function(e) { // ready method make funtion available after the document has been loaded $("#submit").click(function(){ … Web Development first-post javascript javascript-jquery | |
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 … | |
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"; … Web Development mysql php programming-construct | |
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 : … Web Development javascript javascript-jquery php | |
<?php function fun1($a,$b) { echo $b; } @fun1(123); //want to store 123 in $b without changing position of any argument...... ?> Web Development php | |
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 … | |
I have a web application that needs the identification or some uniqueness of the machine that is calling it. Based on that "id" of the machine the web application will provide information back relevant to that machine. I can certainly call my website with some unique Query params that will … Web Development asp.net web-browser | |
Hi I know this can be done, just don't know where to start. I am creating a site and have a multiple select box in a form I am going to pass to this form data from a database to be displayed as values. I can do this no problem. … Web Development php | |
Hi, I want to generate a unique id but stuck at one point where I need a max 10char long output like A2987F2EWS, 234EGT56GT..... unlike SHA1 or MD5 so human can read it. Code is below but the better way is accaptable by me though. Thanks $mysql_id = 1; $mysql_id_padded … Web Development php | |
Hi All, here's the query.... $risk_section=$row_risk_category['risksectid']; mysql_select_db($database_auditing, $auditing); $qry_selfsites = sprintf("SELECT tblself.siteid AS selfsite, tblsite.sitename AS sitename, tblsite.address AS address, tblpct.pctname AS pctname, tblresultsnew.total, tblresultsnew.auditid AS auditid, tblriskcategories.risksectid AS risksectid, tblriskcategories.risksection AS risksection FROM tblself LEFT JOIN tblresultsnew ON tblself.auditid = tblresultsnew.auditid LEFT JOIN tblsite ON tblself.siteid = tblsite.siteid LEFT … | |
Hi! I tried to find an answer to this everywhere but no success. But it must be a common issue I guess .... We have a english PHP web project with many PHP source code files Now we want to translate the whole project inte 3 new languages (swedish/italian/spanish) I'm … Web Development php | |
Hello, I'm building an application in PHP and when outputting HTML tags, it shows the tags.. So for example: <?php echo "<b>Hello world</b>"; ?> I would expect Hello world to be in bold.. But no, I get: <b>Hello world</b> as the output Any ideas please? | |
I'm creating a WebSite in VWD 2010 Express. The Login page I created turns out to show the Email and Password that I once entered as part of testing to stay in the textbox. How do I delete it? Thanks | |
So I stumbled upon this question and I wanted to figure out how to find the mean, median, mode, highest number, lowest number, how many evens, and how many odds are in each row... I honestly can't figure this out... I want it to display next to the table I … Web Development php | |
I am using mysql to fetch this result from the database.I need to caluclate the rank of a prticular user id from this result.What is the easy and smart way of doing it? SELECT a.UserId,d.AreaId,d.SubjectId, SUM( a.Marks ) AS sum, COUNT( a.Marks ) AS count, SUM( a.Marks ) / COUNT( … ![]() | |
Hey Guys, I am having some trouble... I have the following XML from Google: <GeocodeResponse> <status>OK</status> <result> <type>street_address</type> <formatted_address> 1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA </formatted_address> <address_component> <long_name>1600</long_name> <short_name>1600</short_name> <type>street_number</type> </address_component> <address_component> <long_name>Amphitheatre Pkwy</long_name> <short_name>Amphitheatre Pkwy</short_name> <type>route</type> </address_component> <address_component> <long_name>Mountain View</long_name> <short_name>Mountain View</short_name> <type>locality</type> <type>political</type> </address_component> <address_component> <long_name>Santa … Web Development api google-api php xml | |
i have a lot of mysql data (2 Lakhs data) how to collect data with in a seconds ? any idea thanks in advance ![]() | |
Hi, I have 7 variables...each vriable is having either of two values "0" or "1" e.g. a=0, b=1, c=1, d=1, e=0, f=1, g=0 Now I need the total of all these 7 variables but only which are having value "1" (in the above case b+c+d+f) My problem that it's dynamic...i.e … Web Development php | |
![]() | Hi I'm having an issue SELECT to database, I been working on it all day. I'm still new to MYSQL. I created a table: Records Table: **Records** Fields: ***id*** (INT(25), primary key, No Null, auto-increment) Fields: ***title*** (VARCHAR(256), No Null) Fields: ***content*** (TEXT, No Null) <php if (isset ($ _POST … Web Development php ![]() |
Hi every one I have a very simple form and it just will not submit to the db. Could some one please tell me where I am going wrong? <?php if ( $_SESSION['logged_in'] ): ?> (1) <?php endif; ?> <?php if($_POST['formSubmit'] == "Submit") { $errorMessage = ""; if(empty($_POST['social_media'])) { $errorMessage … Web Development html-css mysql php social-media web-design | |
Is it possible to do something like this? [icode]<div id="btn1" onclick="//somehow call page2Link here"><a href="page2.html" id="page2Link">Page 2</a></div>[/icode] Basically it's to try and make the text work with the a:hover text effect I have whilst making the whole layer sensitive to clicks. i tried this already: [icode]<a href="page2.html" id="page2Link"><div id="btn1" ><a … Web Development javascript |
The End.