39,316 Topics

Member Avatar for
Member Avatar for blackxswil

I have a web page where it has: 1. A search button 2. two iframes Lets say I press the search button, the result page will be displayed on the first iframe. the result page has a picture link where if i click the link an image will be displayed. …

Member Avatar for blackxswil
0
90
Member Avatar for ptara1

I'm trying to display a picture stored in a msyql database. I have the following script, picscript.php, to call the picture from the database: [CODE] <?php $username = ''; $password = ''; $host = ''; $database = ''; mysql_connect($host, $username, $password) or die("Can not connect to database: ".mysql_error()); mysql_select_db($database) or …

Member Avatar for ptara1
0
112
Member Avatar for rajeesh_rsn

Hi friends, I want to delete an element from an array and re order the array ie [ICODE]$myArray=array('a','b','c','d'); echo $myArray[1]; // print b;[/ICODE] I want to delete [ICODE]$myArray[1][/ICODE] From $[ICODE]myArray[/ICODE] and re order the array So that [ICODE]echo $myArray[1]; // Return c insted of b[/ICODE] Thnaks In Advance Rajeesh

Member Avatar for Agarsia
0
147
Member Avatar for dhairyaguptha

I have a form loaded with table values from database. The form is embedded in php page because it is coming as result of AJAX request. I want to update the data in the same form and return to the table in database. the process is working overall. But when …

Member Avatar for dhairyaguptha
0
13K
Member Avatar for alafift

[B]Can somebody help me to retreive one or more checkbox values from the database using php and MySQL? Thanks and I appreciate that.:)[/B] In checkbox.html file the checkbox as follow: [CODE] <form method="post" action="Process.php"> <fieldset> <legend>Choose feature(s) to search for apartment</legend> <table border="0"> <tr> <td><input type="checkbox" name="feature[]" value="walkincloset">Walk in closet</td> …

Member Avatar for sudeepjd
0
6K
Member Avatar for jrotunda85

I am creating a login script and I need to check that the username and e-mail don't current exist in the database otherwise it will print an error. I've tried the following but it's not working: [CODE=php]//Create Username Array $SQL = "SELECT Username from user" $Result = mysql_query($SQL); $Array = …

Member Avatar for Javvy
0
269
Member Avatar for El Pirata

The idea is pretty simple: Where the timer is made in Javascript, when it reaches zero it performs a query in PHP that alters the database value to add 1. The problem is that the timer in question must not be reset with page refresh, just like any browser based …

Member Avatar for sudeepjd
0
115
Member Avatar for luweegee

This code is to update the record into the database. Assuming there's a record that you want to edit, when you submit the button the page looks nothing happened because you need to refresh the page before appear the output here's the code. Help me guys pls... sorry for my …

Member Avatar for lyrico
0
190
Member Avatar for ptara1

I'm a php noob and I have a feeling that there is a simple solution to my question. I have a php mysql table search that returns a result sucessfully. What I would like to be able to do is select one of the results to be inserted into a …

Member Avatar for ptara1
0
176
Member Avatar for Mapper99

