39,316 Topics

Member Avatar for
Member Avatar for Webbsta

Hello everyone, I am working on a website and I decided to create my own testing server as I currently have my Windows machine hosting apache for this. I have now set up a seperate machine running Linux and on the face of it everything should be working fine. I …

Member Avatar for Webbsta
0
217
Member Avatar for piyush_jain2011

i'm using smtp "127.0.0.1" and smtp port "25" to send the mail. My application is working fine but mail is not sending. What i've to do for it. need some suggession.

Member Avatar for best4earn
0
115
Member Avatar for best4earn

I am a New developer , Now a days i am on mlm project ... I want to know how can i genrate 3 Point by Direct reference & 1point indirect reference & how can Transfer 1 member to another. plan MLM binary 1st = 1-left/1-right ==15% all remaining nodes …

Member Avatar for best4earn
0
175
Member Avatar for edwin.joseph.7543

Hi, so I have been trying to create a Login and Register system, but the thing is every time I try to login using the system nothing really happens. You can check it out at http://edwinjoseph.co/logintest/ if you click login and use **user** for the username and **password** for the …

Member Avatar for edwin.joseph.7543
0
392
Member Avatar for devarmagan

hi in my registration page i got about 20 input fields everythings are working fine except this multiple checkboxes. i read the articles related to my isses but no joy yet becouse my code is very complecated for example the register.php datas will be validate and process by process.php and …

Member Avatar for devarmagan
0
3K
Member Avatar for lloydsbackyard

I have php questions..please give me some ideas... 1. how can I destroy php session if the browser is close? 2. if i have textboxes and it contains data from the database. how can i destroy or expire the data the moment i press back in the browser. 3. in …

Member Avatar for lloydsbackyard
0
177
Member Avatar for BadManSam

