39,323 Topics
| |
How to retrive the different value from two different table using join query | |
I m working on advertise website for that i need to select random values from the database so please help me Thanx in advance | |
I want to select a single column from a table but cannot use "mysql_result" query. is there any other way to output the data of that specific column? Thanks in advance. | |
I'm sorry, i'm a newbie in php. And i have a lot of problems when i develop. So this is another problem i met. form.php: [CODE]<form method="post" action="process.php"> <h1>BESOIN </h1> <br><br> <label>Sujet:</label><input type="text" name="sujet" /> <label>Date: </label><input type="text" name="bdate" class="datepicker" id="datepicker1"> <label>Nature:</label> <input type="radio" name="nature" id="nature" value="exprime" >Exprime</input> <input type="radio" … | |
I have the last update time but i would like to compare it to the current time and subtract it and get an answer in seconds. Basically being able to see how long ago it was refreshed. [code=php] $refresh = filemtime("stats.php"); $update = date("m/j/y h:i", $refresh); echo "Last refreshed: ".$update. … | |
I have been studying PHP/MySQL on and off again for the past few years and I decided the only way I was going to learn it was to create my own web application. We're going on a road trip in a few days and I got the idea to create … | |
Hi I'm trying to integrate a google checkout button with a basic php variable - and am having trouble with formatting. Here is the code: [code=php] echo "<h2>" . $row['name'] ."</h2>"; echo '<form action="xxx" id="BB_BuyButtonForm" method="post" name="BB_BuyButtonForm" target="_top"> <input name="item_name_1" type="hidden" value="Item"/> <input name="item_description_1" type="hidden" value="Watch Repair Service"/> <input name="item_quantity_1" … | |
Tryin to fun this postback for gWallet and it keeps giving me a sig not ok. Doesnt make any sense to me, the SECRET is perfectly fine. Its asking for everything it should. The sig is verified against the hash which is sent back from gWallet after offer completion on … | |
So i have a system, and i was creating a page to input player stats. However there are 5 rows that have be inserted per game from a single form. I have the code for the form and the insert code. I was just wondering if someone could help me … | |
Hi every body I am anew web developer and i have a problem in my project i want to retrieve data from database by the checked checkboxes by example of my project : here is the print screen of the menu form : [url]http://i46.tinypic.com/2wfmx6w.jpg[/url] i want to know when the … | |
I am trying to use the session start function but everytime I try to use it, it gives 2 errors: [QUOTE] Cannot send session cookie - headers already sent by (output started at /var/www/form/send.php:11) in /var/www/form/send.php on line 12[/QUOTE] [QUOTE]Cannot send session cache limiter - headers already sent (output started … | |
Hey guys, I hope someone can help me with the idea behind this. I'm setting up a website in which members can have their own personal profile which displays all their information. I have 8 items that I want users to be able to make private or public. So in … | |
hello.. i want to do custom cursor in particular place in my webpage. i have number of images when mouseover on images then cursor image change as a custom cursor. how to do ? | |
Me again (Huge Project...) This is the code for my image upload, but it is not working... I also want to set some parameters such as file size and to make sure that only photos are uploaded. The tutorials on the web is quite confusing...help please. Thank you [CODE]if(isset($_POST['submitted'])) { … | |
My membership script works fine, except I can't login, because this check.php script doesn't work. Login form action is check.php. Once I login with username and password, check.php gives me an error message "Please enter ALL of the information". The only information on login form is username and password. The … | |
Some help me i want to intigreat Fingkey hampster to php application for visitor varification how to developed this.... please someone give me fingerprint PHP SDKs.. advance thaqnks ... Vilas Dhobale PHP developer | |
hi this is a code for [B]export to excel[/B]. I want to color the headers light blue and all result of query like one white then one grey and repeat. [CODE=php]session_start(); $a= $_GET["id"]; function cleanData(&$str) { $str = preg_replace("/\t/", "\\t", $str); $str = preg_replace("/\r?\n/", "\\n", $str); } # file name … | |
Hey guys, I'm trying to figure out what the best way to store a certain set of data is. The data pretty much consists of a series two-dimensional associative arrays, one element representing a color (in RGB or hexadecimal, doesnt matter), and the other element representing an integer: frequency. (ex. … | |
Hi guys, I have a table that outputs all my contacts via a while loop from my database. my syntax is like this: [CODE]SELECT * FROM contacts WHERE id = $_SESSION['user_id'] ORDER BY name ASC LIMIT 5[/CODE] that pulls out all my data and only gives me 5 results. Now … | |
hello to all, i want to connect to mssql which is using windows authentication Can anybody help me with that... i know the server name | |
Hi, can you help me.. how to save value multiple dropdown [CODE] <select name="s1" id="s1" multiple="multiple"> <?php $sql=mysql_query("select * from setting_mp ORDER BY id_tingkat ASC"); while ($data=mysql_fetch_array($sql)){ echo "<option value=$data[id_mp]> $data[pelajaran]</option>"; } ?></select>[/CODE] I wish if there are three values, then everything will go in the field i want enter … | |
High guyz am tryin to get hint from my database but i am managing to do so,though if i list the array am able. please help if any one has an idea here is the html code [CODE] <html> <head> <script type="text/javascript"> function showHint(str) { if (str.length==0) { document.getElementById("txtHint").innerHTML=""; return; … | |
ok i have got values from a for loop, and will like to insert them into a database. [CODE] $brush_price = 5; for ( $counter = 10; $counter <= 100; $counter += 10) { $values = $brush_price * $counter; } $query = mysql_query("insert into brushprice(brushprice) values($values)") or die(mysql_error()); [/CODE] But … | |
Hello all I have this query [CODE]$query_Totals_i = "SELECT (kinisis_1c + kinisis_1e + ((kinisis_1c / kinisis_1b) * kinisis_1a)) * (1 - fpa) * 1.005 AS kinisis_1, (100c+ 100e+ ((100c/ 100b) * 100a)) * (1 - fpa) * 1.005 AS `100ara`, (super_1c + super_1e + ((super_1c / super_1b) * super_1a)) * … | |
I've been going round and round trying to sort this. I have this in one of my programs: [CODE]drop table if exists temp2; rename table something to temp2; rename table temp to something; create table temp like something[/CODE] and it's not working, though it will work when I manually paste … | |
Hello I'm new also with the php programming language i tried to put this code. I wanted to happen is when it submit it will email to me the name of the user. <?php $alert = $user->get('username'); if (isset($_POST['continue'])){ mail("waren@unicondouglas.com","User Login",$alert); } ?> <form name="frm" action="http://enpekei.com/products/index.php?option=com_igallery&view=category&id=0&Itemid=57" method="post"> Good Day! <?php … | |
Hi Guys, I'm making a login form. I want to add validation to it but don't know how to do it. I have just added the echo statement as an error message. I want the message to appear on the index page.Can anyone help? My php login form process.php [CODE]<?php … | |
Hi All, At the minute I have a script, that ill post below, that simple echos out some information via ajax. My question is, how do i get the update without using meta refresh and without clicking anything at all? [code] <html> <head> <script type="text/javascript"> function showHint(str) { if (window.XMLHttpRequest) … | |
I know, Here is something wrong in Image Output Section. Please, Help me to correctly show the images to 3rd no. column. [CODE]<html> <head> </head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <body> <?php include ('cont.php'); $result = mysql_query("SELECT * FROM productinput") or die(mysql_error()); echo "<center>"; echo"<table width='500' border='1' cellspacing='0' cellpadding='0'>"; echo" <tr>"; … | |
I call the getTitle function but it only returns the last DB value. I presume that is because there are many rows in the DB with the same 'code' However when I call the function I want to get all the values for TITLE where code is something in the … |
The End.