38,022 Topics
| |
hello this my code : <?php $con=mysql_connect("localhost","root",""); if(!$con) { die('can not connect'.mysql_error()); } mysql_select_db("test", $con ); $others="others"; $sql="SELECT * FROM $others"; $result=mysql_query($sql); $num = mysql_num_rows($result); echo"<thead> <tr> <th>#</th> <th> id </th> <th>topic</th></thead>"; echo"<tbody>"; $i=0; echo"<table border='1' width='100%' id='table1'>"; echo"<thead> <tr> <th>#</th> <th> id </th> <th>topic</th></thead>"; echo"<tbody>"; $i=0; while( $i < … | |
Hello guys... Iam developing a stock maintenance system for a hotel (PHP-MySQL) in which the client will be updating the consumption everyday. Suppose the items are like Pepsi Buns Sauce Then everyday consumption he needs to keep track. He will login and enter the consumption details for 23rd March then … | |
Dear team, I need to get the information for a particular domain name using the php and some linux commands.So, i have tried a small program in php in Lamp Environment. When the user gives,www.google.com.My program uses the below commands and functions ping,dig,host,get_host_names etc.To retrive the informations. But i need … | |
<?php ob_start(); session_start( ); include 'authenticate.php'; ?> aurheticate.php---------> <?php mysql_connect("localhost", "root", "") or die (mysql_error()); mysql_select_db("pms") or die (mysql_error()); if (!isset( $_SESSION['user_id'])) { if(!isset($_POST['txtuser_name'])) header('location:login(Admin).php'); $value=mysql_real_escape_string($_POST['user_value']); $user_name = $_POST['txtuser_name']; $pass = $_POST['txtpassword']; //user isentification if($value==1) { $query="select admin_name , admin_id from admin where admin_name='$user_name' AND admin_password='$pass'"; $sql = mysql_query ($query); … | |
hey all i have a problem here... i recently download xampp for windows, but when i go to phpmyadmin i got some error message : error #2002 The server is not responding (or the local MySQL server’s socket is not correctly configured). in addition i not using mysql service from … | |
okay guys....currently i'm using session for my web application, the problem is evertime i click the browser "back" button, the session expires and the variables are reseted. i want to retain this value until the user quits the browser. | |
Hey all , I am working on a website on which the user has to upload images, most of the images are of large size and that takes a lot of time for the image to be uploaded, is there a way by which i can reduce the time taken … | |
Hi all, In the section of the order confirmation mail: $get_cart_info, when I include this theres is somehow a syntax error, as I keep getting this error after mail has tried to send: Catchable fatal error: Object of class mysqli_result could not be converted to string in /home/www/ebm-fashion.dk/views/betaling_accepteret.php on line … | |
Hi, so ive various number of files and database tables including artist, album and tracks. On the webpage user's can choose and artist, an album then songs or the album to buy. However ive to write code so that when the user selects to buy the album all the tracks … | |
I am new to ajax jquey in programming.I had successfully inserted values which i posted via form field(id,name,age) in my xml file.But i am not printing the correct result in my HTML table.I had to insert the datas in xml file and also display the result in an HTML table. … | |
I need to convert this code to web.config file. Plz Help.. #Fix Rewrite Options -Multiviews RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d Rewriterule ^(.*)$ $1.php [L,QSA] | |
A client has an ecommerce site, which is hosted on Magento but could be exported if easier. We are now trying to set up a couple more new branded sites which have independant designs but use the same product and client base. I have done some Googling and found that … | |
I have an application that is writen in PHP and connects to a MS SQL Server 2008 Database. I'm using ADO recordsets. There are cases where specific IDs and years in the table returns nothing. How do I test for when there are no results? I searched and most of … | |
Hi, I have a PHP file that gets an XML files from a HTML form. The PHP files needs to generate a new HTML file containing a table with the the data retrived from the XML file. I was able to this this properly (using expat). However, before adding the … | |
I've seen other old old posts from 5 years ago asking why you would want to use cold fusion and no one came up with a proper answer as to why to use it over a more popular language platform like PHP or .Net. I'm against Cold Fusion, I've seen … | |
Notice: Undefined index: txt1 in C:\xampp\htdocs\php\conversion.php on line 76 Notice: Undefined index: select1 in C:\xampp\htdocs\php\conversion.php on line 77 Notice: Undefined index: select2 in C:\xampp\htdocs\php\conversion.php on line 78 Notice: Undefined index: convert in C:\xampp\htdocs\php\conversion.php on line 79 error! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title></title> … | |
Hello there, I'm having a problem on this one. I want to update my records, but when I click save, the specific fields/record is null. instead of updating/edit. These is my PHP code for admin_view.php (This is the form where you can choose a specific record/field that you are going … | |
I'm a total noob to using mod_rewrite and I'm reading tutorials and trying to wrap my head around it but it's not quite coming together. What I need to accomplish is this: take a bunch of urls structed this way: yoursite.com?index.php?id=# and rewriting it so it becomes yoursite.com/whatever depending upon … | |
can anyone take alook at my code, i dont get errors or anything but it doesnt save in my db??? please ... thanks! <?php if(isset($_POST[save])) { //student,grade,section,subject $ids=$_POST['id']; $grades=$_POST['fg']; $secs=$_POST['secs']; $subs=$_POST['subs']; $yirs=$g_year['acad_id']; debug($_POST); if(isset($_POST['save'])) { unset($_POST['save']); $i = count($_POST['id']); $x = 0; for($x=0; $x <$i;$x++){ foreach($_POST as $data =>$d){ echo … | |
here is a code for HTML form [code] **<html> <head> <title>Registration Form</title> </head> <body> <form action="registration.php" method="post"> <fieldset> Name: <input type="textbox" name="fname"/><br/><br/> Last Name: <input type="textbox" name="lname"/><br/><br/> Gender:<select><option value="text">Male</option><option value="text">Female</option></select><br><br> Address: <input type="textbox" name="address"/><br/><br/> Contact: <input type="textbox" name="contact"/><br/><br/> E-mail: <input type="textbox" name="e-mail"/><br/><br/> User_Name: <input type="textbox" name="user_name"/><br/><br/> Password: <input type="password" name="password"/><br/><br/> … | |
When user post a comment, i strip all the html tags in the comment before insert into my database because i do not want them to post external links(SPAM) in the comment. But i only want to strip external links, i want to display my own website URL as normal … | |
Hello, I'm having a problem using the jTable plugin. I'm fairly new to using jquery. Here is my problem: I have an database name reg and has fields (fname, lname.....avatar). What i want is to show the contents of the database using jTable. Now, I don't know how to display … | |
Hi, can anyone give me a idea on how, to create a AUTO GENERATED ID, example is. SCHOOLNAME001 something like this, how may i be able to create this kind? in which the 1 will autoincrement after every new students will be enrolled... | |
I have text being loaded onto the page from a MySQL database. When the text is clicked, using JavaScript the element is replaced with a textbox displaying the text. I want to be able to use a MySQL update query to change what is in the textbox and so it … | |
okay...seem to be experiencing some problem here....in my pc, the web application is running perfectly....but when i run it from my handheld, its showing error... this is my code <?php session_start(); //starting session $host="localhost"; // Host name $username=""; // Mysql username $password=""; // Mysql password $db_name="test"; // Database name $tbl_name="test3"; … | |
<html> <body> <form method="Post" action="commentsample.php"> <center><textarea name="comments" rows=2 cols=60></textarea></center> <center><input type="submit" name="submit" value="Cloud"></center> </form> <?php $con = mysql_connect("localhost","root"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("comentss", $con); if(isset($_POST['submit'])){ $comment=$_POST['comments']; $q="insert into table2 (comment) values ('$comment')"; mysql_query($q); } $q="select comment from table2"; $result=mysql_query($q); while($row=mysql_fetch_array($result)){ //this is what i … | |
When I try to call the Google Calendar in PHP it gives me Fatal error: Uncaught exception 'apiServiceException' with message 'Error calling POST https://www.googleapis.com/calendar/v3/calendars/primary/events?key=ABQIAAAAsxHZhPGSukLbZlUcR7gZFhTVSiE46oDPbAIEWnLSRISr9hykzRT26WAMhnP0hQe-Tk5dj5M8wQHwFQ: (401) Invalid Credentials I looked at my developper key and it is the same. Is it suppose to be the developper key or something else? | |
| I'm new to this forum but I do read posts as a non-member and I learn a lot from reading other posts from other member. I'm having problem understand how to write the code correctly. I can't seen to figure out the international shipping cost but for domestic it works. … |
Hi all, I am new to php and I have a problem that I am looking into it for 1 day and can't understand it please help. here is my html code : <html> <head> <title> Calculation Form </title> </head> <body> <form action=calculate.php method="POST"> value one: <input type="text" name"val1" size=10 … | |
Hi Guyz, Would like to thank you in advance for the help and support, The problem I am facing is I have a redirection script which opens the page within an iframe rather than displaying the whole page. [CODE]header("Location: http://www.domain.com/registration.php?par=$parcel&err=$error_msg&succ=$success_msg");[/CODE] I have a simple login form within an iframe when … |
The End.