39,326 Topics
| |
Can anyone tell me if the following query can be done? [CODE]mysql_query("SELECT a, b, (a+b) AS c FROM table WHERE c=1");[/CODE] When I try this I get an unknown column error for c. In order to get the query to work I have had to do this [CODE]mysql_query("SELECT a, b, … | |
hi guys! how do I put div tags at the beginning of the $ _SESSION until </ a> [CODE] echo $_SESSION['username'].' | <a href="logout.php">Logout</a>'; [/CODE] | |
I guys! I need a couple of good book titles that can cover the work i need to do. I work in a call center and i need to do some modifications to the GUI, clients, operators and admin. Our platform works on asterix 1.6 with freepbx on top. we … | |
hi, i am looking at a way of integrating an email system where users can check their own email from within the system and email from it. basicaly within the cms they should have the ability to login to their pop3 email if possible. only problem is that the cms … | |
when i try to access this login page..an empty page open...please help with this coding [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Latest</title> </head> <body> <?php include("db.php"); if (isset($_POST["submit"])) { $username=$_POST["username"]; $password=$_POST["password"]; $query="select * from latest where username='$username' && password='$password'"; … | |
Firstly, Sorry for the long post :) Im currently creating a training database for use within the business (not done many getting used to coding) I used MySQLMaestro to construct the datagrid and have modified it to suit most my needs. however i have one issue that i cant resolve. … | |
Hi i need to create a form in a .html file myteamform.html, then take the data entered into the form and process it in a .php file "roster.php" which takes the data and adds it another.html page team_roster.html. I have my form done, my problem is how do you add … | |
Hi, I pull the data from database and print it on screen. How can I print all the characters correctly? Page should support all languages worldwide. English(this is fine anyway), Turkish, Chinese, Greek, French, Tai etc. I added some header lines, meta tags like UTF-8 etc. but no joy. Thanks … | |
Hey guys, I was hoping to get a little insight on this issue. I recently signed up for Yahoo Boss v2, I'm not really experienced with PHP. I honestly would have used google's api but they are charging too much for the amount of searches I'll need for this project. … | |
Good day, I am currently starting to use wordpress for better CMS and I wish to learn more about the framework. Any advises on what website I should refer to? I have download several framework to dig into but in the end I am still confused. Any reply is appreciated. … | |
hi i created this page for displaying my products that it works with select query from data base but after all try i could show the 3 of them in pages but all i want is displaying 6 of them in different tables after each other please help me with … | |
hi, is it possible for me to embed part of my site into another? i want to give someone a piece of php code maybe a page of code which will embed my whole intranet site into theirs so it looks like they are still on the other persons site … | |
When i run my code i receive the following error: [CODE]Fatal error: Call to a member function fetch() on a non-object in C:\Program Files\EasyPHP-5.3.8.0\www\Practice\staff.php on line 20[/CODE] The code that causes the error is: [CODE]<?php require_once "db_connect.php"; $dbh = db_connect (); $dbh->exec ("CREATE TABLE Staff( UserId int NOT NULL AUTO_INCREMENT, … | |
Hi everyone! Ok, let me quickly explain what I want to achieve. I have two tables. The first table is Requests and it looks like this [CODE] +------------------------------+ | Requests | +----+-------------+-----------+ | id | user_from | user_to | +----+-------------+-----------+ | | | | | | | | | | … | |
hi, i have designed an application for a company in php/mysql. they want an app version of it, just a cut down version of the app. simple question, what is the easiest way to convert php/mysql to an app for ipad or iphone etc? is there a compiler out there … | |
2day i hve another problem ..this is my code [CODE]<?php $data = mysql_query("SELECT * FROM entries ORDER BY id DESC LIMIT $x , 3") or die(mysql_error()); while($info = mysql_fetch_array( $data )) { echo" <div id=\"containing\">s <h1>".$info['contents']."</h1> <div id=\"parent\" > <p >".$info['author'] ."</p> </div> </div> <?php echo "<a href=\"$info['contents'].php\" >READ MORE</a>"; … | |
I install php script.but error. Parse error: syntax error, unexpected $end in /home/xxx/public_html/xxxx/ADMIN/index.php on line 376 Please be advice.Thanks <?php include("login_config.php"); include_once("Utils.php"); if(isset($doExport)||(isset($category)&&$category=="exit")||isset($Export)){ ob_start(); } if(stristr($_SERVER['HTTP_USER_AGENT'],"MSIE")) { $IE=true; } else { $IE=false; } $AC=true; include("security.php"); $lArray=DataArray("admin_users","username='$AuthUserName'"); if(isset($lng)){ $LANGUAGE=$arrSupportedLanguages[$lng][1]; $LANGUAGE2=$arrSupportedLanguages[$lng][1]; SQLUpdate_SingleValue( "admin_users", "username", "'".$AuthUserName."'", "language", $LANGUAGE ); } else{ $LANGUAGE=strtolower($lArray["language"]); $LANGUAGE2=strtolower($lArray["language"]); … | |
product_category.php [CODE] // SIMPAN if (isset($_REQUEST['simpan'])) { $kategori = mysql_real_escape_string($_REQUEST['kategori']); $id = isset($_POST['id']) ? $_POST['id'] : ''; $id = $_REQUEST['id']; if(empty($id)) $result = mysql_query("INSERT INTO kategori (nama_kategori) VALUE ('".$kategori."')") or die(mysql_error()); else $result = mysql_query("UPDATE kategori (nama_kategori) SET kategori = '".$kategori."') WHERE id=".$id) or die(mysql_error()); $confirmation = $result ? "Data … | |
input_berita_static.php [CODE] $id = isset($_POST['id']) ? $_POST['id'] : ''; $confirmation = isset($_POST['confirmation']) ? $_POST['confirmation'] : ''; $kategori = isset($_POST['kategori']) ? $_POST['kategori'] : ''; $news = isset($_POST['isi_berita']) ? $_POST['isi_berita'] : ''; $judul = isset($_POST['judul']) ? $_POST['judul'] : ''; $page = isset($_POST['page']) ? $_POST['page'] : ''; //Load berita if (!empty($_REQUEST['id'])){ $result = … | |
[CODE] <?php if (isset($_SESSION['uid']) && $_SESSION['uid']) { echo "You are already logged in, if you wish to log out, please <a href=\"./logout.php\">click here</a>!\n"; } else { if (!$_POST['submit']) { ?> <table border=0 cellspacing=3 cellpadding=3> <form method='post' action='login.php'> <tr><td>Username</td><td><input type='text' name='username'></td></tr> <tr><td>Password</td><td><input type='password' name='password'></td></tr> <tr><td colspan=2 align='right'><input type='submit' name='submit' value='Login'></td></tr> </form></table> … | |
new to php and mysql. i would like to build a system that will allow me to save to two databases at the same time. i know how to send data from my interface(i use html for the interface then use php to link with the mysql to design the … | |
Hi! So I managed to upload the picture via php to a folder BUT my problem now is that I want to INSERT the location path of the uploaded picture to the user's pic_location in the database and I don't know how the query will look if I want to … | |
Hello, I'm trying to read a text file which is on the web and then insert its contents in a database using PHP. I think my code is okay but I keep getting this error message which I think might be permission problems so I just need clarity on this. … | |
HI Friends, I am using html and php for designing a report i want coding for displaying 2 table headers in subsequent pages.As I have 207 datas retrieved from mysql format: categoy brand name model xxx rtrt ghg iio yyy jhkjk opo loo i have to display the above data … | |
Exclamation Help with MP4BOX [, FAAC] Installation in UBUNTU 11.4 Hello. I am trying to install Clipbucket and all its required modules on Ubuntu 11.4. I have followed the tutorial at [url]http://www.andresmontalban.com/how-to-install-clipbucket-requirements-on-redhat-enterprise-5-server-with-cpanel/[/url] and have everything installed except for FAAC and MP4BOX. These are the errors I get: FAAC –> Error … | |
Hi, I am having an issue with updating my database with info from an excel spreadsheet. I am using php-excelreader from: [url]http://sourceforge.net/projects/phpexcelreader/[/url] Here is what I have thus far: [code=php] <?php require_once 'reader.php'; $Host = "..."; $User = "..."; $Password = "..."; $DBname = "..."; $Link = mysql_connect ($Host, $User, … | |
In addition, i will need it to be scalable and highly customizable. For example, consumers will be able to group together in a yahoo groups/social networking fashion and then discuss and buy together as a group; merchants will have minimum volumes and time tools similar to those available on present … | |
Hi I'm just starting with php programming and need some help. This is just a test script I'm writing to see how it works. I'm trying to search for phone of a certain make and price using a different search box for Make and price. I want the results to … | |
kategori_berita.php [CODE] <?php include('koneksi.php'); $_REQUEST['catid'] = isset($_POST['catid']) ? $_POST['catid'] : ''; $result = mysql_query("SELECT * FROM kategori_berita") or die(mysql_error()); echo '<ul>'; while ($data=mysql_fetch_array($result)){ if ($_REQUEST['catid']==$data['id']) echo '<li>'.$data['kategori'].'</li>'; else echo '<li><a href="./?catid='.$data['id'].'">'.$data['kategori'].'</a><br/></li>'; } echo '</ul>'; ?> </div> [/CODE] I am trying to print bullet button list for each kategori: [CODE] if … | |
Dear All, I have a number of data from mysql database to be populated into a graph format. The graph is speed vs time. The time will be in every minute. So far I have tried two tools one phPlot and PhpGraphLib. The first one will only plot say at … |
The End.