39,326 Topics

Member Avatar for
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
115
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
102
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
714
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
261
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
298
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
438
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
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
356
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
174
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
737
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
171
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
215
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
212
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
271

The End.