39,323 Topics
| |
When i m making contact from with database connection, 2-3 times it is executing properly but ,after that when i execute it again ,thn it is opening only multiple tabs in firefox .wht should i do nw plz help my web server is wamp | |
Hi, Installing a new script.... Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/content/13/11394913/html/config.php on line 4 Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/content/13/11394913/html/config.php on line 5 Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/content/13/11394913/html/config.php on line 4 … | |
Hi, I have been trying to integrate gravatar to my login system but it doesn't seem to work. Here is the code: <?php include("include/session.php"); $connectmysql = mysql_connect("localhost", "********_login", "*******"); mysql_select_db("********_login", $connectmysql); ?> <html> <?php $email = mysql_query("SELECT email FROM blog_users WHERE user = '$session->username', $connectmysql"); $default = "mm"; //This returns … | |
I wrote code in notepad and gave the extension as hello.php but it didn't change to web and so it did not run. Secondly ,I wrote code in Visual Studio asp.net web application <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="phphello._Default" %> <!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" … | |
Okay so I've been going through my HTML lately and I discovered that I was still using the <base> element to define my website's base path. I want to get rid of that - I would like to be able to use relative URLs all the time, without having to … | |
When i Open My Browser This Error Accourd . "Failed to execute query! ( -1)" plz help me to solve this issue ( UPDATE `name` SET `parentID`=[value-1],`id`=[value-2] WHERE 1) <?php /** * Handles creating and/or printing a Tree-Like HTML output, complete with * all necessary CSS styles. * * Assumes … | |
I am new to PHPUnit & unit-testing in general, I have got this problem, thankfully I can sense, the answer is out there, maybe with everyone has ever done their first tests. Here it goes: I have been trying to find tutorials for unit-testing with PHPUnit. And, so far all, … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
<?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' … | |
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` … | |
//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 … | |
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 = … | |
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' … | |
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 … | |
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: … | |
<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 … | |
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 … | |
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 … | |
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 … | |
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'] … | |
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 | |
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 … | |
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 … | |
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 … | |
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 |
The End.