39,402 Topics
![]() | |
I cannot get IE to cooperate with displaying an embedded Windows Media Player on a web page. The [icode]<embed>[/icode] tag works for other browsers, but I am having no luck with IE. I am running the code within a Joomla! module on the Gantry Zephyr template. The following code snippet … | |
I administrate a database with 3 main tables for a training company: course providers, lecturers and graduates. I have to create a database admininstration page with insertion, modification and search features. I am using php with mysql. I wanted everything to happen in the index.php (do not know if this … | |
A very simple MySQL database class. [B]Usage:[/B] [CODE]// connect $config = array( 'host' => $host, 'user' => $user, 'password' => $password, 'database' => $database); $DB = Database_MySQL::getInstance($config); // set query $DB->query("select * from table1 where col1 = %d and col2 = '%s' LIMIT 1", 5, 'a'); // get rows $rows … | |
hi, How to make changing selection of radiobuttons respectively on dropdown menu selection with example in javascript... thank you, regards by, karthick.s | |
Hey! Is it possible to make RSS feed of a site what requires login before you can see the contents of it? Thanks in advance! I remade this topic here in the php section as I was told, also if you know how to do that give me some thoughs … | |
Hi there, i'm currently having trouble re-sorting an array based on a letter that a user has submitted. this is the associative array I want to sort. [CODE] $people = array( 0 => array( 'id' => 12345, 'name' => 'abi', ), 1 => array( 'id' => 12346, 'name' => 'ben', … | |
Hi All, Can anyone please help me. I am trying to connect to a Pervasive SQL v9 database using a PHP script. I have been trying for hours to make a connection but all my browsers keep loading with no response from the server. The PHP code is as follows: … | |
What it want from me? [CODE]<?php if (isset($_POST['submit']) && $_POST['submit'] == "Update") { $query_update = "UPDATE preturi SET preturi = '" . $_POST['preturi'] . "' WHERE username = '" . $_SESSION['user_logged'] . "' AND password = '" . $_SESSION['user_password'] ."'"; $result_update = mysql_query($query_update) or die(mysql_error()); $query = "SELECT * FROM … | |
I have a drop-down list box which has to be populated from a database in mysql. I implemented the following code: [CODE] //DB Conn done here.. <td>College Name,id :</td> <td><select><option selected="selected">Choose a college...</option> <?php $query="SELECT nameid from college"; $result=mysql_query($query); while ($line = mysql_fetch_array($result)) { foreach ($line as $value) { echo … | |
Hi . Watsup people People ... I need your help , i am new to php programming , all what i can do is to create an html template and write my code in side the template . So i am seeing in phpbb forums and some websites , there … | |
I'm trying to pass a value from a select input control on an HTML form. Here is the PHP of page1.php: session_start(); $_SESSION['invtype'] = $invtype; header("location: offerform_switch.php"); Here is the HTML: <select id="invtype" name="invtype"> <option value="0" selected="selected">Select type</option> <option value="product">PRODUCT</option> <option value="software">SOFTWARE</option> </select> This is offerform_switch.php: session_start(); echo $_SESSION['invtype']; switch … | |
Hi, Im struggling to do a function like this.In the admin panel of my site,there is an option for the admin to select multiple orders using check boxes and marked them as accepted.And I need to update the product table at the same time according to the product quantities of … | |
![]() | Hi everyone. I am trying to make an if statment that will show text saying create an album if the user has no albums but if they have one or more albums then it will show their albums. Now I have sorted out everything but when I get to the … |
Hello all, I'm having some problems, see I'm making an API in php to my web app comunicate to a desktop app. Anyways, when I try to post some data to the site I need a url to go in that data, example: name=product[B]&[/B]description=something[B]&[/B]site=mysite.com?name=a[B][I]&[/I][/B]desc=b this is how the post is … | |
hi .. i am working on chat system ..there are two types of user one are register and other are guest and i have to add guest user..in to database as temporary so they can chat with each other the problem i am facing is with there names i want … | |
Hello anybody! I have some idea and I don’t know if it will work. I am planning to make a user management system using the mysql database but the problem is I don't know where to start because in MySQL database the password is encrypted with password() function and it … | |
Hi Everyone. Could anyone give me some pointers in creating a PHP, MySQL ShortCode system. I want to create a system where a user can SMS a keyword to a short code SMS number. [B]Example:[/B] [COLOR="Red"]SMS pizza to 33333[/COLOR]. Then the server checks pizza in MySQL DB and replies with … | |
Hi, I have developed a download / upload script that also counts the downloads of each downloaded file. For statistics i currently got total files and total overall downloads but would like to extend this so it can say how many downloads there has been in a week, month, year. … | |
Hi, I have been working with php for awhile now, but I am bum fuzzled on this one: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/xxxxx/public_html/xxxxx/index.php on line 5 adminlogin.php <?php include "mysql.php"; $res=mysql_query("select * from pagelay"); $mygrow = mysql_fetch_array($res); ?> now the other page … | |
Hi Everyone. I'm busy with a advanced search function, what I want to do is when a client clicks on a tab/button it should open a windows where he can define his search even more. If anyone could point me in the right direction of what I can use or … | |
Hellow programmers, today I stuk on a new one,This time is a $_Get sintax that give me error like so :"invalid query 4: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''36''' at … | |
This might be a stupid question, as I am a complete beginner in the world of AJAX/Javascript. However, I am trying to build a website using Ajax combined with PHP/MySQL. The issue I have at hand is that the PHP variables and functions that I have included in the header.php … | |
Ok I am very new to the php mysql world so please bare with me. I have set up a database for an apartment complex with a table containing the following: [code] create table apartments (apt_num int not null, available varchar(5) not null, beds int not null, baths int not … | |
hi guys, I'm doing a simple system using codeigniter i need to implement search using jquery ajax in it, this is my fist coding experience in codeigniter and jquery, so i need a good source to learn about it, please suggest me good study material for studying it? regards, Rangana | |
Does anyone know where the is_home() function is defined in wordpress? I've searched all over and practically searched every file in the script but I can't find it. | |
Good morning, i know this was probably asked before, but im kinda in a jam. i have a database where it has a date field and a time field. i want to use a radio button to filter the fields. Say i have 3 radio buttons, the first one only … | |
I have created my online community portal. I want to create simple blog using php and not want to use wordpress. How can I create my own blog??? Please help me! | |
On my search result page, I wanted to search for "Nintendo DS Lite - Pink" I used following code: Ex: [code] $search_text = "Nintendo DS Lite Pink"; $kt=split(" ",$search_text);//Breaking the string to array of words // Now let us generate the sql while(list($key,$val)=each($kt)) { if($val<>" " and strlen($val) > 0) … | |
I have uploaded some flash content into my html website but when i upload it on the server am unable to see it. I have registered the website of mine but unable to find a way for this problem. heres my code [CODE] <td colspan="6"><script type="text/javascript"> AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','932','height','359','src','Building','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','Building' ); //end … | |
//Sorry about the name, hit enter too early >.< Should be 'adding a link to PHP' [indexphp.php] [code] <?php if($_GET['act'] == "generate_quotes") { $con = mysql_connect("*", "*", "*"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("quote", $con); $result = mysql_query( " SELECT * FROM `quote` ORDER BY … | |
Hey All, I have the a page that takes information for a ticket, and i wish to add the functionality of an upload button for attachments. I have tried making this work but because of using multiple posts , this obviously won't work (at least with what i know). Is … | |
Im looking for a tutorial about Change text based configuration file with php. Thanks in advance | |
her is the code and please tll me that how can i save the directory file in same location that is opend in textarea pls tell me soon[code]<?php if(empty($_GET['dir'])) $currdir = '.'; else $currdir = $_GET['dir']; // open this directory $myDirectory = opendir($currdir); // get each entry while($entryName = readdir($myDirectory)) … | |
please give the best site name to download this type of plugin and ple tell how to implement it | |
Need help with displaying picture from mysql database. Can anyone provide a basic php script to retrieve picture from database for display in html page. I have database field: avatar_url whichs save filename of picture in database and a folder: images/avatars where the picture get saved saved. This is for … | |
[COLOR="Green"]Little background info:[/COLOR] My site is gaming related; xbox 360, ps3, wii, pc an so on. I have big plans and ideas for the site. Since I can't afford vb right now, I've opted for php to code the site. The friend I did have to code the site was … | |
I am trying to learn PHP. I have set up a database, a table, and made a form that allows me to add new rows to the table when the submit button is clicked. The problem is that the form also submits any time the page is loaded or refreshed, … | |
Hi, I am trying to get something up where by: -> It dynamically displays input text fields that can be edited. -> However I need the current id as well as the current value to display -> when a person submits the form, it updates all / or only each … | |
Helllloooo DaniWeb peoples!! - I have books and whatnot, but I thinks I need opinions from real people ya know? My question - What do you think are essential projects that a professional web programmer needs to know how to do? Let em fly!! - an earnest THANK YOU | |
When you’re stucked with an empty page on Webclassifieds that you only see the header and the footer with a blank white page in between, you must be on a page that never existed. A quick way to reproduce this is to try to append any string on your URL, … | |
Hi... I have a list of products displayed in a page and it contains a combo box to sort the products in a certain criteria. I want to sort the products just when I choose the criteria from the combo box. I understood I have to do this using onChange … | |
Hi guys, I have a small problem here... There is a [B]customer id[/B] field and a [B]search button[/B] in one page. In my database there is a [B]table[/B] called "[B]customer[/B]" which contains fields of [B]customer_id, full_name, name_with_initials, address, contact_number and gender[/B]. The table is filled with record of each customer … | |
Hello dear Community. Just to know if any of you have developed MediaWiki extensions, and how do you do that? I´ve been looking in the web and I have found nothing at all, or at least, nothing clear enough to create a simple "Hello world" extension to media wiki. Any … | |
Hi all, Here i have a serious problem. I want to sought it out using [B]PHP and MySQL only[/B]. I have a form includes fields of customer id and Account type( [B]stored in a jump menu and includes 6 different types of accounts[/B]) [CODE] <style type="text/css"> <!-- body,td,th { font-size: … | |
hello guys.. can anyone please help me i have created a Simple search for my database..the search form contains a drop down menu of the field names and user select the field name and input the keyword and then Click on search to retrieve matching records from that particular field.. … | |
When submitting an order on my booking form found here: [url]http://www.n-v-m.co.uk/Booking.html[/url] the php file 'sendfile.php' is triggered and this sends booking details to my email account. This is the php code in 'sendfile.php' [CODE] <?php $Name = $_POST['name']; //senders name $to = "info@n-v-m.co.uk"; //recipient $subject = "Order from ".$_POST['company']." (".$_POST['name'].")"; … | |
Hi, Sorry it's me again :-O I am in the middle of creating a download/upload management script. Currently it has one upload method HTTP upload via HTML form which obviously is not good as users would be restricted by the PHP max upload size and script timeout issues and so … | |
Hi , Im developing a shopping cart system.There I need to check whether the customer's cart is empty/not before going to the checkout page.If the cart is empty I need to give a message .How should I do that?? Can someone tell me..Thanks in advance...:) | |
I am a current student and don't know much about where to even begin with this. :SI am working on a website for a friend and they want the visitor to be able to put in their zipcode and a list be generated with the nearest stores. Is this something … | |
Hello Now this is very strange and way out of my knowledge-basis. I had a working form (see code) which inserted data into eph_product. Suddenly it stopped working and when I click on 'submit' I get the following error: [B]You have an error in your SQL syntax; check the manual … |
The End.