39,323 Topics
| |
First off, system specs : MAC OSX, PHP 5 and MySQL 5.1.51 Trying something very simple and for the life of me it just won't work... HTML Form Code: Filename : AG_test_DB.html [CODE] <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> <title>AG test</title> </head> <body> <form method="post" action="add.php"> <input name="fname" type="text"> <input … | |
I am having a problem of getting a variable passed from one page to another. On the first page there is a drop down menu populated by sql. [CODE] $result = mysql_query ("select Name from dba.wx_faq_backup where Name like '%dev%' group by Name") or die (mysql_error()); //$result = mysql_query ("select … | |
please post the complete script to create a subdomain with discription. | |
Hi guys, me again. Having an issue with a multiple select form object that is generated through PHP and retrieves and displays MYSQL values. it displays and retrieves correctly and PHP produces is correctly, however, the form submission to post the values to MYSQL do not, instead it posts the … | |
Im new to php so I decided to make site to test what i have learnt so far, nothing fancy just a test of php skills.. So I created a MySQL database (also new to), with a schema called items, a table called things, with 10 columns, idthings being the … | |
I work for a government department that stores a fair amount of private data in a database.In an attempt to secure database access, we have created a database table that contains all of the database logins and passwords. We have also created a class called "db_connect.php" which contains the login … | |
I have a form which is developed in php with captcha. Problem is when the captcha is wrong the form data which user entered is losing, which I don't want. I want to store the form data when the captcha is wrong. Thanks in advance. | |
i am trying to submit a form to the mysql database using php the following error is resulting. Error: Unknown column 'unit1_code' in 'field list' what could be the problem | |
Hey guys.. I have a foreach loop (with multiple variables inside of it) and I need to collect the variables, as well as other content, and store it into a single string so I can output it into an email. Has anyone done something similar to this before? Here's some … | |
i am trying to connect a form to mysql database by using php code,but once a click submit button to submit the form this is the error am getting. Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the … | |
I need a "Page Recommendation" or "send this page to friend" Scripts | |
Hi frnds, I want activate the textbox when i select the particular checkbox in php.Anybody know send that coding ...... | |
how can I check if any field is empty i tried this: [CODE] $x = $_POST['a']; $y = $_POST['b']; $z = $_POST['c']; if($x or $y or $z == ""){echo "Please fill in all the fields";} else{ //rest of the code } [/CODE] but I allways receive the "Please fill in … | |
Dear Friends, I want help to generate [url]www.bestuff.com[/url] like paging in my application because my client want same thing and in today's era this thing is found everywhere. I searched a lot but still could not found help. Here I am providing link to that paging so that you can … | |
I have this code working, I would like to change the fuction message to display a pic by its url insteed of the message popup. --------------- else if(k >= 6) { alert("It's tough ") --------------------- I am thinking along the lines of an else if (k >= 6{ echo <img … | |
I am trying to get a text box to show a number and then add it to another number,[CODE]<html> <body> Field1: <input type="int" id="field1" value="1" /> <br /> Field2: <input type="int" id="field2" /> <br /><br /> Click the button to add the content of Field1 to Field2. <br /> <button … | |
Hello All: I'm working on a project that requires me to perform a process of taking user input from a form's textarea and appending it to another text field in the database. This field already has information in it. I want to be able to append the new value separated … | |
I need to do project about online banking. so i was told i need to learn php n mysql. I dont have access to any tutor coz its a distance program course. I know php.net website. and mysql.com. I am assuming i just need these two sites and a book … | |
Hello, i am trying to create a script that will allow me to visit a page and enter some information and when i click submit it will send that data to anther page, i have managed to do it with a http link, but my question is how to keep … | |
So, i'm making a forum and need to do a few things to the string stored in the variable $body. How would I go about doing this? A) Not strip, but make where all the HTML/PHP/Javascript/CSS/etc. doesn't work. Like, that way people could share code but it wouldn't execute. Someone … | |
Well I got a doubt.. I have been away the whole web development scene for about 1 year and a half and I'm trying to finish some old projects but i don't remember anything. I have this blog I coded myself with basic php knowledge I have the index PHP … | |
[CODE]<?php // open base $con = mysql_connect("xxxxxxxxxxx", "xxxxxxxxxxx", "xxxxxxxxxxxxxxxxxx"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("xxxxxxxxxxx", $con); // open table $result = mysql_query("SELECT * FROM leader"); // print table & column headders echo "<table border='1'> <tr> <th>id</th> <th>Club</th> <th>Website</th> <th>Club Badge Url</th> </tr>"; // get data … | |
Hello, I'm trying to modify an existing php page by adding a submit button, to allow the user to change the unit cost of a product in the inventory. I can get the product informations from the database, but nothing happens when I press the submit button. The fist submit … | |
Hi, I have a question regarding Object Orientated Programming as it is baffling me. Lets say I have a form called register. It is made up of Username, Password and Emai. Now when the user clicks submit the form will be handled by the class register but how does the … | |
Okay,i try to call a function of mysql_prep() that i made in functions.php. I try to call this function at the page of create_subjects.php by typing this [CODE]<?php require_once("includes/functions.php");[/CODE] into the create_subjects.php. and this is the full code of create_subjects.php : [CODE] <?php require_once("includes/functions.php"); ?> <?php $connection = mysql_connect("localhost","root","mypassword"); if … | |
i have joomla installed for my website. i get this error when i try to export something. [CODE]Fatal error: Call to a member function children() on a non-object in /home/infunity/public_html/administrator/components/com_zoo/elements/repeatable/repeatable.php on line 52[/CODE] how can i fix it? | |
I am needing a dropdown menu to pull data from table on a mysql database and then with the selected item, send it to a new table along with the rest of the data from the form. I have got the dropdown pulling data from the database with the following … | |
Hi, Without first knowng what public class variables the class has, how can i display a list of all the variables in that class along with the values? [CODE]print_r(new MyClass());[/CODE] will display the public variables and values, plus some other unwanted entries, but I cannot do anything with them. I … | |
i have to the following code which give u a cost price(thats our price) and a RRP i have made it work the difrence out and put its as a % but cant get it to show anything other than "£0" for saving have i missed somthing [CODE]<?php $_REQUEST['type'] = … | |
| If I put this line [ICODE]$friends = $connection->get('followers/ids', array('screen_name' => '2020volt'));[/ICODE] Twitter api returns something like this : [CODE]Array ( [0] => 173605790 [1] => 187372244 [2] => 17535566 [3] => 190756198 [4] => 184577861 [5] => 119247538 [6] => 183813521 [7] => 18013082 [8] => 149601084 [9] => 186491393 … |
The End.