Hi there, I am trying to get ldap_modify to change an attribute in my Active Directory. [CODE] $activeUser="Test Guy"; $floorname = "First Floor"; $entry[physicaldeliveryofficename] = $floorname $results = ldap_modify($ds,"CN=$activeUser,OU=Test,DC=LDAPSERVER,DC=COM", $entry); if (TRUE === $result) { echo "The entry was successfully modified."; } else { echo "The entry could not be …

0
106
Member Avatar for jrotunda85

I have set up a DB which uses a Code table to store numerical values that correspond to a "Description" of the cigar. For example, a Cigar made in the Dominican Republic would be stored in the DB as being made in "80004." I'm not completely immovable on the Code …

Member Avatar for smantscheff
0
2K
Member Avatar for MoreBloodWine

The below block of code generates stuff like the below array but here's where it gets somewhat interesting. I took the legend and turned them all in to variables because of what I would like to have done which I will now describe below. Of the four arrays that this …

Member Avatar for jimforsyth
0
127
Member Avatar for uopdom

Hi, I've been racking my brain for the last few days to figure out what is wrong with my PHP coding. I've managed to get the default value from my combo box into my database, but when I change the option it is breaking on me. I have reduced my …

Member Avatar for uopdom
0
829
Member Avatar for dudzkie

Hello! hello i'm a newbie learning php scripts, so here's my question i query a data from my database, the list i query was way too long, how can i make the list much more shorter? I want it to like to show 10 data list and on the next …

Member Avatar for jimforsyth
0
70
Member Avatar for designalex

hi, if got a strange problem, im developing on localhost, if i try to upload a gif image windows give me the following error message: [B][I]Apache HTTP Server has encountered a problem and needs to close. We are sorry for the inconvenience.[/I][/B] and then it opens the windows downloader and …

Member Avatar for designalex
0
85
Member Avatar for bangla

Hi, I am using xampp 1.7.3. Downloaded in c/program files. when i click xampp_start.exe, i get a window saying "starting xampp..". then disappears. Then i click stop_xampp, it comes and disappears in one sec. Can you pls tell me what i should do? Thanks.

Member Avatar for petkovski
0
113
Member Avatar for lulemurfan

Hello, I have been moving my websites from one server to another. On my old server I was able to send php header information in the middle of a php document (part of a logon form). My new server just shows 'Warning: Cannot modify header information - headers already sent …

Member Avatar for jimforsyth
0
92
Member Avatar for banmikko

hi every! im a newbie and im stocked with some edit codes,. can u make me a code on how to edit records with images? i really need it now. If u can, then it is very much appreciated. here is my database and table CREATE DATABASE db1; CREATE TABLE …

Member Avatar for smantscheff
0
102
Member Avatar for ITHRIL12

Hey there,i just started learning php and i'm having some problem in forms. This is the code. [CODE] <html> <form> Enter username<br> <input type=text name=username><br><br> Enter password<br> <input type=password name=pass><br> <input type=submit value="Submit"> </form> <?php printf("Username is %s<br>", $username); printf("Password is %s",$password); ?> </html> [/CODE] The problem in the code …

Member Avatar for jajarvin
0
220
Member Avatar for alim18

Hello Guys, firstly i wanna say that this is really great forum. this my first on this forum and hoepfully will not be the last one. okey let me explain what is my problem; on that site [url]http://www.paid-surveys-at-home.com/[/url] i saw this form is created which calcuates "How Much..................." etc.. i …

Member Avatar for alim18
0
258
Member Avatar for lit108

I have a script which is parsing xml code and displayed the title of blog posts, the date, and a breif extract from each post. However I also want to show any mp3 links within that blog post too but I am not sure how to do this. If anyone …

Member Avatar for lit108
0
121
Member Avatar for dudzkie

Hello! I created a login form that is connected to the MySQL database, what i wanted to do now is to record who successfully login to the form and will also record the time and date he/she login Can you give me some hint on how to do it Thanks!

Member Avatar for dudzkie
0
94
Member Avatar for AntiNL

Hi, I've been busy writing a script to upload photo's to my webserver, and after a lot of searching I finally managed to get the permissions correct, but now I'm having another problem. There are quite a lot of posts about it, but they all come down to having the …

Member Avatar for smantscheff
0
255
Member Avatar for nats01282

Hello all im am after a script that allows for a drop down menu that allows the user to select a item and store that item into the database currenty i have [CODE] //all database stuff here $player_chr_pet = $_POST['chr_pet']; $chr_health = '10'; // var set at 10 incase error …

Member Avatar for smantscheff
0
293
Member Avatar for public-image

I am trying to detect if a users password is less than or equal to 5 characters then to error the user otherwise continue.. <? $pass = $_POST[password]; if($pass <=5){ echo"Error"; }else{ echo"YAY no errors!"; } ?> I can't get it to work can anyone point out a way to …

Member Avatar for public-image
0
97
Member Avatar for heshanm

Hi all, I am developing a MIS for a bank.There i want to create various types of accounts and i want something like this to be done. Ex: Account type Account Number A 1001, 1002, 1003, etc B 2001, 2002, 2003, etc C 3001, 3002, 3003, etc Likewise i want …

Member Avatar for public-image
0
221
Member Avatar for abhi10kumar

The email is going to spam. How I tweak the code so that email would sent into Inbox not into SPAM. Please help....

Member Avatar for Javvy
0
81
Member Avatar for sumon_CUET

hello, I use this code. But got a proble is shown below: Fatal error: Uncaught exception 'PDFlibException' with message 'pdf_open_image_file() expects exactly 5 parameters, 4 given' in D:\xampplite\htdocs\Resturant_project\user\image_test.php:7 Stack trace: #0 D:\xampplite\htdocs\Resturant_project\user\image_test.php(7): pdf_open_image_file(Resource id #2, 'jpeg', 'images_017.jpg', '') #1 {main} thrown in D:\xampplite\htdocs\Resturant_project\user\image_test.php on line 7 and code is shown …

0
37
Member Avatar for public-image

I am currently making a change password area and I wish for users to be able to change it although for passwords to be more secure we ask that passwords contain both letters and numbers and if users so choose they may have special characters as well.. I could not …

Member Avatar for MagicMedia
0
213
Member Avatar for joban.ali

Hi I have a while loop set up to call data from the database which is successfully doing. i would like my users to edit their own content on the database, a user can have many publications and so the user should be allowed to amend each publication. At the …

Member Avatar for sudeepjd
0
109

The End.