<?php include("include/session.php"); ?> <?php $db = new PDO('mysql:host=localhost;dbname=******x2_login', '******x2_login', '********'); $stmt = $db->query('SELECT value FROM settings WHERE value = "Login Script" '); $id = $stmt->fetchColumn(0); if ($id !== false) { echo $id; } ?> <?php if(isset($_POST['Submit'])){//if the submit button is clicked $update = "UPDATE settings WHERE value = 'Login Script' …

Member Avatar for minitauros
0
166
Member Avatar for kaneo

I don't know what I'm doing wrong here, but I'm having hard time trying to insert data from a form into the database.The $_session['username'] is set and the database is included and working Here is my table CREATE TABLE IF NOT EXISTS `accounts` ( `accid` int(11) NOT NULL AUTO_INCREMENT, `acc_number` …

Member Avatar for kaneo
0
352
Member Avatar for Swati_2

//page2 edit button code.. page2 send the data back to page1 if user wants to edit <a href="purchase_form1.php?id=<?php echo $id; ?>" class="button4">Edit</a> //page1 php code. here the form is on this page //This GET[id] is sent from page2 which is user view page of the form on page1. //If user …

Member Avatar for broj1
0
580
Member Avatar for andreiviziru

Hi i have a long script named **images.php** that handles the image manipulation and the following script to handle multiple images at once <?php // load the image manipulation class require '../../image.php'; // create a new instance of the class $image = new Zebra_Image(); $directory = 'jocuri'; if ($handle = …

Member Avatar for andreiviziru
0
220
Member Avatar for jc.viloria.9

Hi guys Can somebody help me fix my issue on my site becuase everytime I tried viewing it www.discoveringnorth.com.. it gives me this error message: Warning: require(/data/16/3/106/85/3106574/user/3463076/htdocs/wp-includes/version.php) [function.require]: failed to open stream: No such file or directory in /data/16/3/106/85/3106574/user/3463076/htdocs/wp-settings.php on line 23 Fatal error: require() [function.require]: Failed opening required '/data/16/3/106/85/3106574/user/3463076/htdocs/wp-includes/version.php' …

Member Avatar for TomH.PG
0
151
Member Avatar for lewashby

Any ideas on some good beginner projects for PHP? I'd like to at, some point in the future, get into front end development and although I have a little self taught programming knowledge I don't have any real work experience in I.T. or programming at all, just the programs you …

Member Avatar for diafol
0
175
Member Avatar for asaidi

Hi in my form i have an option that i can attach a file to my database and i can see the filename in my database and in my view..but i m trying to make a link on it in view that i can read it please check my code: …

Member Avatar for cereal
0
483
Member Avatar for h2k

<html> <body> <h2>Search</h2> <form name="search" method="post" action="<?=$PHP_SELF?>"> Search for: <input type="text" name="find" /> <input type="hidden" name="searching" value="yes" /> <input type="submit" name="search" value="Search" /> </form> <? //This is only displayed if they have submitted the form $find = $_POST['find']; $searching = $_POST['searching'] ; if ($searching =="yes") { echo "<h2>Results</h2><p>"; //If they …

Member Avatar for h2k
0
197
Member Avatar for pritaeas

The following code snippet shows how you can parse a DSN (Data Source Name). Why is it useful? You can now pass a single DSN parameter to your database wrapper class' constructor (instead of five separate parameters), and tear it apart into the components you need. The password and port …

1
1K
Member Avatar for GlenRogers

I have a for with 2 dropdowns, 'category' and 'subcategory' I'm trying to make my page that it shows records(products) in the table based on dropdown selection of the subcategoy dropdown. So for example all records beloning to the subcat wheels have a subcat_id of 4. Sunbcategory table and products …

Member Avatar for GlenRogers
0
319
Member Avatar for cmsc

Hi! I have to upload a file to a separate server and I was given access to its ftp. But to be able to access the ftp, I need ftp over ssl explicit. I tried to use curl to connect to ftp. I was able to pass through the 220 …

Member Avatar for cmsc
0
2K
Member Avatar for kiLLer.zoh_1

Hi all this is my index page it works fine but the only porblem is that when user close the tab without logging out then login.php page displayed with menu obove.i want to expire the session if user close the tab help me out please <?php session_start(); if(!isset($_SESSION['_LOGIN'])) { $_SESSION['_LOGIN'] …

Member Avatar for Atli
0
232
Member Avatar for ahmad.albab.87

hi, seems mysql_escape_string was deprecated ([http://php.net/manual/en/function.mysql-escape-string.php](http://php.net/manual/en/function.mysql-escape-string.php)) is there any alternative method? hope php developers can share with me. tq

Member Avatar for ahmad.albab.87
0
249
Member Avatar for BadManSam

Hi, I tried to convert timestamp into the actual date and time. <?php $connectmysql = mysql_connect("localhost", "********_login", "********"); mysql_select_db("********_login", $connectmysql); $timestamp = mysql_query("SELECT timestamp FROM blog_users WHERE username = '<?php session->username ?>', $connectmysql); $datetime = date("Y-m-d H:i:s", $timestamp); ?> This gets the user's username: $session->username But, then I get an …

Member Avatar for chrishea
0
193
Member Avatar for ronaldpaul

Hi, I'm facing a problem with one of the wordpress website I've developed. I activated "Cloudflare" from the cpanel for the domain http://www.kovaidonbosco.com/. After that, all the pages in the website are pointing to the home page. Please try to select different pages from the menu and see. I de-activated …

Member Avatar for cereal
0
281
Member Avatar for terryds

First, take a look at my code <?php try { $dbh = new PDO('mysql:host=$db_host;dbname=blogproject1','root',''); $dbh->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION); $dbh->exec('SET NAMES "utf8"'); } catch (PDOException $e) { die('Error: ' . $e->getMessage()); } if(!defined('GUEST')) { define('BASEPATH', dirname(dirname(__FILE__)); header('Location: ' . BASEPATH); exit(); } When it executed it gives me an error.. Looks like, the error …

Member Avatar for code_rum
0
160
Member Avatar for santosh.m

Can You Please exaplain what **0**(ZERO),geocode=**0**,33.32032770893669,-111.96618234118574) represents geocode parameters of below url https://maps.google.com/maps?f=d&hl=en&saddr=&daddr=7200+West+Ray+Road,+Chandler,+AZ+85226,+USA&geocode=0,33.32032770893669,-111.96618234118574

Member Avatar for almostbob
0
194
Member Avatar for Olagsfark

I've got a simple php script here that recieves a POST data from my ajax script. But i want to make sure that only my own ajax script can have a successful request from the page and not some other ajax scripts to avoid brute attacks as ajax requests are …

Member Avatar for Olagsfark
0
591
Member Avatar for OsaMasw

Hello there am working now on download script for some projects I have many option to do from limiting the speed or make the download resumable. everything works fine except for the resume download, I've tried many script and codes, none of them works :( here is my last code …

Member Avatar for OsaMasw
0
2K
Member Avatar for inihan

hi all, I am quite new into web development. And i need some help about a chat application. I think the is the 2 popular method in a chat application. one is with ajax and other one is socket. As i think of ajax chat its quite good, I as …

Member Avatar for inihan
0
189
Member Avatar for mpc123

HI I have an else if statement that all the results are coming out as the first if even though in the info row they are different in the table, hope someone can help. // showbanners if($row['info'] ="Some Apples") { $showbanners = '<img src="1.png"><br><br><img src="2.png">'; } elseif($row['info'] ="Some Bananas") { …

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

Hey guys, So close to the end with this! function JobBoard_admin_edit() { echo "<h4> edit </h4>"; ?> <form name="jobboard_form" method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>"> <?php echo '<select name="ID">'; $con_edit= mysqli_connect("localhost", "profiled_job","", "profiled_jobboard") or die(mysql_error()); $sql="SELECT ID,Employer FROM details"; $result =mysqli_query($con_edit,$sql); $employer_id = $_POST['ID']; while ($data=mysqli_fetch_assoc($result)) { echo …

Member Avatar for pzuurveen
0
188
Member Avatar for Octet

Hello Daniweb, I am facing a problem with my web host, 123-Reg and their basic Linux startup package. To summarise what this package contains, it is a small scale shared hosting environment with support for PHP. I am developing a content management system which writes data to a flat file …

Member Avatar for Octet
0
578
Member Avatar for hbm11

<?php include ( './includes/template_pageTop.php' ); if (isset($_POST['submit'])) { $username = $_POST['username']; $password = $_POST['password']; $check_username = mysql_query("SELECT username FROM users WHERE username='$username'"); $numrows = mysql_num_rows($check_username); if ($numrows != 1) { echo 'That User doesn't exist.'; } else { $check_password = mysql_query("SELECT password FROM users WHERE password='$password' && username='$username'"); while ($row …

Member Avatar for pritaeas
0
307

The End.