39,326 Topics

Member Avatar for
Member Avatar for Xufyan

look at the code first, [CODE]<?php $name=$_POST['name']; ?> <form method="POST" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <input type="text" name="name"> <input type="submit" value="GO" name="submit"> </form> <?php include ('db.php'); if(isset($_POST['submit'])) { mysql_query ("INSERT INTO example (name) VALUES('$name')") or die(mysql_error()); } if (!isset($_GET['startrow']) or !is_numeric($_GET['startrow'])) { $startrow = 0; } else { $startrow = (int)$_GET['startrow']; …

Member Avatar for diafol
0
93
Member Avatar for professor123

can l plz ask you something ... l hav a database with 4 tables i.e User(fname, lname,email and userid ------primary key{userid} ) Exam( examid, examname-------primary Key{userid}) Exam_user(examid, userid------primary key{examid}) Exam_category(categoryid, categoryname----prmary key{categoryid}) HOW CAN YOU WRITE AN SQL QUERY THAT ALLOWS U TO CREATE/retrieve A NEW TABLE WITH FIELDS;;;; (fname, …

Member Avatar for mschroeder
0
110
Member Avatar for javanew

please help me,, i have made a submit button in my contact us form,, but the problem is that when i have put echo "Successfuly sent"; it is aligned on the left , and it doesnt look good as a design how i can add inside echo string something like …

Member Avatar for dietdew12z
0
163
Member Avatar for soomro_moon

how to remove a post form this forum .i was having problm in php but it is solved now so i want to remove that post

Member Avatar for Xufyan
-1
76
Member Avatar for Xufyan

i want my code to Prevent fetching data on page refresh [CODE]<?php $name=$_POST['name']; ?> <html> <body> <form method="POST" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <input type="text" name="name"> <input type="submit" value="GO" name="submit"> </form> </body> </html> <?php include ('db.php'); if(isset($_POST['submit'])) { mysql_query ("INSERT INTO example (name) VALUES('$name')") or die(mysql_error()); } if (!isset($_GET['startrow']) or !is_numeric($_GET['startrow'])) …

Member Avatar for chrishea
0
116
Member Avatar for crazycat503

Hi, I want to build a search page much like beemp3.com. Not for music, but books. I have the following tables: books (bookid,booktitle) authors (authorid,authorname) booksauthors (bookid,authorid) Since a book could be written by multiple authors and the vice versa. Now, I need to see titles of books but the …

0
45
Member Avatar for mrlol

Hi guys, Need your help. Currently my development server using Wamp server. please read below for services details: * Apache/2.2.11 (Win32) PHP/5.3.0 * MySQL client version: mysqlnd 5.0.5-dev - 081106 - $Revision: 1.3.2.27 $ * PHP extension: mysqli * Server: localhost (MySQL host info: localhost via TCP/IP) * Server version: …

Member Avatar for R0bb0b
0
366
Member Avatar for Awah Mohamed

hey people . i have a question and i dont know where to post it . i want tow wrtie .htaccess file that rewrite the url of my links as well as increate my websites memory , i mean the size of the uploaded files and so on . i …

Member Avatar for tiggsy
0
85
Member Avatar for sahingidis

I am using PHP and MySQL E-Commerce book and when i want to see department list i got these errors. I did lots of things but nothing happened. does anyone help ? [COLOR="Red"] ERRNO: 2 TEXT: include_once(catalog.php) [function.include-once]: failed to open stream: No such file or directory LOCATION: C:\xampp\htdocs\seeshop\presentation\departments_list.php, line …

Member Avatar for tiggsy
0
120
Member Avatar for saadi06

hello i have a problem. i have an update query and it is working fine i just want to check if that query hass affected any row or not how can i check it thanx in advance

Member Avatar for tiggsy
0
45
Member Avatar for mangel.murti

hello all,, i am working on online hotel booking project . where user can pic room in Hotel and booked them using paypal. what if user want to cancel booking... i used paypal api for that.....and payment type is sale.... my Question is that 1. if user wants to cancel …

Member Avatar for mangel.murti
0
105
Member Avatar for Legend32A

Hello, I am trying two days now and I have spent about 12+ hours on this and I can't find a solution :( Please help, or I am gonna lose my mind! I am trying to save user's monitor resolution on MySQL. I almost done it but, I have a …

Member Avatar for Ninetie
0
173
Member Avatar for billmudry

Sometimes a person can get too close to their work that they cannot see what is going on wrong. I hope that is the case here. I have been working on my favorite project, a large wood knowledge base at: [url]www.prowebcanada.com/taxa[/url]. There is enough data to look up already and …

Member Avatar for pritaeas
0
189
Member Avatar for soomro_moon

I'm getting an error as i'm trying to Insert Data From a Form Into a Database through PHP but i don't know whats wrong with my code..help [CODE] <? include("connection.php"); mysql_query("insert into patient_information (ID,admission_ID,patient_ID,guardian_ID,admission_date,admission_time,patient_status,reason_for_status,referred_doctor_ID,referred_doctor_name,assigned_doctor_ID,assigned_doctor_name,department_ID,department_name,ward_ID,ward_no,room_ID,additional_notes) values('NULL','"$_POST[a_id]"','"$_POST[p_id]"','"$_POST[g_id]"','"$_POST[adm_d]"','"$_POST[adm_t]"','"$_POST[p_s]"','"$_POST[r_s]"','"$_POST[r_d_id]"','"$_POST[r_d_n]"','"$_POST[a_d_id]"','"$_POST[a_d_n]"','"$_POST[d_id]"','"$_POST[d_n]"','"$_POST[w_id]"','"$_POST[w_no]"','"$_POST[r_id]"','"$_POST[a_n]"')")or die(mysql_error()); echo $q; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } echo "<script type='text/javascript'> alert('1 …

Member Avatar for Shanti C
0
101
Member Avatar for ankit.pandey3

[CODE]<?php require_once('upper.php'); $error_msg=''; if(!isset($_COOKIE['LoginIdCookie'])){ if(isset($_POST['submit'])) { require_once('database.php'); $LoginId=mysqli_real_escape_string($dbc,trim($_POST['LoginId'])); $Password=mysqli_real_escape_string($dbc,trim($_POST['Password'])); if((!empty($LoginId)) && (!empty($Password))){ $query="SELECT * FROM registration WHERE LoginId='$LoginId' AND Password=SHA('$Password') AND Flag='A'"; $result=mysqli_query($dbc,$query) or die('Not Connected'); if(mysqli_num_rows($result)==1) { $row=mysqli_fetch_array($result); setcookie('LoginIdCookie',$row['LoginId']); //$home_url = 'http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . '/index1.php'; header('Location: index1.php'); } else{ echo 'Enter right UserName/Password combination or You …

Member Avatar for ankit.pandey3
0
101
Member Avatar for sreejithmca

Hi, I am using SMPP class to send SMS. Also i am not much familiar with the same. Please help me to get the delivery report using SMPP class. With Regrds Sreejith

0
43
Member Avatar for ashishchoudhary

Hello, I want to post my product details on amazon but i did not find any web service which provide facility to list your product on amazone. if is there a web service please let me know about that also please tell me if this service is free or i …

Member Avatar for ashishchoudhary
0
104
Member Avatar for ello

Hey guys I have a small piece of code and I'm just wondering how to go about doing the following. All the script does is gets random information from a database every time the user clicks a link. Which works fine, but the problem is the script is getting information …

Member Avatar for chrishea
0
97
Member Avatar for Matthew N.

I have made a php comment script. It works fine, except that you cannot veiw the comments, you don't need to sign in or anything, but it wont show the comments. you can veiw the source at [URL="http://www.jsclsftwre.22web.net/testing/index.php"]Veiw it here[/URL]

Member Avatar for chrishea
0
157
Member Avatar for smakdown

Hi everyone ,, I'm writing a PHP script to upload the whole folder from the user's local machine , the problem i have mange to do something but i notice in fact that php only upload the entire local folder from the web server not the user's machine . After …

Member Avatar for chrishea
0
124
Member Avatar for ErlendHL

Hi! I have been making a chat program. In PHP I control user inputs with htmlentities so they can't write html. But this also ruins the precious æøåöüÿëäñ etc.. characters! Would it be safe to only remove the < and >s? Or is there another way to avoid this?

Member Avatar for ErlendHL
0
101
Member Avatar for sahromo

what php code should i add if i need the custno[id no] to be included when i submit the log-in button? this code runs, but i really need the code for the custno to be included. start.php [CODE]<?php session_start(); session_destroy(); ?> <html > <head> <title>Login Form </title> <meta http-equiv="Content-Type" content="text/html; …

Member Avatar for dos_killer
0
235
Member Avatar for salam120

hello everyone... I'm trying to make some page by php but know I need some help:?: Do you know how can I make a box like textbox that contains images which I can edit, merg or delete them. (for instance a box that have three images and when I point …

Member Avatar for dos_killer
0
70
Member Avatar for mapee

Hi i am new php programmer, and i need your help please i have a page that allows for public visitors to upload multi images but some hackers using my page to upload php files by using image forms to hack my website. i tried to add some code in …

Member Avatar for mapee
0
372
Member Avatar for iluvu9888

Hi, I am trying to create a drop down list in php and I want the data to come from a table that I have created in phpmyadmin. The code that I have created allows me to select values from the drop down list and insert the rest of the …

0
45
Member Avatar for anniejolly
Member Avatar for R0bb0b
0
57
Member Avatar for sahromo

how would i pass a auto incremented primary key to a foreign key? example i have this room table that has a Room_No as a primary key that is auto_increment and i need it to pass to another table named AF and Room_No as its foreign key.. what code should …

Member Avatar for hielo
0
85
Member Avatar for ithinkimdumb

is there any function in PHP that can access my MsSQL Server...??? Note : All my Script was in Store Procedure

Member Avatar for RUBein_Fair
0
123
Member Avatar for stanley87

i have to insert a lot of data where it might be also use as foreign key at different table.is that possible to add 1 time together the value to all table?can give any example?thx in advance!:)

Member Avatar for sahromo
0
161
Member Avatar for daviddoria

I want to have files like this: File1.xml [code] <titletag> Title1 goes here </titletag> <contenttag> Content1 goes here </contenttag> [/code] and then use this data with something like: [code] <html> <body> ... Place <contents of titletag from File1.xml> here </html> [/code] Is this a reasonable request? How would I do …

Member Avatar for Kraai
0
119

The End.