39,323 Topics
| |
[CODE]<?php session_start(); $_SESSION['title'] = $_GET['form_book_title']; $_SESSION['ISBN'] = $_GET['form_book_ISBN']; $_SESSION['qty'] = $_GET['form_book_qty']; $_SESSION['fName'] = $_GET['form_book_fName']; $_SESSION['lName'] = $_GET['form_book_lName']; if($_SESSION['ISBN']=="" || $_SESSION['title']=="" || $_SESSION['qty'] =="" || $_SESSION['lName'] =="" || $_SESSION['fName'] =="") { echo "please fill out all the form fields"; echo "<a href=\"sell.html\"> Go Back"; }else require_once("db_info.php"); $con = mysql_connect($localhost,$username,$pw); if(!$con) exit(mysql_error()); … | |
I want to show users the number of records on the database. I have this on my html page: How many ships are listed ? <form action="rowcount.php" method="post" target="_blank"><input type="submit" value="Answer here" /> </form> with about 8,000 names. and this :[CODE] <?php require_once 'dbconnect.php'; $query="SELECT COUNT(name1) FROM allnames"; $result = … | |
HI all, i have a links which is dynamically created.after clicking this link only one ajax request has to go for retrieving relevant broker data.but after seeing in firebug it displaying sometime 3 request and some time 5 request of ajajx call. i need only one ajax call on click … | |
HTML FILE IS: [CODE] <html> <body bgcolor="yellow" text="red" > <form method="get" action="cookie6.php"> <p>Which car you want to buy?<P> <TABLE border=2> <TR><TD><input type="checkbox" value ="15" name="text[]"><TD>Ferrari<TD bgcolor="blue" width="15px"> 15million</td></TR> <TR><TD><input type="checkbox" value ="35" name="text[]"><TD>Mercedes<TD bgcolor="red"width="15px"> 35million</td></TR> <TR><TD><input type="checkbox" value ="50" name="text[]"><TD>Bugatti<TD bgcolor="yellow"width="15px">50million</td></TR> </TABLE> <input type="hidden" value="1" name="check" > <p> <input type="submit" … | |
hi, i have two drop down list. First one is populated from database and its working fine. Second one will also be populated from database but as per the value selected from the first drop-down list. [CODE]<head> <script type="text/javascript"> function xyz_list() { // xyz_list is the id of ;;my first … | |
Hello, I've built myself a nice, simple little store to sell some stuff I've got laying around and some nice jewelry I got last week. I would like to give users the option to pay with PayPal exclusively (since it will also process CC's I figure that's all I really … | |
Hi i have a problem in uploading large file. web hosting allow me to send file 256M, Code is working for small files but i try to upload 25M size file page return back without any error, and nothing happened. i also use "set_time_limit(0);" for unlimited request time In error … | |
Hi i have 2 tables: film - filmid, filmname review - id, reviewtitle, filmreview, filmid i basically want to search for a film name thats in the film table then retrieve the review from the review table that matches the film, the match is found using the filmid as the … | |
I am working on a project in which i need to send emails after 3 days of adding projects .is it possible using php? | |
Hi ! I need your helps. i m developing tour website. i have no idea about flight reservation. requirement is as under: 1- user selects origin/ destination , date of travel, number of passengers ( adult/child/infant). 2-view the available flights 3- selects flights 4-get the fare/ taxes/rules of the ticket/total … | |
Hi, This may help others too here if i succeed. I created a web form (mysql database) by phprunner v6.0. all went well. form is showing mysql data, can submit, edit add delete data. now there is a programming part which is need to be done and because of lack … | |
hi guys, not sure where to start so thought i would see if any you guys have any knowledge on recording calls into a backend website running on php/mysql? site is running a sales order system and working fine however they want to record calls into the database so guess … | |
[B]guys i am really stuck in this tried couples of ways but didnt get it right please help.My pagiantion is working fine and great untill i specfies WHERE CLAUSE in it.I am trying to have a text field so that if a user enter the interger for class search e.g … | |
Hello, I've coded an image resizing function. It works very well for most image types but I've found that there seems to be a problem with progressive jpeg. If I resize my image for a thumbnail size, 50 px of width the result is only a small black square. I've … | |
I want to have function to get the user info, It works when I don't have it in a function, but when I do the *var* that *=* mysql_fetch_assoc($q) is an undefined variable. What could the problem be? Thanks. | |
I'm trying to print one line of text in my database code and i want it to print under a button i have made in html. [CODE]<button id="gen" type="button">Generate tables by clicking here!</button> <div id="response"></div>[/CODE] [CODE]$('#gen').click(function(){ $('#response').load('createtable.php'); });[/CODE] And this code appears in createtable.php [CODE]echo "Tables were set up correctly.";[/CODE] … | |
im having problem saving a FILE, i doesn't save the extension name of the file and doesn't save also the images in my folder..? can you kindly look , what is my problem with my FILE code? only in FILE SAVE, i dont have errors in my other fields. [ICODE] … | |
I have this code that creates gets the data from a sqlite3 database and prints it out in a table with checkboxes next to each row to check to delete that row. After deleting a row I want to update the data base so that the id of the rows … | |
Hi, I am trying to assign the value of text box to a variable in PHP. But I am consistently getting an error. The error says, "Undefined index: fname" and "Undefined index: age ". Can anyone please help me in this matter? How can I resolve this? [CODE] form action="welcome.php" … | |
I want to make option to approve users before they can login or to ban them, here is code [CODE]MySQL Syntax (Toggle Plain Text) <HTML><HEAD><TITLE>Fakultet informacionih tehnologija</TITLE> </HEAD> <BODY TEXT="#ffffff" BACKGROUND="fakultet/Assets/bg.jpg" LINK="#FFFF00" VLINK="#CDCD00" BGCOLOR="#000000"> <CENTER><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH="700"> <CENTER> <FONT SIZE=+4 FACE="arial,helvetica"> Fakultet informacionih tehnologija <HR> </CENTER> <?php session_start(); … | |
i am trying to code a chat app for my social network and i am using the following module .. [URL="http://anantgarg.com/2009/05/13/gmail-facebook-style-jquery-chat/"]http://anantgarg.com/2009/05/13/gmail-facebook-style-jquery-chat/[/URL] i have coded the rosters(manage who is online) for it .. but those rosters work only on login/logout .. on login it makes an entry for username in a … | |
I'm Working with register module with xmlHttpRequest. I have checking all. When i was trying to redirect after successfull its displaying the response with in the given div. [CODE] <script type="text/javascript"> function showRegister() { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code … | |
[CODE] <?php echo date("Y/m/d") . "<br />"; echo date("Y.m.d") . "<br />"; echo date("Y:->m:->d")."<br>"; echo("hello") ."<br/>"; $app5=5; echo($app5); $baby="going"; echo("$baby i love to "); //echo ($baby$app5); if($app5==5) echo "dance"."<br>"; echo strlen("dance"); echo strpos("dance","h"); switch($ab=1) { case 1: echo 1; case 2: echo 2; default : echo "default"; } $a = … | |
Hi, DaniWeb I'm doing a registration page and i want the button "Send" add the information to the MySQL DB, then appear an alert box saying: "Regsitration succesfully!!" and in the end redirect to "index.php". This is what i have: [CODE] <?PHP //ligar base de dados $dbhost = 'localhost'; $dbuser … | |
Hello, does all php versions accept the <?= ?> or no ?? Don't you think for designers <?= ?> is easier than <? echo ?> Thank you | |
Hey Everyone hope all well. I have this code that works perfectly on a mysql database [CODE]<?php // visit http://php.net/pdo for more details // start error handling try { // connect $pdo = new PDO('mysql:host=localhost;dbname=name', 'name', 'password'); // enable error handling through exceptions $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); // create safe query $query … | |
Hi all! I'm making an admin, with gallery of photos. What I am doing is to first create the name of a main photo portfolio with a folder with the name entered and stored within the image that rose. When ready all the portfolios which are the folders with the … | |
im trying to concatinate my birthdate dropdown MM,DD,YY in Textbox.. it wont save, please help me with my code.... [CODE] <p class="studmen">Birthdate<input name="bdate" type="text" value="<?php echo $bday=$mm.$dd.$yy;?>"/> <select name="<?php $mm;?>"> <option value=""></option> <option>Jan</option> </select> <select name="<?php $dd;?>" > <option value=""></option> <option>1</option> </select> <select name="<?php $yy;?>"> <option value="" ></option> <option>1990</option> [/CODE] | |
Dear, I am new to PHP and MySQL. I have a simple order form on my site: 1 column with "member" and one with "comment". I am able to Insert rows when a user submits the form. But when a user wants to modify that data, the form inserts another … | |
this is my html code in which i want to get info from the server and insert it into the list items and show it in the browser, using loop .so i am using php but this code is not working for me . please somebody help me !!!!!!!!![CODE]<body> <div … |
The End.