39,388 Topics

Member Avatar for
Member Avatar for easypro

I have a php page (page1.php) that loads another php page (page2.php). with page2.php I have other php codes and "includes" that I want to work. I use content=file_get_contents(file_path/page2.php) to get the code from page2.php. I then use str_replace() to change the file path of the "includes()" on page2.php so …

Member Avatar for almostbob
0
337
Member Avatar for bradly.spicer

Hey guys, Had a problem with Wordpress. When I click submit on a form for a plugin I made it says "insufficient permissions" So I can see that being a problem. I decided it might be best to use PHP_SELF. Just a question really. At the moment it is 3 …

Member Avatar for bradly.spicer
0
140
Member Avatar for newbie26

hi..please help me to have code that will display list of folders from a given directory in php or javascript. for example i want to display in a page the list of folders in my c:\Program Files\. Thanks in advance.

Member Avatar for newbie26
0
315
Member Avatar for Shikha_1

***registration.php*** <!<!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>Register</title> </head> <body> <fieldset> <legend>Registration</legend> <form name="register" action="register.php" method="post"> <table width="510" border="0"> <tr> <td colspan="2"><p><strong>Registration Form</strong></p></td> </tr> <tr> <td>Username:</td> <td><input type="text" name="username" maxlength="20" /></td> </tr> <tr> <td>Password:</td> <td><input type="password" name="password" /></td> </tr> <tr> …

Member Avatar for broj1
0
255
Member Avatar for unikorndesigns

Hey Guys, I have been spending 2 hrs on this work. I just can't figure out how to get this page aligned properly. Here is the link to the html page [Click Here](http://demo.goincubix.com/exosafe/html/ver4/services.html) and here is the susbsequent wp page's link [Click Here](http://exosafe.com/site/services/) I'm so drained looking at the PHP …

Member Avatar for bradly.spicer
0
257
Member Avatar for GreenGERMBUBBLE

My code: <?php include("db.php"); if (isset($_POST['username']) && isset($_POST['password']) && isset($_POST['email'])) //Prevent SQL injections $username = mysql_real_escape_string($_POST['username']); $email = mysql_real_escape_string($_POST['email']); //Get MD5 hash of password $password = md5($_POST['password']); //Check to see if username exists $sql = mysql_query("SELECT username FROM usersystem WHERE username = '".$username."'"); if (mysql_num_rows($sql)>0) { die ("Username taken."); } …

Member Avatar for broj1
0
237
Member Avatar for joshl_1995

Hello Community, I'm having trouble with data returning after my form has been submitted. So in my case I have a notification system on my website and a setting popup window with a clear all checkbox so when the user clicks it then click save, after the form submits. All …

Member Avatar for joshl_1995
0
123
Member Avatar for aneeqtariq_143

i want to check the email sending functionality of my application. I read different articles but non of them were useful. I want to check what emails are generated by my application so i test my application. i tried different tools like Test Mail Server Tool, smtp4dev etc. But they …

Member Avatar for chrishea
0
140
Member Avatar for L-D

Hi! Back again with two new errors... Saved as text files Deprecated: Function session_unregister() is deprecated in /home/content/13/11394913/html/logout.php on line 15 http://www.universal-abundance.com/logout.txt Ln 15 is a blank line! Deprecated: Function eregi() is deprecated in /home/content/13/11394913/html/join.php on line 52 http://www.universal-abundance.com/join.txt Ln 52 } elseif(!preg_match("/^[_\.0-9a-zA-Z-]+@([0-9a-zA-Z][0-9a-zA-Z-]+\.)+[a-zA-Z]{2,6}$/i", $_POST['email'])) { Thanks! L-D

Member Avatar for Zagga
0
283
Member Avatar for ImZick

hi.. how can i create a listview or Gridview which display all my data in my sql?? also with a next and previous button.. and find.. I'm been searching it for whole day but no luck.. i find a few but it required me to buy it from them?.. Can …

Member Avatar for broj1
0
2K
Member Avatar for sanbhu2105

i will explain the scenario as i don't know how to do it and i don't know if someone ever did it before. I am creating a price comparison website. The customers can add products as their favourites from a list of products. They can also add 4 retailers as …

Member Avatar for sanbhu2105
0
252
Member Avatar for sinopa

Does anyone know how I can get specific content from another website and post it on my website? In this case I want to get the content from [url]http://www.gametracker.com/server_info/213.239.207.85:27960/[/url] What I want is: Name, Game, Address, port, status, clan, Server Manager, members, Current Players. Average and Game Server Rank. I've …

Member Avatar for diafol
0
1K
Member Avatar for bradly.spicer

Hey guys, got this weird error. I have 3 divs. Each with different forms in. Div 1 and Div 2 work fine, they sit next to each other no errors. But div 3 doesn't exist apparently. I'm unsure of where it has moved or why it's deleted. Picture: http://puu.sh/3yDRM.png As …

Member Avatar for bradly.spicer
0
276
Member Avatar for 68thorby68

I have an issue with `$_SESSION` global across a single domian, on my local machine, running PHP 5.1 build 2600 I'm creating a session in the domain root. $first_name='martin'; $second_name='thorburn'; $login_array=array("first_namet"=>$first, "second_name"=>$second); $_SESSION['login']=$login_array; When I run `print_r($_SESSION['login']);` in the root, I get the expected response "Array ( [first_name] => martin …

Member Avatar for 68thorby68
0
391
Member Avatar for Kelvin_1

Please I have a bulk SMS website which I have developed and everything is working fine. The remaining part of the website is the Resellers part where my customers can have their own store where they can sell with their customised name. I am using a VPS Server with a …

Member Avatar for Kelvin_1
0
99
Member Avatar for Fiorentino01^

Hi I need some help please. I am trying to display mysql data on webpage.I got this example from PHPEasyStep but it does not work. I think the code is a few years old and not compatible with my version of Php which is 5.4.Actually I have this problem with …

Member Avatar for Fiorentino01^
0
353
Member Avatar for Sahil_Ar

Hi Guys! I want to know about Forum Software Development,(Vbulletin for Example) i want to Build the Popular Software like Vbulletin,how can i Develop it? Please Help me,what i should know to Build it,Basically i don't even know C,C++. Would it be Difficult and how much and yes i am …

Member Avatar for klaipedos
0
226
Member Avatar for klemme

Hi all, I have a project where I need to improve a search function on a webshop, which is using data from CNet. I am really struggling to find some usefull examples or tuturials explaining the way CNet SKU search is/can be build. The webshop is made in PHP - …

Member Avatar for veedeoo
0
186
Member Avatar for eburlea

Hi. I am using Zend Framework Models. I have 2 tables: 'results' and 'resources'. Table 'results' has the columns: 'results_id', 'resource_id_team1', 'resource_id_team2', 'match_result'. Table 'resources' has the columns: 'resource_id', 'resource_name'. I want to retrieve the results from the table 'results' and I want to join 2 times the table 'resources', …

Member Avatar for eburlea
0
975
Member Avatar for nerdynewf

I have code to upload a image to a folder (storing location and image info in a mysql database) with a separate page to display the images in albums on a website. Can I change this existing code to allow me to upload multiple images at once? here is the …

Member Avatar for nerdynewf
0
249
Member Avatar for kg2989

hi, i need a parser script of php that stores information like name, dob, address, contact no., education from the resume. the resume can be of .doc,.txt format thanks in advance

Member Avatar for pritaeas
0
529
Member Avatar for Syed Nasir ali

Hi when i run php file on local host it directly go to download folder it not come in run condition Please help me i am new in php thank

Member Avatar for pzuurveen
0
259
Member Avatar for aspertrace

<?php $username = $_SESSION['username']; $result = 'sample'; $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } $sql = "Select FirstName from Person Where LoginID = (Select LoginID from UserLogin Where Username = '$username')"; $result = mysql_query($sql,$con); echo $result; ?> I'm kinda new to this server-side scripting …

