39,402 Topics

Member Avatar for
Member Avatar for veledrom

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 …

Member Avatar for cwarn23
0
91
Member Avatar for meisjen

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. …

Member Avatar for meisjen
0
363
Member Avatar for lps

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. …

Member Avatar for lps
0
236
Member Avatar for dr.4030

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 …

Member Avatar for turt2live
0
118
Member Avatar for mrhankey

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 …

Member Avatar for diafol
0
178
Member Avatar for BenzZz

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, …

Member Avatar for Stefano Mtangoo
0
321
Member Avatar for Joemeister

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 | +----+-------------+-----------+ | | | | | | | | | | …

Member Avatar for stoopkid
0
127
Member Avatar for mrhankey

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 …

Member Avatar for mrhankey
0
109
Member Avatar for aaloo

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>"; …

Member Avatar for aaloo
-1
334
Member Avatar for mcx76

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"]); …

Member Avatar for thegeekofnothin
0
431
Member Avatar for davy_yg

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 …

Member Avatar for chrishea
0
52
Member Avatar for davy_yg

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 = …

Member Avatar for davy_yg
0
95
Member Avatar for luweegee

[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> …

Member Avatar for ko ko
0
266
Member Avatar for liphoso

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 …

Member Avatar for broj1
0
106
Member Avatar for Joemeister

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 …

Member Avatar for lps
0
235
Member Avatar for kgizo

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. …

Member Avatar for kgizo
0
137
Member Avatar for mohan_iyyar

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 …

Member Avatar for mohan_iyyar
0
146
Member Avatar for NoviceCoder37

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 …

0
95
Member Avatar for lobstar

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, …

Member Avatar for rrpandiarajan
0
297
Member Avatar for danchapman91

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 …

Member Avatar for chrishea
0
157
Member Avatar for Rian19

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 …

Member Avatar for cwarn23
0
240
Member Avatar for davy_yg

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 …

Member Avatar for cwarn23
0
119
Member Avatar for newbie14

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 …

Member Avatar for cwarn23
0
276
Member Avatar for Inny

Using an apache webserver, im currently redirecting hotlinks to a certain image. [code]<IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?camosreptiles.com.au/ [NC] RewriteCond %{HTTP_REFERER} !google\. [NC] RewriteCond %{HTTP_REFERER} !search\?q=cache [NC] RewriteRule \.(jpg|jpeg|png|gif)$ http://i14.photobucket.com/albums/a345/Instar/nedry2.gif [NC,R,L] </ifModule>[/code] What id like to do, is redirect to a certain page (my own domain) …

Member Avatar for Inny
0
118
Member Avatar for Joemeister

I'm using sessions to receive my info from my database table... But I'm not quite sure how to get a image because if I just say this: [CODE]echo "<img src='" . $_SESSION['pic_location'] . "' />";[/CODE] I only get like a little black dot thingy. I don't know if one could …

Member Avatar for diafol
0
103
Member Avatar for luweegee

[CODE] <?php session_start(); $con = mysql_connect("localhost","root",""); $sql = mysql_select_db("blog", $con) or die(mysql_error()); ?> <html> <head> <title>///</title> </head> <body> <div id="admin-content"> <?php if($_SESSION['uid']){ $sel = "SELECT * FROM `users` WHERE `id`='".$_SESSION['uid']."' "; $result = mysql_query($sql) or die (mysql_error()); if(mysql_num_rows($res) == 0){ session_destroy(); echo "Please <a href='login.php'>Login</a> to your account, or <a …

Member Avatar for luweegee
0
716
Member Avatar for phfilly

Hi! I would just like to know if its possible to give an linked image the ability to send the form instead of a submit button? Like in the example below: [CODE] <form method="post" action="Search.php"> <table id="search"> <tr> <td> Search: <input type="text" name="search" id="search" placeholder="Search for friends"/><td><a href="Search.php" action="Search.php"><img src="graphics/search.png" …

Member Avatar for phfilly
0
132
Member Avatar for aaloo

plz somebody help with this code . i m fed up now [CODE]<?php $x=5; echo $x; session_start(); $_SESSION['y']=$x; $string = '<?php session_start(); $x=$_SESSION['y']; echo $x;?> '; $fp = fopen("6.php", "w"); fwrite($fp, $string); fclose($fp); ?>[/CODE]

Member Avatar for aaloo
0
266
Member Avatar for minitauros

What I would like to do is to create a repeating pattern inside a rewriterule. For example: RewriteRule ^([\w]+)/([\w]+)/[B](([\w]+)/([\w]+))*[/B]/?$ index.php?p=$1&s=$2[B](&$4=$5)*[/B] Breaking it down: On every page my ?p=BLA refers to a certain page, and every &s=BLA refers to a certain subpage. The rewriterule for this would obviously be: RewriteRule ^([\w]+)/([\w]+)/?$ …

Member Avatar for cwarn23
0
301
Member Avatar for silverarrow23

Hi, I Am Having Problems With this Piece Of Code: [code]<?php // Config $Conf = array(); $Conf['db'] = array(); $Conf['template'] = 'default'; $Conf['language'] = 'en'; $Conf['title'] = 'Care In Mind File Server'; $Conf['db']['server'] = 'mysql17.000webhost.com'; $Conf['db']['username'] = 'a6670856_fileser; $Conf['db']['password'] = 'ja23mes'; $Conf['db']['name'] = 'a6670856_fileser'; $Conf['docUrl'] = 'http://careinmindintranet.co.cc'; $Conf['job_server'] = 'http://careinmindintranet.co.cc/Secure/FileServer/jobs'; …

Member Avatar for silverarrow23
0
445
Member Avatar for jonesa01

Hello, I hope someone can help me solve this: I am writing a script which can extract phone numbers from a peice of entered text which i can do fine but when there are other numbers it becomes more complex and i cannot seem to find away round it. All …

Member Avatar for jonesa01
1
4K
Member Avatar for phfilly

Just something small and I'm not sure how to do it. What I want to do when the user cannot be found in my DB then it should: 1. Print out -I wanted to use a pop-up to inform the user that he has entered incorrect log in details. Which …

Member Avatar for phfilly
0
252
Member Avatar for garyrichard

Hi.. I am new to PHP Mysql and i am facing following problem.. .............................. Database 1 [COLOR="Red"]G[/COLOR] 1 [COLOR="red"]G[/COLOR] 1 [COLOR="red"]G[/COLOR] ........................... I want to print records like this ........................... 1---[INDENT]g[/INDENT] [INDENT]g[/INDENT] [INDENT]g[/INDENT] .............................. As we do in in crystal reports ( suppress if duplicated ) ALSO PLEASE SUGGEST ME …

Member Avatar for cwarn23
0
363
Member Avatar for phfilly

Hi guys! I got a problem with my logging in system. I can connect to my database with the code: [CODE]session_start(); include('header.html'); $page_title = 'Home Page'; $mail = $_POST['email']; $password = $_POST['password']; $msg =''; if(isset($mail,$password)){ $con = mysql_connect('127.0.0.1','root',''); if(!$con) { die('Could not connect: '.mysql_error()); } else{ echo "Connected!"; } } …

Member Avatar for phfilly
0
171
Member Avatar for davy_yg

[CODE] <td>Kategori</td> <td><select name="kategori"> <option value=0 selected>- kategori -</option> <? $resultCOMBO = mysql_query("SELECT nama_kategori FROM kategori") or die(mysql_error()); while($dataCOMBO = mysql_fetch_array($resultCOMBO)){ echo "<option value= $dataCOMBO['nama_kategori']>$dataCOMBO['nama_kategori']</option>";}?> </select></td> [/CODE] Hey, I am trying to create a combo box but receive this error when I run it: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, …

Member Avatar for cwarn23
0
189
Member Avatar for mwenyenia07

I am new to PHP. I want to implement search using keypress i.e you enter the ID in a textfield and press the Enter key, which will call a certain function or php file which will do the search and load required data. my problem is how to make the …

Member Avatar for blocblue
0
95
Member Avatar for -==Zero==-

Hello Everyone iam making a search file that retrieve data from database by letters i got this code [CODE]SELECT `name` FROM users WHERE `name` LIKE 'A%'[/CODE] it show the data that begin with letter (( A )) Ok my main page now contain this letter a b c d e …

Member Avatar for -==Zero==-
0
153
Member Avatar for DellrocK

I'm creating a link sharing website and I want the user that registers to upload an avatar and use that avatar throughout the website. I got so far that the user can register but can't find a way for him/her to have an avatar. Here I have the signup.php (for …

Member Avatar for Stefano Mtangoo
0
168
Member Avatar for drugoholic

Hello, I'm trying to edit the style of a normal html table in Joomla/K2 that outputs the author, title of the article and date. The problem is (I thought joomla does this automatically) is that the header of the table keeps repeating on every new record. [URL="http://i.imgur.com/sopAi.jpg"]Screenshot[/URL] I realized that …

Member Avatar for drugoholic
0
435
Member Avatar for cskinittest

hai iam new to this domain. iam developing online quiz contest project in php (mysql,javascript,ajax) i need Automatic session timeout/logout and also i need time counter display using php and AJAX. pls refer any website. i searching for last 2 days.. advance thanks..

Member Avatar for Taywin
0
213
Member Avatar for mitchiexlolz

is there a significant difference between phpmyadmin and mysqlbuddy? i mean does they differ in codes? coz i have to make a website that checks whether the username and password exists in the databse. here is my code for looking up in the databse. [CODE] <?php if(isset($_POST['submit'])) { include 'connection.php'; …

Member Avatar for smantscheff
0
175
Member Avatar for kitschkath

So I've been figuring this out for an hour now and I can't seem to find the problem is so i have this code: [CODE]$QUERYsubject="select * from tbltablestudent where S_ID='".$myusername."'"; $subject=mysql_query($QUERYsubject) or die(mysql_error()); $QUERYgr1="Select * from ".$subject[Subject].", tbltablestudent where ".$subject[Subject].".S_ID=tbltablestudent.S_ID and tbltablestudent.S_ID='".$myusername."' and Grading_period='1st_Grading'"; $gr1=mysql_query($QUERYgr1) or die(mysql_error());[/CODE] and I am …

Member Avatar for kitschkath
0
150
Member Avatar for davy_yg

product_edit.php [CODE] <?php $result = mysql_query("SELECT * FROM produk AS p, kategori AS k WHERE id_produk='".$_REQUEST['id']. "', p.kategori_id = k.kategori_id") or die(mysql_error()); $data = mysql_fetch_array($result); // cari syntax sql yang pas //$result_kat = mysql_query("SELECT * FROM kategori WHERE id_produk=".$_REQUEST['id']) or die(mysql_error()); //$data_kat = mysql_fetch_array($result); ?> <form method = "POST" enctype="multipart/formdata" …

Member Avatar for davy_yg
0
128
Member Avatar for sudhir lodh

[CODE]<?php //Database Information $dbhost = "localhost"; $db = "dbname"; $dbuser = "root"; $dbpass = ""; //Connect to database mysql_connect ( $dbhost, $dbuser, $dbpass)or die("Could not connect: ".mysql_error()); mysql_select_db($db) or die(mysql_error()); session_start(); { $username = $_POST['username']; $password = md5($_POST['password']); $query = "select username from users where username=’$username’ and password=’$password’"; $result = …

Member Avatar for pritaeas
0
59
Member Avatar for utroda

Hello, I'm looking for some help on the following line of code, it keeps throwing an error. [I]Parse error: syntax error, unexpected T_FUNCTION Line 168.[/I] The code below is line 168. [CODE]$content = preg_replace_callback("/\{include '(.*?)'}/", function($m) { return file_get_contents(CORE . 'includes/' .$m[1]);}, $str);[/CODE] Any ideas?

Member Avatar for pritaeas
0
211
Member Avatar for eve_moore

i have this form in html: [CODE]<form id="form_269808" class="appnitro" method="post" action=""> <div class="form_description"> <h2>Basic Information</h2> <p>Please fill up your information correctly. All fields are required</p> </div> <ul > <li id="li_1" > <label class="description" for="element_1">First Name </label> <div> <input id="element_1" name="element_1" class="element text medium" type="text" maxlength="255" value=""/> </div><p class="guidelines" id="guide_1"><small>Enter your …

Member Avatar for cwarn23
0
738
Member Avatar for kaizerkiller

What I want to do is to put links, like product categories along with its product subcategories, on the left and right panel but I don't know how to do it. :sad: All I know is how to modify the header, navigation, content and footer. But I got a hard …

Member Avatar for kaizerkiller
0
120
Member Avatar for aijazali12

Hello friends, How to play videos using php, could anyone suggest me code to play the videos. For example, I have a video "abc.mpg", i want to play it in the browser using php code. I need help asap. Thanks.

Member Avatar for rpv_sen
0
2K
Member Avatar for Simon180

ok am trying to add a simple word filter for my registration process I have stored all names i do not wish to be used in my db as a text and it can be edited via admin panel nicely but my problem is how can i scan the full …

Member Avatar for cwarn23
0
174
Member Avatar for Felipevd

Greetings! I have what I guess is a simple problem with a simple php code. What I want, is that with a simple form, the name and the password that are entered, are saved in a database. I have a form, and the action ="Process_Form.php" calls this file. Then, with …

Member Avatar for cwarn23
0
223

The End.