39,323 Topics
| |
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 = … |
The End.