Posts
 
Reputation
Joined
Last Seen
Ranked #543
Strength to Increase Rep
+6
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
34
Posts with Upvotes
31
Upvoting Members
25
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
6 Commented Posts
5 Endorsements
Ranked #340
Ranked #396
~66.9K People Reached
Favorite Tags
Member Avatar for aneeqtariq_143

i want to create a form for my client. My client require to create a dynamic for him. suppose, i want to insert 1 record in main table of mysql, and record multiple records in secondary table which has reference key of main table. I dont know how many records …

Member Avatar for diafol
0
7K
Member Avatar for davy_yg

Hello, Can anyone help me cek this filepath : $bannerAdsPath = 'localhost/phpads/install.php'; require 'localhost/phpads/install.php'; Is it correct how I wrote it? This error appears: Warning: require(localhost/phpads/install.php) [function.require]: failed to open stream: No such file or directory in C:\xampp\htdocs\phpads\admin.php on line 6 Fatal error: require() [function.require]: Failed opening required 'localhost/phpads/install.php' (include_path='.;C:\xampp\php\PEAR') …

Member Avatar for Alberto Bucur
0
169
Member Avatar for ricardojorge.net

# Creating a register and login page, by creating a mysql database and all php files. # ## I was reading a [thread that is dead](http://www.daniweb.com/web-development/web-design-html-and-css/threads/97183/to-create-a-registration-page-and-login-page) now, so i started this one: ## **Simple PHP login:** Create a database (mysqladmin) Name the table "dbUsers." It will need 4 fields: Name …

Member Avatar for Ank1
0
441
Member Avatar for anirban1087

I am trying to get some xml data into my web page using php. When I am placeing the url into a web browser it is showing some xml data. But when I am doing that from inside a php page it is returning some empty data. The link is …

Member Avatar for R0bb0b
0
289
Member Avatar for adam.adamski.96155

Hello :D I am using the twitter API to perform a search for a certain author, and storing the results in a database so that I can perfrom an action on each entry. However, there are many duplicate results that have small differences at the beginning of the string or …

Member Avatar for adam.adamski.96155
0
4K
Member Avatar for adam.adamski.96155

Hello :) I'm working with a database of postcodes. I have an existsing query that returns the postcodes within a certain radius: `select *, acos(cos(51.496502411798 * (PI()/180)) *cos(-0.13982862499836 * (PI()/180)) *cos(lat * (PI()/180)) *cos(lng * (PI()/180))+cos(51.496502411798 * (PI()/180)) *sin(-0.13982862499836 * (PI()/180)) *cos(lat * (PI()/180)) *sin(lng * (PI()/180))+sin(51.496502411798 * (PI()/180)) *sin(lat …

Member Avatar for pritaeas
0
137
Member Avatar for GraficRegret

I am trying to get my code working so that I can store the path of an uploaded picture onto a table so that I can call upon the uploaded file whenever I need it. So what happens on the web page is, a person enters information on a vehicle …

Member Avatar for diafol
0
179
Member Avatar for bops

Hi, I have quite a large CSV file (Around 20,000 rows with about 20 columns) that I am trying to manipulate. Initially I am looking for a way to get out the first 10 or so records after they have been sorted in ascending order on one of the numeric …

Member Avatar for bops
0
1K
Member Avatar for Farhad.idrees

