39,402 Topics
![]() | |
Hello,I'm doing a sample quiz for students.I have 25 questions displaying 1 question per page with a next button.I also manage to count its correct answers.And if all the questions have already shown from database,it prints that there are no more questions left.But I want to keep track of the … ![]() | |
I'm stumped as to why this might be happening. A website I had completed for a client over a year ago, was working fine until a couple of days ago when the web host went and moved the site onto a new server without warning any of their customers (myself … | |
Ok So Im having a problem. Im trying to get a script to do this: Take info from Database: Players [LIST] [*]playerName [*]onlinetime [/LIST] Match playerName with playerName And put that info into Database: times With the Colums: [LIST] [*]playerName [*]1-24 [*]time1-24 [*]1-23 [*]time1-23 [*]etc etc for all dates. [/LIST] … ![]() | |
Hi all, My apologies if this has been asked before, but I am unable to find any help with this problem I am experiencing. I have currently developed a mysql database with a php form that allow me to fill out all fields and check boxes which works fine and … | |
I seem to be having a major problem with FFMPEG on my local test server everything seems to work fine the videos encode and everything. I moved all of this onto my new Windows 2008 Web Server, which uses IIS 7 and everything works I get no errors or anything … | |
I am having a problem defining these constants on my localhost: [CODE] define ('BASE_URI','C:\wamp\www\shop\'); define ('BASE_URL','http://localhost/shop/htdocs/'); define ('MYSQL','BASE_URI/.mysql.inc.php'); [/CODE] How exactly do I define BASE_URL, and BASE_URL using wamp which is located i the C directory. This gives me an 500 Internal Server Error. Regards, Klemme | |
hi...... i created my login page...everything is working fine. i want to know whether we can get the login date for each users when they login.. and when they login the date shud be posted in the database?? how to implement this... | |
All - Sure could use a fresh set of eyes on the following code .... as, I can not find the following error: Parse error: syntax error, unexpected $end in /homepages/xx/xxxxxx/htdocs/mysite/folder/index.php on line 6566 Have read that a possible cause for the error message is a missing curly bracket '{' … | |
I have a table where there is about 1 milliard record. when my website is on high traffic, there is more than 100 requests/second on this table. so request respond time is between 2-4 seconds, which leave a bad impression. is there any suggestion how to minimize the request respond … | |
Hello to everyone I am new to the site and have a question. I have a page that has a form to input into MySQL using PHP. What I am trying to do is have two searches that pulls out the information from different tables within the database, and put … | |
I began to develop a simple coupon site. my db design Contains 4 tables: users deals category city when user purchasers a coupon i connect to getway payment service. in my accont at the getway service i can see all the transaction from my site. does it's meen that i … | |
Someone can tell me what's wrong with this codes? It doesn't appear the box with errors: envia.php [CODE]<!--BEGIN box correcao--> <style type="text/css"> /* Box Style */ .success, .warning, .errormsgbox, .validation { border: 1px solid; margin: 0 auto; padding:10px 5px 10px 50px; background-repeat: no-repeat; background-position: 10px center; font-weight:bold; width:450px; } .success … | |
It's the age-old question of checkboxes. I've got this code: [CODE] <?php require "connect_to_mysql.php"; // Start the SQL string $sql = "SELECT * FROM post_sec_all_stats WHERE 1=1"; if (isset($_POST ['dura_sch'])) { $sql .= " AND "; $sql .= "DURA_SCH = '" .$_POST ['dura_sch']. "'"; } if (isset($_POST['ctrl_sch'])) { $sql .= … | |
Dear All, I have a problem where I can query more then 4000 lines the problem I already drill down is here. The problem is during the generation of the lines some how it takes some time then I get a not found page error. What can I do to … | |
I have a php/mysql/html table of results The query is [CODE]$result = mysql_query(' Select var1, sum(var2) round(Avg(var3),0) round(Min(Price),2), round(Max(Price),2), round(Avg(Price),2) as AvgPrice, Country, From table Where country = "Australia" Group By var1 having var3 > 5 Order By var3 DESC') or die("SELECT Error: ".mysql_error()); $num_rows = mysql_num_rows($result); print "<table width=800 … ![]() | |
Hey everyone, So this is sort of complicated but I will try to make things as clear as possible. I have a registration page that processes all of the information and sends an automated email to the user with their username and password and a link to activate the account … | |
[ICODE]I have a script that checks usernames and passwords and it works fine when i put in a username and password ,but when the form is empty and i submit it ,it still login the person. I made some changes to the script,its still not working.Any help. [/ICODE] [CODE]<? session_start(); … ![]() | |
Hey How do I make Apache Tomcat allow to interpret PHP as well? Allowing something like: [code] protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); PrintWriter out = response.getWriter(); out.println("<html><head><meta http-equiv='pragma' content='no-cache' /><title>Hello</title></head><body>"); out.println("<?php echo 'Hello'; ?>"); out.println("</body></html>"); out.flush(); out.close(); } [/code] Thanks! | |
How can I add a table around my code. I am new to php and I am woring on an assignment for Uni. When I try to add the table tags the layout gets messed up. Can some please help? [CODE]<form action="gradebook3.php" method="post"> <H4>Exam and Coursework Marks and Comments for … ![]() | |
i having problem doing a echo with <img> , the image do not seems to able to display although there is not error message. please advice... thanks for your help. [CODE] $pic = $row["img"]; echo "$count.) $title, $price" ; echo '<img src="site_images/$pic" border=0>'; [/CODE] | |
I have main page as contain the frameset In that there are three frame 1)html page as 1.html 2)which shows the chart data as chartdata.php 3)the combox box with submit button click.php I want the combox box selected value in chartdata.php Can anyone say how can i achieve the same. … | |
good night friends. I've made a voting system for the purposes of my campus. I want to implement RSA encryption and description to data security. I want to ask how to make input into SQL diinsert encrypted when one candidate is clicked? anyone help me please.. this the pict the … | |
Hi everyone and thanks in advance for and help you can give me. I am working on my "forgot password page" forgot.php. I am trying to query the database and and get a return of 0 or 1 then echo the appropriate response. this is the code I am using … | |
Hopefully I don't have to put all my code in. I have 3 separate pages of php set up. I want a user to be able to go to my website and search a bunch of criteria to find a good school for himself. There are checkboxes, radio buttons, text … | |
hello friends i wanted to use auto populate text box based on another select box using jquery ajax and wanted to pass values of both the check boxes to a php form and insert in db my code id : [B]index.php[/B] [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html … | |
Hi all, i've a problem for getting the other attribute from active directory. What i've to do if i want to get the 'email' and 'employee ID'? Actually i've done for getting the username and password. But don't know how to get the other. Please help me... | |
Hi all, I am web developer in an organization. I started my career as a PHP developer, I was working on Wordpress. Now I want to learn new things in PHP other than wordpress. Please suggest me what should I do for better career opportunities. Thanks, Trivikram. | |
Hello everyone, I have a problem with this code php: [CODE]<?php $sql = mysql_query("select * from news left join categories on news.category_id = categories.id group by category order by categories.id "); while($row=mysql_fetch_array($sql)){ ?>[/CODE] html: [CODE]<div class="title" align="center"> <?=$row['category']?> </div> <div class="headlines"> <span style="float:left;"><?=$row['subject']?></span> <span style="float:right;"> <?=$row['date']?> </span> </div>[/CODE] the problem … | |
I began doing some research on Paypal API code yesterday and have been lookin through a lot of the examples on the web. A lot of the examples i'm seeing seem to be heavily OOP. Ive never really tried any object oriented type of code I mainly do procedural. Can … | |
Hi, I am developing an website in wampserver which was working fine but when I installed Oracle 9i ,Oracle working but wamp server sopped .I edited the httpd.conf as follows : chaged port no "Listen 80" to "#Listen 12.34.56.78:8080 Listen 8080" and restarted wamp server but didn't work then I … | |
I am developing a [mobile] website that needs to allow visitors to send both an [B]image[/B] (which is on my server) and a custom [B]message[/B] to a friend's email using a PHP form. I have to keep it mobile-compatible, so I can't use java, etc. Here is my form so … | |
Hello Friends How can i update the textbox values with new values when i have already values in textbox in php | |
bit of a coding dilemma here.. If i have a php page (list.php) that works on its own when browsed to or put in Iframe, why would it not work correctly when the contents are either <?php include("list.php") or the code put directly into the index.php page The iframe version … | |
Hi everybody , My project having 7 modules.personal,Mypics(album),layer.... i have some problem in upload photo in layer.i need inside the layer,layername and layerphoto.the following code for display name.name is ok. editlayer.php <div class="field"> <span class="field-label">Name:</span> <input id="layer_name", src=" " type="text" name="layer[name]" value="<?php echo $layer["name"] ?>"> <span id="layer_name_error" class="field-error"><?php if (isset($error["name"])) … | |
Hi i'm unable to do multiple update (using Ms Acess because of restrictions). I try to do through ADO method (also because of restriction , x ODBC). The operation will break when reaching the script to update on the second page. Can you guys point where did i went wrong? … | |
Hi, I am reading from an XML file where the structure of the file is like this: [CODE] <item> <title>This is a title</title> <description>Description.</description> <link>Link</link> <media:content width="60" height="50" url="http://www.someurl.com"/> <media:content width="150" height="80" url="http://www.someurl.com"/> </item> <item> <title>This is a title</title> <description>Description.</description> <link>Link</link> <media:content width="60" height="50" url="http://www.someurl.com"/> </item> [/CODE] I am attempting … | |
hello guys, please give me any idea about solving this problem. I have two tables categories: id .... category .... parent ________________________________ 1 .... general .... 0 2 .... news .... 0 news: id .... headline .... category_id ________________________________ 1 .... headline1 .... 1 2 .... headline2 .... 2 3 … ![]() | |
Sometimes ago with the help of some programmers I wrote a piece of code to parse result from ebay's website, title, item number, bids, price sold and date. This is the regex that used to work to get the title of an auction that ended with a sale. [CODE]$match_count1 = … | |
This is a code snippet for the page i am getting the variable $title from [CODE]$title = $this->row->title; // at this point in the script if i echo $title the correct value is stored. ?> <form name="passvalue" action="myscript.php" method="POST"> <input type="hidden" name="title" value="<?php echo $title;?>"> </form>[/CODE] This is a code … | |
Hi, i need a jewellery management system web application in php. can anyone help me please reply in this thread.. Eagerly waiting for your replies.. | |
I m using substr in while loop. Using substr I am getting strike in Text; If I omit substr then I get perfect result. I have to substr function; Is there any another alternate function. [CODE] if($countrecords>=0) { while($row1=mysql_fetch_array($result1)) { ?> <div style="border-top:1px dashed #cccccc; padding-top:10px;"> <div style="font:bold 11px verdana; … | |
Hello y'all, I am a part time php programmer and a photographer. Due to the fact that i lost some many of my photography works to virus that got onto my pc, i have decided to develop a website whereby i can save all my works. I need some one … | |
i got 3 users to be registered in the registration form through radio button admin,manager and employee... after registration of a admin the other 2 raadio buttons shud only enable in the registration form... admin shud be disable............ how to implement this in php........... ![]() | |
i have search page to search by title, author, isbn from the dropdown list. But when they display the result for my search, it unable to retrieve my other data from my table (product4) like the price. it shows this error below Notice: Undefined variable: price in D:\xampp\htdocs\book\search.php on line … | |
Hello yall, I'm starting to work with Paypal (just signed up for x.com and sandbox). I was looking at the DoDirectPayment API for credit card transactions. One of the required fields kinda took me by surprise. Here it is. [CODE] IPADDRESS (Required) IP address of the buyer's browser. Note: PayPal … | |
[B]Hello guys i have a problem with PHP code and i dont know what is wrong i want to get the content of a website then search for specific tags then take the value of tags , lets say i want to search for example for these tags [/B] <div … | |
i have the following form which submits to itself. the form is used for editing a row in a database table. [CODE] <?php session_start(); // start a session require_once '../includes/adminheader.php'; require_once '../includes/mysql_connect.php'; require_once '../includes/functions.php'; require_once '../includes/brand_functions.php'; $brandid = (int)$_GET['brandid']; $brandname = getBrandName( $brandid ); $page_title = 'Auto-Zim Administration - Edit … | |
Hello, I am trying to create a photography gallery and at the minute I have it so it uses session variables to pull the cat titles and where a cat title is present it loops through the folder which is passed from a mysql lookup. [code=php]$dir = "photography/".$gallery; $files1 = … | |
I am making an application which queries the database and posts on my facebook account wall. just like twitterfeed/social.But I am not using a blog.I want to have two parts in the application - 1. cron mode : finds the latest rows which come into the database and pushes them … | |
Our online reservation system can be used with magnetic card readers and barcode scanners provided such peripherals are connected via USB and allow keyboard emulation. The cardreader (barcodescanner) provides the cardswipe (scan) as one keystroke. Our system will the look up the corresponding number in the database and return the … |
The End.