39,320 Topics

Member Avatar for
Member Avatar for sumeshpremraj

I'm learning PHP and MySQL, and I'm trying to create a simple online pastebin website. I want to create both anonymous and logged in user pastes. I created a 'user' table with uid, name and password columns, and a 'pastes' table with pid, paste and uid columns. In a viewpaste.php …

Member Avatar for sumeshpremraj
0
212
Member Avatar for minitauros

Hello there, I would like to know if anyone knows a solution for excluding a group within a group in a regular expression. For example: /(name|(?:last[ ])name|(?:first[ ])name)/i I would only like the word "name" to be returned (this is just an example), but when I take match number 1 …

Member Avatar for minitauros
0
333
Member Avatar for dinhunzvi

i am working on web application and i'm looking for a way to create and display reports. tried Crystal Reports but the reports are not being displayed. what other options do i have?

Member Avatar for dinhunzvi
0
132
Member Avatar for beginnerpals

I wanted to give my admin the power to search professors by name and provide them with a corresponding checkbox for each search result returned to help them select entries that he wants to delete (like we have in phpmyadmin for example). I'm posting the prof_name from a form that …

Member Avatar for beginnerpals
0
248
Member Avatar for fheppell

I've written this code that takes two variables via POST. Some file and a checkbox to say whether the image can be downloaded. I then have this processing code to upload multiple files: <?php require_once('Connections/koding1.php'); if(isset($_FILES['file']['tmp_name'])) { // Number of uploaded files $num_files = count($_FILES['file']['tmp_name']); /** loop through the array …

Member Avatar for fheppell
0
192
Member Avatar for edensigauke

I know apache exists, and the WAMPP, but i would like to know the handler settings for PHP on Windows 8 IIS, it would really be helpful. I was thinking it might be the same as with windows 7, but i am not getting the mapping parts.

Member Avatar for edensigauke
0
249
Member Avatar for daniel36

I am working on a cms type project.In this project when i uses get variable to fetch data from database and display.The layout of website shifted to left.and i am unable to solve this problem.please help me.

Member Avatar for daniel36
0
113
Member Avatar for andika.kurniawan.121

I want to make multiplayer game with PHP. In the game, I tell the user to make adhoc before play multiplayer. Is the network in my game Local Area Network ? Can you help me to make the network in multiplayer game which I want ?

Member Avatar for jkon
-1
68
Member Avatar for TMacFarlane

This is a very complicated problem. I have an existing web page with multiple drop-down fields-- now I want to add a keyword search text field. I have managed to create a page with the text input only, and that works fine. The trouble comes when I try to add …

Member Avatar for pritaeas
0
359
Member Avatar for ACRDepos

Hello everyone, If you haven't seen my form code so far here it is: <?php $host = "xxxxxx"; $username = "xxxxxxx"; $password = "xxxxxxxx"; $database ="xxxxxxxx"; $conn = mysql_connect ($host, $username, $password) or die ("could not connect"); $db = mysql_select_db($database, $conn) or die ("could not select DB"); $id=mysql_real_escape_string($_POST['id']); //This value …

Member Avatar for ACRDepos
0
139
Member Avatar for richosr

Can anyone tell me why echo intVal($_REQUEST["CustID"]) where $_REQUEST["CustID"] value is 62013300111, produces 62013300111 on one php Server but on another it produces 2147483647. I cannot find any logical reason. regards Steve

Member Avatar for richosr
0
201
Member Avatar for kakalahori

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”> <!--[if lt IE 7 ]> <html class="no-js loading ie6 oldie" dir="ltr" lang="en-US"> <![endif]--> <!--[if IE 7 ]> <html class="no-js loading ie7 oldie" dir="ltr" lang="en-US"> <![endif]--> <!--[if IE 8 ]> <html class="no-js loading ie8 oldie" dir="ltr" lang="en-US"> <![endif]--> <!--[if (gte IE 9)|!(IE)]><!--> <html …

Member Avatar for annaharris
0
302
Member Avatar for fheppell

I've run this code to generate two encrypted passwords from a plaintext password echo crypt("TestingTesting123"); echo "<br />"; echo crypt("TestingTesting123"); The two strings are identical but when I run it I get this output $1$/PGpeshL$UhmiaU/jlaJTWZV8g7Ze4/ $1$MnRnzohZ$zh9VpHPOwYejI.XR76vmC/ Some people have reccomended crypt() as a good password encryptor, but how are you …

Member Avatar for annaharris
0
183
Member Avatar for delta_frost

I hate to sound redundant,but can anyone point out step by step how to configure my localhost WAMP server installation to send e-mail.I do have a GMail a/c. It would be highly appreciated if anyone explained every step of the process.Tried to configure PEAR,PHPMailer,sendmail but with no luck.

