39,320 Topics

Member Avatar for
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
249
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
351
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
170
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
186
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
94
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
151
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
165
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
432
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
212
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
173
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
147
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
125
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
57
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
208
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
736
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
118
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
170
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
214
Member Avatar for ajbest

I have a bit of a stumper that I am hoping someone has a fresh idea on. [B]The Problem:[/B] I have a client that owns 3 domains all selling similar products. The domains are all very interlinked together for various SEO purposes. I need to be able to have a …

Member Avatar for ajbest
0
204
Member Avatar for -==Zero==-

Hello first code I need to know the code to get data from mysql table that have a letter a i mean i have a table called "Games" there's a games start with a b c d e f g h I need to retrieve games That begin with (( …

Member Avatar for -==Zero==-
0
210
Member Avatar for diafol

Hi All, I'm in the middle of building a new login/registration class and was going to apply a hashing function to the pw and an activation token, when I came across the hash_hmac function. I've tried finding out more about it, but info is pretty scarce. Could anybody shine some …

Member Avatar for diafol
0
269
Member Avatar for Simon180

abit like the title am looking for a way to scan my full database and to look at each accounts email address and to find any emails the same and then count them can anyone show me how this is done ? thanks below is my basic db table [CODE] …

Member Avatar for Simon180
0
109
Member Avatar for jpizzolato

I am entering text into a textarea field and pressing the return key to force a new line. But when the contents of the textarea field is displayed I am seeing the new line html tag <br /> symbol (see below). How do I stop these symbols from displaying and …

Member Avatar for ajbest
0
111
Member Avatar for Stefano Mtangoo

Since I decided to reinvert the wheel and write a growing MVC, I though having a template class will be cool. Now I have never done any complex templating apart from simple include kind of templating. Now I wrote this base class and here is my concept is explained below. …

Member Avatar for Stefano Mtangoo
0
303
Member Avatar for bravemarshal

pLEASE TAKE A LOOK AT THE TUTORIAL IN THIS LINK: http://forum.codecall.net/php-tutorials/13410-register-upload-photo-have-new-page-each-user-after-registration.html . i HAVE SPENT TIME TRYING TO KNOW WHAT IS WRONG WITH THE regmee2 file but can't still tell. I am no longer sure if it is also a table or a called procedure. Can anybody tell me if …

Member Avatar for ddymacek
0
73
Member Avatar for topsege2007

i want to design an application where registered members will upload their passport photograph along with some basic information on a form. These members should also be able to view thier profile showing there passport. Please I need someone to help me with a script.

Member Avatar for ddymacek
0
123
Member Avatar for samsnov

Please can someone help me out here, I know that this is not the right place for this forum but I assumed that experts would be here to help me out too as I have written to wordpress but no response. 1st: how can I remove image file link in …

0
52
Member Avatar for dr.4030

hi every body i have template that it contains this type of java script for displaying wallpaper in the main screen : [CODE] <!-- JAVASCRIPT TRIGGERS --> <script type="text/javascript"> $(document).ready(function(){ $("a[rel^='prettyPhoto']").prettyPhoto({ theme: 'dark_square' }); }); $.backstretch("images/background-home.jpg", {speed: 'slow'}); </script> [/CODE] and i wanna change it to this form : [CODE] …

Member Avatar for cwarn23
0
126
Member Avatar for phorce

Hello, Does anyone have any experience with phpwebsocket by google? I'm having a problem connecting to my server... Here is the two files: (server.php) [code] #!/php -q <?php /* >php -q server.php */ error_reporting(E_ALL); set_time_limit(0); ob_implicit_flush(); $master = WebSocket("[server_IP]",12345); $sockets = array($master); $users = array(); $debug = false; while(true){ $changed …

Member Avatar for cwarn23
0
168

The End.