39,320 Topics
| |
[CODE] <?php include 'dbc.php'; $query = "SELECT * FROM em.tutor"; $result = mysql_query($query); while($row = mysql_fetch_array($result, MYSQL_NUM)) { echo "Name :{$row[0]} <br>" . "Subject : {$row[1]} <br>" . "Message : {$row[2]} <br><br>". "Message1 : {$row[3]} <br><br>". "Message2 : {$row[4]} <br><br>". "Message3 : {$row[5]} <br><br>". "Message : {$row[6]} <br><br>". "Message : … | |
test_imagedb_create.php [CODE] <? $dbserver = "localhost"; $dbuser = "root"; $dbpass = ""; $dbname = "em"; $dbconn = @mysql_connect($dbserver,$dbuser,$dbpass) or exit("SERVER Unavailable"); @mysql_select_db($dbname,$dbconn) or exit("DB Unavailable"); $sql = "SELECT image_type,image FROM em.testblob WHERE id =". $_GET["id"]; $result = @mysql_query($sql,$dbconn) or exit("QUERY FAILED!"); $contenttype = @mysql_result($result,0,"imgtype"); $image = @mysql_result($result,0,"imgdata"); header("Content-type: $contenttype"); echo … | |
I created a login and registration page with the following code, but it seems to have a syntax error at the command prompt "die ()", and I'm not sure as to how to fix it? Name the table "dbUsers." It will need 4 fields: Name Type Addition id int(10) Primary … | |
I want to sort the result of a while loop alphabetically, here is the code. I am new at this and I tried everything I can think of, but I am still clueless. Thanks for anyone who could help. [code=php] <?php while (loop_collections()): ?> <div class="collection"> <h2><?php echo link_to_collection(); ?></h2> … | |
i have created a simple form (well with the help of a book ). i am able to process the data and display it . But i am[B]not able to send the same message to my mail ID[/B]. i am using WAMP server. i am running the script from my … | |
Hi, This is my first post here, I know I probably don't have the acceptance of the community yet or anything, but I really need help with this. I payed someone to make a custom php website for me... it includes lots of things that I had requested. The only … | |
I am completely new to PHP and am doing online tutorials to learn. In this code: [CODE]<?php $cars_on_lot = 10; print "We have $cars_on_lot cars.\n "; print "We got another new car.\n "; $cars_on_lot++; print "Now we have $cars_on_lot cars!\n<p>"; print '<b>$cars_on_lot++</b> is the same to PHP as <b>$cars_on_lot + … | |
Hello all, The following captcha script works fine, but only with $name, $email and $message. As you can see I have added $bname, $add, $postcode etc. My Question is, how/where do I amend the script to include those new variables in the email that has sent? I have played about … | |
I've written a form in html(uses Java) that creates a mail (html) via a php file. For me everyting works fine, but when [B]certain users[/B] click the send button, the form blinks and [B]empty all fields[/B]. But other users get a confirmation mail. How is this possible? In a way … | |
Hi all I'm having a problem with netbeans when I try to make af form. It gives an error when it's not supposed to. At least, as far as I know it's not. An image can say a thousand words: check the attachment. Any help? I know this is not … | |
hi, i am redirecting user to previous page after adding the data. user has come from the url [CODE] http://localhost/goaweb/admin/viewimage/54400 [/CODE] where [B]add data [/B] button is placed to [CODE] http://localhost/goaweb/admin/addpic/NTQ0MDA= [/CODE] for adding the data (add data page) now i am rediirecting the browser to preview URL from where … | |
Hello everyone, I'm having one annoying problem with a script I didn't even write. First of all, let me just point out the issue; If you goto this address (site is in french): [B][URL="http://axa.seomena.com/fr/calculez-vos-primes/calculez-vos-primes-assurances-medicales"]LINK[/URL][/B] You'll notice that it's a dynamic calculator, if you choose "individual" and click next, it'll show … | |
Hi everyone, I have a registration form for the book, which has two many to many relationships with Author and Category, So I don't know what is the best way to implement and to be user friendly. If there is an example, please let me know and also share your … | |
Dear All, I am very happy to be here. I have got alots help from this forum. I don't know how to show my search result on the same page. My Code index.php [ICODE] <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script language="javascript" type="text/javascript" src="jquery-1.3.2.min.js"></script> <script language="javascript" … | |
Hi. Suppose I have a list box, which is filled out from mysql, and I have a text box and a submit button. I want to add the text box data into list box and at the same time I want to have the text box data into mysql as … | |
unexpected termination of script debugging ended xdebug. This error occurs while I debug my program and after the last breakpoint it gives me this error in the form of a error dialog. I'm working with eclipse glileo and PDT with XDebug debugger for php. | |
Hi, I have a problem. I am storing projectid (varchar) as a field in this format :- DD-NNN where DD is the last two digits of the year and NNN is the next project number within that year (i.e. 09-500 is the 500th project in year 2009). The user has … | |
ok what i am trying to do is see if multiple values are all yes. idk if what i think is right, actually is right. [CODE] $1 = "yes"; $2 = "yes"; $3 = "no"; if ( ($1 && $2 && $3) == "yes" ) { $thing = "you"; } … | |
In a nutshell: I have a module that is using the php ftp commands for download and upload. The download works fine and the upload worked fine for a small text file. As I started using larger files, the upload completed without error but it only copied a small part … | |
Hows it going. Im brand spanking new to PHP and just lost my virginity to it today. The experience has been also similar, Awkward, and just going the wrong way about it, not to mention premature emotional ejacutlation after the installation and finding out that it wasnt satisfied with the … | |
creating an automatable autoresponder in php...? | |
Hi all, this is a tricky one. The following script will display a folders contents into a table, and show the file name as a clickable link, allowing the user to download. the problem is, when the script is ran, it displays the actual php, html files. what im trying … | |
Hi everyone, i created a web crawler in python and it gets data from specific parts in websites and stores this data in a mysql database which is later displayed in my website. however when i display the data in my website it appears with weird characters like this: After … | |
Hello people, i just want to ask for help, i have been trying to input in php and connect to database, however, if i input wrongly,,there is an output like this: Warning: pg_query() [function.pg-query]: Query failed: ERROR: duplicate key value violates unique constraint "requisitioner_pkey" in D:\xampp\htdocs\myPHPFiles(LESLIE)\INVENTORY_pogayGroup ( CODE )\addCustomer2.php on … | |
Recently, I started on a new venture in which many sites will be built off the same base files. Pretty much if I change one file it will affect all of my sites. This has its ups and downs, but since the ups outweigh the downs I am going to … | |
hi all, I am new in php. I want to show every row one by one during processing with check icon in the right side from row 1 up to row n? table row 1 √ row 2 √ . . . . . row n √ | |
hello, i would like to make my online forms transparent instead of the usual white as such you can have a black background but the form sits on top letting you see your background. | |
hello, i have a form in my site connected to a database for registering new members through the insert record server behaviour in dreamweaver. i would like to add a functionality that will notify me through email when a new member registers. help greatly appreciated | |
Hi All, In the following code, the selected row from mysql database it populated in each cell, except for the "Content", where the syntax is slightly different, and obviously incorrect. Please can somebody take a look at it for me and advise where it needs to be changed. Thanks [code] … | |
hi, if i left a field blank in my table. when i tried to retrieve all the info out to the form. the text box supposed to have blank (because the corresponding field in the table is blank) appear a "/" ... i have tried to use trim() ... stripslashes() … |
The End.