39,402 Topics
![]() | |
Thank you for the tutorial last time on query strings :) It worked for me, this is my working query string: [code=php]<? $i=$_GET['vehicle']; switch ($i) { case Chrysler: include("chryslernew.php"); break; case Chevrolet: include("chevnew.php"); break; default: echo "include ("nopage.php")"; } ?>[/code] However, I'm trying to get my PHP URLs with query … | |
I have a query that is returning customer data. I want to pass the $row['VisitorID'] Value on using the _GET _POST superglobal in two different links one that goes to a page to edit users profile and one that edits the users order preferences. I can get one or the … | |
Hi all I would like to start debugging and have been doing some searching on the web, but everything I find is pretty complicated. (I'm just starting to learn web developping) Does anyone know where to find good, plain, correct instructions, for setting up my environment for debugging? I'm using … | |
[CODE=PHP] <? // This is the directory to list files for. $theDirectory = "upload"; // without the / // Do you want to show directories? change to false to hide directories. $listDirectories = false; if(is_dir($theDirectory)) { echo "<table>"; echo "<tr>"; $dir = opendir($theDirectory); $counter = 1; while(false !== ($file = … | |
i am trying to make a small search script, but i cannot get it to search for a particular keyword that may end in a space... my input string is like... amit qby:name hello i want the preg_match to gimme qby:name another input string can be amit qby:name i can … | |
so i have a program that is supposed to update a table called master by increasing the clicked field by 1 for every time the email shows up on a second list (tempop); it worked fine when i tested it on a small dataset - the tables were 5000 and … | |
I read all the thread on a similar post from 2006 but did not find an answer there. I can not redirect on my localhost (Apache) or on my hosted site (Apache). I was using a function created in a php course I took then switched to a basic piece … | |
Hi, I use [inlinecode]header("Cache-Control: private");[/inlinecode] to prevent page expiry problem. It is to make browser’s “Back” button work otherwise; page expires if user hits “Back” button to go back and see previous pages. I have 3 steps buying process. 1. Delivery address selection from radio boxes 2. Creadit card details … | |
Does anyone know how I would go about searching through an array for repeated values and return the one with the smaller index? For example: $array[0]= "timmy"; $array[1] = "joe"; $array[2] = "elmo"; $array[3] = "clarissa"; $array[4] = "joe"; I need a function that will return "1" if I do … | |
Hi there! I'm very new to php and I'm trying to send an email with an attachment from my localhost. I have only managed to receive simple emails but not the attachment so far. Is there a particular problem with localhosts and attachments or it's just my scripts? (i've tried … | |
Pls, i am installing claroline and this is displayed on the browser WARNING ! SYSTEM UNABLE TO FIND CONFIGURATION SETTINGS. What can i do? | |
Hi all I'm used to programming in Java, which does support method overloading. So when starting to use PHP, I quickly found that this was not supported in PHP. But why and how is this supported with "system methods" (I don't know if that name is correct) like, for example, … | |
Dear All,, I have a search query for searching 40 fields that are belonging to 5 different tables.. I have used INNER JOIN for this purpose... I have stored the search conditions into a $string variable and the result is getting correctly.. Here comes the problem.... I want to paginate … | |
Hello Guys, i am currently using my localserver dont have a hosting where i can test it, so i would like to know if this basic idea will work or not. Here is the code do you think if i enter the ID it will get the email and then … | |
hi guys i have seen this new line of code and surprised! mysql_connect('localhost','root','') or testFun(); i know that this is used in db connections i want to know all the applications of 'or' guys plz help me | |
okay guys ive got this page in which i want to verify the key that the user inputs with the key in my sql database, and then it updates a row called user_okay when i click on the enter button. [code] <?php session_start(); include ('dbc.php'); //if ($_POST['Submit']=='Enter') // { $keys … | |
From what I can gather on the internet this is a fairly easy piece of PHP script but success is eluding me. Maybe im missing something really small like punctuation or an uppercase letter or maybe its something else. Im wondering would it be possible that theres conflict between java … | |
Hi all i need some help with my code. i have a page where i want to update a row 'key' in my table users with a new value that i have generated. dbc.php [code] <?php $dbname = 'phplogin'; $link = mysql_connect("localhost","root","") or die("Couldn't make connection."); $db = mysql_select_db($dbname, $link) … | |
Hi, We have developed a website, viz., [url]http://www.plussizebeauties.com[/url] for plus size women. This website is viewed best in Mozilla Firefox. But when you view this in IE, the top alignment is not coming accurately. Could anyone suggest reasons for this, so that I could correct my website. Thanks in advance … | |
[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() … | |
Hey all. Me again. I am working with a database that contains data about multiple cruises. I am setting up a site that will allow the user to select multiple things. These include: Name of cruise ship. Departure Port. Port of Calls. These items are in three pull down menus. … |
The End.