39,402 Topics
![]() | |
My professor gave us a sem-long project, before he introduce us php.. so here it goes create a dynamic website with the following situation 1. there will be an existing database, the database contains the following a. student name b. student id no. c. address d. other personal info 2. … | |
Hi Frendz, How to find the javascript is enabled in the browser or not? | |
Okay, here's the scenario. The same user accesses the same form a second time in order to place a new order. Both the new order and the old order are stored in a MYSQL table (called "orders"). My thought is that, when the new order is placed, I need to … | |
Hi, How to avoid the data insertion in mysql tables by refreshing the page using php. I am not redirecting my page. I am using $_SERVER['PHP_SELF'] in form action. Please help me out. its very urgent | |
Hi... I want to find out whether a file is existing or not The file is stored on another machine in the same network . I tried the following code.But always showing "The file is not existing". [CODE] <?php $filename = 'file://192.168.0.15/E:/PDF/p.pdf'; if (file_exists($filename)) { echo "The file $filename exists"; … | |
I have this bit which I have actually only tried in Google Chrome, but it works finte there: Im using ajax to get data from the Db, when popuating one select list based on whats selected from another: But in Internet Explorer 9, it doesnt work: [CODE] // JavaScript Document … | |
the code in php: name it as postback.php [CODE=PHP] <?php $q=$_GET['q']; $query_type=$_GET['query_type']; $words=explode(' ',$q); $con = mysql_connect('localhost', 'root', '')or die('Could not connect: ' . mysql_error()); mysql_select_db("clc_books", $con)or die('cannot connect'); $q = preg_replace('/\s\s+/', ' ', $q); // remove extra space echo "<table border='1'>"; echo" <tr> <th>book id</th> <th>book number</th> <th>book name</th> … | |
I am using Joomla with the Ambra Subscriptions module to accept payments. When a new customer signs up and makes a payment, their account is not being automatically activated. I find myself having to activate every account manually after a new customer complains that they can't log in. Under 'Site … | |
Hi, I want to make my website in two language. I need to make library for both of language. And I get template of those library with extension .mo. And those library are included in file .php. I want to make a new library but I can't open and create … | |
Hi There, I have an XML file and I list them by check boxes, categorized by their parent (branch). After selection of the check box, I take them and give the values `$branch`(only one at a time) and `$roles`(can be many eg. SBP|BNA) to web services. And run this web … | |
- I have the problem where my update is not not working.Anybody can help me... FORM <code> <?php session_start(); include ("../entity/login_class.php"); include ("../entity/admin_class.php"); include ("../entity/customer_class.php"); $Customers = new Customer(); $id = $Customers-> getCargoID(); $Customers ->getCargo($_GET['id']); $id = $Customers->getCargoID(); $cargoCode = $Customers->getCargoCode(); $cargoDesc = $Customers->getCargoDesc(); ?> <form method="post" name="updateCustomer" id="updateCustomer" action="../controller/customer_control.php" … | |
I want to know a site from which i can get free domain , except "co.cc" . ????? | |
Hi , i am using mssql. I had a field with datatype [B]datetime[/B]. [CODE]My php coding: $requested=date("d/m/y : H:i:s", time()); i am using this query insert into tbl values('$requested')[/CODE] while inserting into my mssql table, i am facing the following error Warning: mssql_query() [function.mssql-query]: message: Syntax error converting datetime from … | |
Hello, please help me,i want a search on my website,user type any key word then select the city from the dropdown list,now the search is restricted to the selected city, now kindly guide me how can i get product name and price in the select city through rss . note … | |
Hi I am trying to connect my server through PHP script as below. But i am unable to reach my server and getting error. If i connect my server through ftp software with [B]FTPES[/B] protocol my server is getting connect I am getting an Error as [B]"Warning: ftp_connect() [function.ftp-connect]: php_network_getaddresses: … | |
Hey first of all THX ;) @ add product.php wen i browse image and go save i have this error : [B]Fatal error: Call to undefined function imagecreatetruecolor() in C:\wamp\www\plaincart\admin\library\functions.php on line 228[/B] [CODE]<?php /* Check if a session user id exist or not. If not set redirect to login … | |
Hi In my site I have a search function but have hit on a problem that I can only partly solve. A user makes a search - one or more results are returned. A user can click on an entry and view additional resources on a new page (word2.php) (that's … | |
![]() | I am fairly new at web developement. I created a web site for the dealership in which the dealer can list used motorcycles for sale along with a picture of the motorcycle. Currently, the client emails me the year and model information, the asking price, and a jpg picture file … ![]() |
I m getting this error while using http api.. i cant use post method..... what changes should i made to rectify this error..!! thanks.! | |
I'm using Microsoft tags to get the cell phones unique "did' number loaded into a htm form field. The customer is then asked to enter thier email address on the form. The form is then submitted to be added to our customer mysql database. If it's new it is added … | |
Hi, I tried a auto-comment bot for wordpress(in my website) and coded it. My plan is that I write names in names.txt file and sample comments in comments.txt file(a name or comment per line) and it will add a random comment with a random name into Wordpress's database in wp_comments … | |
Hi, I am having a table A...and i am copying(inserting) the content of the table A to the empty table B.I am doing changes in the values in table A ....but my table B always should remain constantly ...the changes done in table A should be reflected to the table … | |
What is the wrong code here? [CODE]mysql_select_db($database, $check); $id=$_GET['post_id']; $query_getID = "SELECT * FROM news WHERE post_id='$id' LIMIT 1"; $getID = mysql_query($query_getID, $check) or die(mysql_error()); $row = mysql_fetch_assoc($getID); $totalRows_getID = mysql_num_rows($getID);[/CODE] [CODE] <b class='title'><a href="newsevents.php?post_id=<?php echo $_GET['post_id']; ?>"> [/CODE] | |
From last few months I'm trying to create my own WEBMAIL system from scratch. I'm using IMAP, POP3 with php/mysql coding but failed to create. Somebody Help me to create [COLOR="Red"]WEBMAIL system [/COLOR]from scratch. | |
I am building a site and very often change my mind on something and changing all over again. So I am wondering if things such as a google gadget, does it have to be actually written inside the html or can I just insert it through php, so I can … | |
Hello i am new to php, i have been practising it for a while now can any one give me a way to code a simple online test in php5, i have created forms i Dreamweaver using radiobtns for answers, now i want the codes to handle it as follows; … | |
Okay, so i get this error on line 19 in this pagination script. The error goes like this: Notice: Undefined index: page in C:\wamp\www\pagination.php on line 19 This is wrong: $page = $_GET['page']; But i don't realy understand what is wrong, because the targetpage is set to "pagination.php". Maybe it's … | |
Hi.. Related Posts for wordpress thesis blog.. I need related posts by categories. But not in ul and li , i need full post show in related post. Just like home page posts.. I think you understand. thanks waiting | |
Hi! Im pretty new to this whole thing with PHP and have looked at some examples to learn it. I currently made a site that for now, runs on WAMP localy. The thing is, i was wondering if this would be a good code to use on the upload.php site. … | |
Hello, I am a novice for SE. 1) SE is built on Zend. Zend documentation talks about an application.ini file. But I don't find this file in the SE source code which i have installed. Where is the file ? 2) Can anyone help me understand which module/controller/action is invoked … | |
I have a database database call 'member'. There are 3 fields id , name , tel , address id name tel address 1 Mary Hazia 271-23232 abc street 2 Mary Larkson 12376896 cde street 3 Luna Ualix 73635127 def street 4 Ming Elison 37383298 efg street 5 Cathy Jilop 34r46328 … | |
hi guys.. how are you all?? ok, i need you help to make this happen... i want to create a system that allow people to upload big files and you all know that php time limit is 5 minutes and size limit is 5 mb max.. in case we increased … | |
I have seen several posts but I haven't really got around it. I am finding out PHP is a lot more useful than I thought so I'm trying to use it as much as possible for its flexibility to modify content from a single file. Can I include the contents … | |
How am i supposed to insert a word into a blank row? [CODE]$sql = "INSERT INTO ue-userfile WHERE id='$imageid' AND userid='$userid' (`albumname`) VALUES('$newalbum')";[/CODE] ? [CODE]$sql = " INSERT INTO `ue-userfile` ( ``, ``, ``, ``, ``, ``,``,`albumname` ) VALUES ('{$albumname}')";[/CODE] ? God damn annoying to not find any solution on … | |
Hi, I was wondering whether it is possible to use a parent class' properties without calling its constructor. In the following example: [CODE]<?php class Shop { public $location; public function __construct($location = ''){ if(!empty($location)){ $this->location = $location; } else { $this->location = 'a place far far away'; } $this->location .= … | |
Ok, so what im trying to make is an authentication system that gives the user the pin. I have all currently generated pins setup in a mysql database that looks like this.. [img]http://img847.imageshack.us/img847/3621/databaset.png[/img] So now i need to display them, and then after its displayed on the page, i want … | |
I need to know if there is a way a folder upload can be made through php in an email. | |
This is my normal file upload code. [B] HTML[/B] [CODE]<form action="" method="post" enctype="multipart/form-data" name="form1" id="form1"> <input name="theFile" type="file" /> <input name="Submit" type="submit" value="Upload"> </form>[/CODE] [B]PHP Variables to receive file[/B] [CODE] $fileName = $_FILES['theFile']['name']; $fileTempName = $_FILES['theFile']['tmp_name']; [/CODE] Now i would like to use remote upload. So i created a form … | |
Hi, I am having the table of the following details. [B]rollno subject standard[/B] reg01 maths III reg01 physics III reg01 english III This reg01 student has registered this courses. He can make changes this registered courses. How can i find the "updation"(or differences) of my table as the previous using … | |
Hello every body; i hope you all are fine, i need help on my project where i got stuck; i have a page where user browse and then upload the swf file, i want to extract all the existing images from that swf file when user click on upload button..... … | |
i have a php file where user browse and then upload swf file, now in that swf file i have 3 variables i want to first get those variables and then update those variables with new value...... i don't have any idea about flash. Any suggestions or solutions please Much … | |
[CODE]<form method="post" action="check.php" onsubmit="return validate()"> <table width="200" border="0"> <tr> <td>Username</td> <td><input type="text" name="uname" id="u"/></td> </tr> <tr> <td>Password</td> <td><input type="password" name="paswd" id="p"/></td> </tr> <tr> <tr> <td>Select Location</td> <td><a href="http://maps.google.co.in/">Click Here</a></td> </tr> <tr> <td><input type="submit" value="Submit" /></td> </tr> </table> </form>[/CODE] Hello friends, how can i implement this form using joomla mvc architecture?? … | |
Hey I have a slight problem here, I got my php login script, But it doesn't do what I want it, anyways when I enter details into the login box, if it is invalid I want it to refresh the page and say invalid login, but all it does, is … | |
Hello there, I'm trying to create a rewrite condition for a set of rewrite rules. Currently this is what I have: HTML and CSS Syntax (Toggle Plain Text) [CODE]RewriteCond %{HTTP_HOST} ^/?forum [NC] RewriteRule ^([\w]+)/([\w]+)/?$ index.php?p=$1&s=$2 [NC,L,C] RewriteRule ^([\w]+)/?$ index.php?p=$1 [NC,L][/CODE] What I want is to have the following uri, [url]http://www.mywebsite.com/page1/page2[/url], … | |
Hi, I have made a script to search my database. But when I execute it, it shows only one result. I even checked the database but there were many entries like this. here's the code... [CODE]<?php // Made by Shahbaz Singh July 2011. All Rights Reserved. Webdhaba.in $q = $_GET["q"]; … | |
Hi I would be greatfull is somebody could help me. Ok vut a long story short I am trying to create a website which has the facility of a database driven banner system, on either left and right hand side of any page. the purpose of this is so that … | |
Hello all, I have a problem. I need to make a php application with manual licensing not using any software for it but I didn't find anywhere a tutorial or a book about this. I have only found some tutorial about different types of licensing but could not find any … | |
How to check browsers javascript and cookies are enabled or not? And How to redirect on error page for each condition separately ? | |
[CODE]<?php $login = $_POST['login']; $nickname = $_POST['nickname']; $senha = $_POST['senha']; $email = $_POST['email']; $conexao = mysql_pconnect("localhost","rodrigue_incub","xxx24df") or die (mysql_error()); $banco = mysql_select_db("rodrigue_incubadora"); //Utilizando o mysql_real_escape_string voce se protege o seu codigo contra SQL Injection. $login = mysql_real_escape_string($login); $nickname = mysql_real_escape_string($nickname); $senha = mysql_real_escape_string($senha); $email = mysql_real_escape_string($email); $consulta = mysql_query("SELECT * … |
The End.