HI i have many fields in form....i want to check if anyfield is null so i want to do alert mesege also want to change the colour of text field....i have written a code but no error but not working anything...my code is for java scritpt function validateForm(Qform){ var i=0,Q= …

Member Avatar for Farhad.idrees
0
323
Member Avatar for bettybarnes

I have a textbox which pulls the maximum value from DB. But it gives wrong value. Can you help figure out what went wrong here? **basicfunction:** private function basicInformation() { // initialize variables $host = "localhost"; $db_name = "test"; $tbl_name = "ballpark_details"; $username = "root"; $password = ""; // connect …

Member Avatar for adam.adamski.96155
0
162
Member Avatar for amith_ami

hi all... pls help me... i have a problem with editing the record... my adding and editing page are same.... adding works properly but while editing a record for ex : if i change the emailid of a record and if the newly given emailid is already exists in the …

Member Avatar for amith_ami
0
96
Member Avatar for dinhunzvi

i have a form with a text box and a drop-down list. the form submits to itself. when the user submits the form for processing the form must be able to retain the selected value from the drop list if there is an error. here is the code for the …

Member Avatar for adam.adamski.96155
0
339
Member Avatar for manivannan.ajith
Member Avatar for albert.sibanda.9

l keep getting this error: Parse error: syntax error, unexpected $end How do l get rid of it.l am preety knew to php so l am still learning,

Member Avatar for LastMitch
0
196
Member Avatar for tibor.marias

Dear Sirs! I would like to echo out the last iteration of a while loop differently as the first ones. This is my code wich echos out the first and the last iteration, but I need the middle iterations as wel.. <?php // Print if ($row = mysql_fetch_array($result)) { echo …

Member Avatar for diafol
0
148
Member Avatar for shahai.ali

hi every one. i have two tables table_1 ( std_id primary key, std_name, tchr_id foreign key ); table_2 ( tchr_id primary key, tchr_name ); as from the above tables i have the foreign key constraint. it mean if i want to delte teacher id it must be firstly deleted from …

Member Avatar for adam.adamski.96155
0
201
Member Avatar for shahai.ali

hi all i want to store the error of `mysql_error()` in a variable. i was trying the following: $alert_error = "<script type=\"text/javascript\"> alert('".mysql_error()."') </script>"; $id =5; $query = mysql_query("DELETE FROM abc WHERE id ='$id'") or die ($alert_error); actually my there is a foreign key constraint so when i click to …

Member Avatar for shahai.ali
0
610
Member Avatar for mpc123

Hi I have to echo out some fields but "field 1" "field 2" "field 3" has a numeric value. I need to divide field 1 by field 2 and then take that result off of field 3 and echo that result. The code is part of a table this is …

Member Avatar for mpc123
0
165
Member Avatar for bitejones

Hello I have a database of jobs and I want persons to be able to search using keywords. users will be required to enter these keywords via text field. I am able to display the results if the user enters one search word in the text field however i am …

Member Avatar for adam.adamski.96155
0
205
Member Avatar for dodgers125

I've been at this for quite some time and just can't figure it out.I have a html table and have to find the total sum of the values in the $total/Sale Cost (last) row. Can anyone help me out or point me in the right direction. Code below: <?php print …

Member Avatar for adam.adamski.96155
1
230
Member Avatar for Riu 2009

hi everyone i have made 3 stylesheets for different looks for my website i want to load/ change the stylesheet if the user selects the dropdown option and cliks update button heres my code for drop down <label>Select Theme:</label> <select name="theme" value="<?php echo $theme; ?>"> <option value="Default">Default</option> <option value="Dark">Dark</option> <option …

Member Avatar for diafol
0
245
Member Avatar for Rizi004

Hi I am inserting in database but there is error in query. i have array in which form data is stored and function recieve the array but data is not inserting in array. bellow is the code. $insArr=array(); $insArr['first_name']=addslashes($_REQUEST['first_name']); $insArr['last_name']=addslashes($_REQUEST['last_name']); $insArr['email']=addslashes($_REQUEST['emailid']); etc there is 46 fields in table //now the …

Member Avatar for adam.adamski.96155
0
133
Member Avatar for Riu 2009

hi everyone, i just want to ask is there any mistake in my code..because whenever i comment the email check it wroks fine but with email check it always gives error that this email already exists.. i am actually checking if the email im going to add is present already …

Member Avatar for Riu 2009
0
125
Member Avatar for xbat

Getting a q is undefined.. I took <option="1">1</option> etc.. and now I'm pulling with ajax from datasrc.. I can't quite figure out how to define my database value.. The one uses query which pulls from the auto start typing.. then it submits to the other page through q - Once …

Member Avatar for xbat
0
421
Member Avatar for MarkieJye

I'm doing a delete page, and this part is the part where all the data were supposed to be echoed. but, the problem is I don't really know how to print the checkbox within the php. The line 6 is wrong. Kind men, do show me how to write it …

Member Avatar for MarkieJye
0
151
Member Avatar for flynismo

Hey all, What I am trying to do is create a search by zip code form. When the form is submitted, it will search for members in nearby cities within the given radius. For example, I submit a form saying find me all members within a 20 mile radius of …

Member Avatar for flynismo
0
110
Member Avatar for Khav

Hello guys , I am getting crazy with this html thing , i just don't know why its not working as expected. Basically i need to display php variable in html Let see the code.... Suppose i have this <?php for($x = 0;$x <count($_FILES['image']['name']);$x++) { $url = something; } //The …

Member Avatar for adam.adamski.96155
0
406
Member Avatar for Albert Pinto

Hi People, got a small issue. I have 3 select boxes, I mean dropdown list country dropdown list... then a state and then a town... I'm fetching data from database and loading it in the first dropdown list (country) On change of country, states get loaded and on change of …

Member Avatar for Albert Pinto
0
1K
Member Avatar for AndreRet

I have the following scenario - User clicks on an image to search for a particular brand vehicle. The value of that image must then go the hidden box where I will post the value returned to another form. I just can't seem to get the value returned... My code... …

Member Avatar for AndreRet
0
239
Member Avatar for php_noob

My article title is a bit misleading but since it is my primary concern so I made that my title. Anyway, this is the problem I have form and it generates a list of people that is needed to be scheduled. this is (more-or-less) the code. <?php $strQuery = "your …

Member Avatar for adam.adamski.96155
0
153