39,326 Topics

Member Avatar for
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
974
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
248
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
Member Avatar for Rizi004

hi there i have a website develop in codeigniter framework i have upload the website in subdomain but the the problem with url rewrite. the website home page works fine oes.techpawer.com but when i open the login page or any other page it will not work like to open login …

Member Avatar for LastMitch
0
3K
Member Avatar for snadboy6371

I have got wamp server installed i was running perfectly but now suddenly it is nt starting it is showing loading process. I have uninstalled it and again installed still same problem... plz help me

Member Avatar for veedeoo
0
243
Member Avatar for showman13

Good Morning, I am trying to create a dealer order form for products which occasionally have a sub selection for color available. It is always limited to 2 colors if there is an option, and the number of items is very limited (max of 8) What I would like to …

Member Avatar for showman13
0
187
Member Avatar for jovstudios

Hello Guys. i need ur help. I want to compute the grades in php. This is My code. <?php mysql_connect("localhost","root","")or die(mysql_error()); mysql_select_db("collegestudent") or die(mysql_error()); $id = $_POST['id']; $prelim = $_POST['prelim']; $midterm = $_POST['midterm']; $prefinal = $_POST['prefinal']; $final = $_POST['final']; $a = (int) $prelim + 50 * .20; $b=(int) $midterm + …

Member Avatar for diafol
0
225
Member Avatar for sharma.chiragfaith

I have created an online PHP code executor at http://web.guru99.com Though I have checked all security aspects … do you experts see any major flaw that I need to care of?

Member Avatar for cereal
0
215

The End.