39,320 Topics
| |
Hello! Im new to PHP and have a need for what I have found out is called AJAX. I prefer to code in PHP for my DB access. I need to create a dropdown list using AJAX that updates it self depending on what is slected in the parent dropdown … | |
ok so, the problem is it goes straight to the register3.php and it totally ignores the if statements! here is the code: [ICODE]<html> <head> <link rel=stylesheet type=text/css href=style.css> <title>Register</title> </head> <body> <center> <h1>You Are Now Ready To Register!</h1> <div class=indexboxlarge> <form action=" " method="post" name="register"> <label>First Name*<br> <input name="name1" type="text" … | |
somewhere i read to install joomla i must install it in apache's directory htdocs... but i installed the php5, apache, mysql pack with easyphp... and it doesn't have any htdocs folder... where do i install it then? | |
ok so what i want is the image path to be implemented in the database, but i dont understand how i can also include the speech marks for the image source. Heres my code: [ICODE]<html> <head> <link rel=stylesheet type=text/css href=style.css> <title> Image Upload </title> </head> <body> <?php include("header.php"); ?> <br> … | |
Hello I have a question about pulling a value from a mySQL DB. Wondering how you pull just one value out of a list.. ex. Table name is People ID 1 FIRST NAME Jim LAST NAME Boberson PHONE 555-555-5555 AGE 99 How would I display just Jim Boberson's age on … | |
Here is a little bit of the code that generates a number based on retrieving the largest number from the field Number. However when it inserts it in, the Number value is 0. here is the code: [ICODE]<?php SESSION_start(); include("dbcon.php"); dbcon(); $user = mysql_real_escape_string($_POST['user']); $content = mysql_real_escape_string($_POST['content']); $date = mysql_real_escape_string($_POST['date']); … | |
as i`m creating a social network website,i would like to inhance members to upload photos to their personal albums. So i dont know how to get started,is there a free script i can use or somebody to explain to me what i need to do inorder to fulfill my needs. … | |
Hi am currently new to php i know all the basics etc but wanting to learn to do bigger more complicated things can anybody reccomend any gud software or books or anywhere could have help learning any help would be appreciated fanx | |
i get this old code to create some tables but it gives me error this [code]#1064 - 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 '`message` TEXT NOT NULL , `from` INT( 11 … | |
Hello all, I have this strange problem. I have a website where user can post messages to the site. I see from yesterday that someone is trying is manipulate with the forms. I see some 1048 messages posted in a single minute to the site :( . I used nl2br(htmlentities(-displaymessage)).. … | |
ok so here is the error:[ICODE] 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 'from, content, date) VALUES('', '', '', '')' at line 1 [/ICODE] Between the apostrophes is the information from the … | |
| |
Hello Again everyone, I have two forms on the same page, i have text input fields and the drop down boxes i created are auto submit boxes i created with javascript. Now the problem is that when form 1 submits itself it resets form 2 and vica verca i am … | |
Can anyone please help here I have a form that i wish the user to select a product from a drop down box and then query it in a mysql then i would like to the user to input a number in the next field the press the submit button, … | |
Hey All, I've got a web page that displays multiple boxes of text using php. The text are coming from .txt files instead of using a database to store the data. I can update these text files when I want to change the information. My problem is that I need … | |
Hi everyone i cant seem to get my drop down boxes to retain the data the user selected is this code right? [CODE]<select name="bap1" id="bap1" onchange='this.form.submit()' value="" > <option>Select One</option> <option value='Energy Efficient Cooking' <?php if($_POST['bap1'] == 'Energy Efficient Cooking') echo "selected"?>>Energy Efficient Cooking</option>[/CODE] Tahnks in advance anyone!! | |
i want to Call a Div tag in validating a form.....that means i need a div call at the onblur condition....in that time i want to recieve a msg like this username is already exits....like that | |
Hi everyone and thanks for reading. Up until yesterday I was unaware of this technique, and have always just ran a user's password through md5 and stored the result to the database. From what I've been reading about SALT it sounds like a very cool way of making your passwords … | |
Im using [URL="http://uk2.php.net/manual/en/function.get-browser.php"]get_browser[/URL] and I only want to echo parts of what is returned. So say for example I just want to echo platform and browser from what the array returns. How would I do that. Thanks :) | |
Hello, All: I have been testing and learning by building this simple CMS application and want see if works OK, but most importantly, would like to know if any of you are able to hack it. It's a simple "notepad" that allows people to register their own id/pw and able … | |
everybody knows strtotime is buggy in and around february first day +1month at the 29 30 31 January typically puts you in march 1 not Feb 1 last day of the month is not always 28 feb, may be march I have a script for my own use, residential leases … | |
The server crashed and I have tried everything I can think of and read everything I can find for the last 2 days....this is what I get when I try to open phpmyadmin... [COLOR="red"]Protocol error: Unknown command type, closing connection[/COLOR] I don't know how to fix this... I have tried … | |
Hi There folks. I was thinking of trying to make a php function in my sites configuration file so that I could keep all mysql database info in one central file. I should mention that this is the first time I have tried to make my own function. I have … | |
Basically what i want is the action page to have "GET" information in it. here is the code i got so far: [ICODE]<html> <head> <link rel=stylesheet type=text/css href=style.css> </head> <body> <?php include("header.php"); ?> <center> <h1>You are currently uploading an image in gallery: <?php echo $_GET[gall]; ?> <br> <br> <br> <br> … | |
[code] <? $sql="select * from table"; while($row=mysql_fetch_array($sql)) { $name=$row['name']; $view=$row['view']; $view1=$row['view1']; $id2=$row['id']; ?> <form name="myform" action="list.php?id=<?=$id2;?>&view=<?=$view;?>" method="post"> <td align="center" width="5%"><?=$name;?></td> <td align="center" width="5%"><?=$view;?></td> <td align="center" width="3%"><input type="text" value="<?=$view1; ?>" size="5" id="newva" name="newva"> </td> </form> <td align="center" width="5%"> <a href="/show/list?id=<?=$id2;?>&view=<?=$view;?>" onClick="document.myform.submit();" >Submit</a> </td> <? } ?> [/code] It shows out put … | |
Hi i am trying to output data the way i want but just cant get it to go in the right place. The code i have used is: [code=php]for($i=$n_start;$i<=$n_end;$i++) { echo "<img src='{$products[$i]['phonepic']}' width='100' height='100'>"; echo "<tr>{$products[$i]['modelNum']}</tr>"; echo "<tr>{$products[$i]['price']}</tr>"; echo "<tr><input type='text' name='item{$products[$i]['stockID']}' value='0' size='5'></tr>"; }[/code] As you can see … | |
hello I've got two tables that I want to be connected(let's call the A and B), so I made a third table. In table A and B i got two primary keys a_id and b_id. Now I create the third table named AB. Inside that I create ab_id as primary … | |
Hi there. I am having a problem with hebrew coming through on my php form mail script. Its a standard script that is taken from the original .pl script. I got it from [url]http://www.dtheatre.com/scripts/[/url] When the form comes through, the hebrew is gibberish. what do I need to change to … | |
I have this... [code=php] <?php $links = explode("\n", $_POST['links']); foreach ($links as $links) { echo '[PART="NUM"]'.$links.'[/PART] <br />'; } ?> [/code] Where it says NUM I want the number of its position in the array. So if I fed this to this script: [CODE] http://www.google.com http://www.yahoo.com http://www.ask.com [/CODE] The script … | |
I have developed a site in PHP 5.26, which is running perfectly from the development server. But after uploading the site to the Web server, it is not working. The server is running PHP 4.4. I haven't used any specific features of PHP 5, so the site should have worked … |
The End.