Member Avatar for aspertrace
0
215
Member Avatar for Rahul47

Hello folks, I am completely new to php. I wish to develop php programs and execute them. What should I do to run php programs using Apache Web Server Under Windows ?

Member Avatar for Rahul47
0
257
Member Avatar for turpentyne

I've just run into a problem, when pulling location data using a link table. There can be two entries in the link table, like so: item_id | contentent | country | state ------------------------------------- 123 | 1 | 2 | 20 123 | 1 | 2 | 21 When I echo …

Member Avatar for diafol
0
173
Member Avatar for sanbhu2105

hey guys, i have created a page called prod_det.php. the page displays the details of the product. below is the code. but it is not working. error message being received when i click the details button is Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean <?php session_start(); ?> <!DOCTYPE …

Member Avatar for sanbhu2105
0
3K
Member Avatar for eburlea

Hello. I need to create an array dynamically from a string value. Please advise how is it possible to retrieve the array values by keys. $mystring = 'myarray'; $myarray = ['a','b','c']; echo '<pre>'; print_r($$mystring); // it works properly echo '</pre>'; echo $$mystring[0]; // returns error

Member Avatar for eburlea
0
115
Member Avatar for kiLLer.zoh_1

Warning: Invalid argument supplied for foreach() in /opt/lampp/htdocs/pbook/inc/login.in.php on line 12 <?php include 'contacts.php'; if($_SERVER['REQUEST_METHOD']=='POST'&& $_POST['submit']=='Login') { $lname = isset($_POST['lname']) ? trim($_POST['lname']):NULL; $lpwd = isset($_POST['lpwd']) ? trim($_POST['lpwd']):NULL; if(($lname!=NULL)&&($lpwd!=NULL)) { $lobj=new DB_Action(); $l=$lobj->disp("Select * From members where memname= '$lname'and mempass='$lpwd'"); foreach ($l as $result) { $aid =$result['memid']; $_SESSION['_ENTER'] =1; header("location:address-book.php?l=$aid"); exit; …

Member Avatar for diafol
0
357
Member Avatar for L-D

Hi, I'm getting errors on http://www.universal-abundance.com Deprecated: Function session_register() is deprecated in /home/content/13/11394913/html/login.php on line 3 Dark bg so highlight top of page. (Still got images to work on) Thanks L-D

Member Avatar for L-D
0
116
Member Avatar for erik216

I need to expend the coding developed by another programmer. The original script only can show five page with no extra notice pdf. So I need to base on his coding to extend. Now I am facing a problem about how can I put line break in multicell. I try …

Member Avatar for LastMitch
0
1K

The End.