Member Avatar for delta_frost
0
204
Member Avatar for Evil_genius82

Guys Ive spent some time trying to see whats wrong but im getting nowhere.... Let me explin what I want to do. Firstly I want to obtain the whole size of a directory (foldersize function). Secondly, i want to pass that number (in bytes) to the foldersize_formatted function to show …

Member Avatar for delta_frost
0
129
Member Avatar for kijiko

functions of each code in php..i fail to understand. am a begginer and i need help

Member Avatar for Webville312
0
90
Member Avatar for gogs85
Member Avatar for Joemeister

Hey everyone! I have a members.php page/file in which i want logged in users to see the other users registered in the database. I'm not exactly quite sure how to do this and I'm struggling quite a while now with this so your help will be VERY much appreciated. I …

Member Avatar for Webville312
0
1K
Member Avatar for sarovarc

Hello, I am look for some help with a query where the query changes on the basis of input parameters. Like $variable = 'abc'; $rs=mysql_query("SELECT * FROM table WHERE `column`='$variable'"); But what about a scenario where this variable is not assigned or is null or blank. In that case I'd …

Member Avatar for bops
0
145
Member Avatar for sandeepek

I want to send a confirmation mail to users given email id aftre his/her registration. I am trying this in codeIgniter framework only. But I didn't get the exact output. Please help me, what is the correct code I can use here? Please not: I am using Xaamp server. Thanks …

Member Avatar for sandeepek
0
2K
Member Avatar for kakalahori

<?php session_start(); define( “USERNAME”, “john” ); define( “PASSWORD”, “secret” ); if ( isset( $_POST[“login”] ) ) { login(); } elseif ( isset( $_GET[“action”] ) and $_GET[“action”] == “logout” ) { logout(); } elseif ( isset( $_SESSION[“username”] ) ) { displayPage(); } else { displayLoginForm(); } function login() { if (isset( …

Member Avatar for IIM
0
360
Member Avatar for showman13

Good afternoon All. I'm running into difficulties trying to get a random selection from a subset in a query. Basically what I have is a table with a record for every New Active referral, that contains the date(active_date) the member ID(mem_id) and the referrer ID(ref_id)... What I need to do …

Member Avatar for showman13
0
194
Member Avatar for daniel36

I am trying to convert 08 and 09 to 8 and 9 respectively, but they are not getting converted. I tried 08+0 , 09+0 but the result I obtained in both the cases is 0. The above method is working for 01 to 07 and I am obtaining results as …

Member Avatar for masterjiraya
0
167
Member Avatar for dlaverick

I am running a check from my Db to see if a grade exists, if it does then spit out the grade inside a link. If not then spit out another link. The bit that includes the grade where a grade exists works a treat, it just does not like …

Member Avatar for dlaverick
0
142
Member Avatar for hanan-kh

I want to introduce categories in Jump menu These categories are stored in the database is the way to do it I have tried but this does not work <?php session_start(); include("myclass.class.php"); function genRandomString() { $length = 10; $characters = '0123456789abcdefghijklmnopqrstuvwxyz'; $string = ""; for ($p = 0; $p < …

Member Avatar for masterjiraya
0
169
Member Avatar for Echo89

A little find and replace function for PHP, not tested, but theoretically should work.

Member Avatar for Echo89
-1
2K
Member Avatar for davidjennings

Hi All I am trying to implement implement a coherent, extendable object oriented solution in PHP. I am not sure where to start to solve this problem. (Not home work) The Problem • I need to use a basic command line program that when called will retrieve and store a …

Member Avatar for pritaeas
0
234
Member Avatar for Squidge

I googled and googled to try and find a comprehensive wiki/tut on how to share htdocs across a dual platform. My base install is Windows 7 64bit, and recently (6wks ago) set up a dual boot. One thing pained me for a while of not being able to use the …

Member Avatar for Squidge
5
821
Member Avatar for himerus

This script will generate a thumbnail image of any JPEG image that is sent to it... This file is independant, and mine is named resize.php you can send an image to the php file, and then return the thumbnail for viewing. It does require some work, but WELL worth the …

Member Avatar for gpcodelibrary
0
992
Member Avatar for games1124u

Hello, i want to change te result of showing in the browser, now it shows this when i click 2 3 4 or next. Search+source+code&page=36 Search+source+code&page=72 Search+source+code&page=108 and i want to change it to this, Search+source+code&page=2 Search+source+code&page=3 Search+source+code&page=4 If i change $per_page = 36; to $per_page = 1; than works …

Member Avatar for LastMitch
0
273

The End.