39,316 Topics

Member Avatar for
Member Avatar for geekme

Hello,I've created a php file in textWrangler saved with .php extension on the desktop.But it does not open in the browser? Please help.

Member Avatar for mikulucky
0
131
Member Avatar for akhtar.ali803

my code is following [CODE]<?php $conn = mysql_connect("localhost","rentwall_rentwal",")X7zlBx)XgZ5") or die ("Could not connect MySQL"); mysql_select_db('rentwall_rentwall',$conn) or die ("Could not open database"); function post($postname) { $posted = mysql_real_escape_string($postname); return $posted; } ?> [/CODE] it gives notification that Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'rentwall_rentwall'@'localhost' (using password: YES) in C:\wamp\www\site2\db.php on …

Member Avatar for phorce
0
163
Member Avatar for blee93

I just started learning PHP and I tried looking for answers, but couldn't find any. When i type in [CODE]<?php echo '<p>Order processed.[/CODE] embedded into HTML, it works fine, but when I put [CODE]<?php echo '<p>Order processed.</p>' ?>[/CODE] it always has the closing tag '?> shown in the browser. Is …

Member Avatar for mikulucky
0
397
Member Avatar for shnips6

I have created an online form and am trying to post the info into a mysql database and I keep getting back a query error. Below is my PHP code. If anybody can help me, that would be great. Thanks a lot. [CODE] <?php $property_type = $_POST['property_type']; $number_of_bedrooms = $_POST['#_of_bedrooms']; …

Member Avatar for diafol
0
276
Member Avatar for ginG3R

Hello, Am new to php and I have a question that is probably very easy. I have been watching tutorials online to learn how to work with databases, but none of them speak on how to upload to server. This is my problem: am using vertrigoserv but specifically using PHPMyAdmin …

Member Avatar for ginG3R
0
226
Member Avatar for gilgil2

Hi I am using the following code to try and log out users but it is not working, any ideas why? [CODE] <?php session_start(); if(isset($_SESSION['authenticated'])) unset($_SESSION['authenticated']); echo 'you are not logged in'; ?> [/CODE] The code I used to start the session is: [CODE] $_SESSION['authenticated']=true; [/CODE] And that seems to …

Member Avatar for gilgil2
0
82
Member Avatar for Stefano Mtangoo

Hi Buddies, here is my happy new year greetings to all PHP friends. Love you and enjoy DW! $greetings = "Have nice year full of projects and less stress <br /> Enjoy!"; if(!$is_dead && $is_visiting_dw){ echo $greetings; }else{ die("Dead people do not browse internet!!"); }

Member Avatar for qazplm114477
0
175
Member Avatar for sirlink99

I am making a website, and I would like to figure out what size the display portion of the browser is. Here is more of an idea of what I mean tabs and menu widgets if they have any browser window bottom portion of web browser I would like to …

Member Avatar for qazplm114477
0
96
Member Avatar for haimz

I tought about cURL, but i couldn't wrote ascript that works. I need aphp script that makes like to agroup Thanks to helepers.

Member Avatar for StephNicolaou
0
88
Member Avatar for davy_yg

Hi, This is the website that I created: [url]http://www.masterlink.co.id/cgoods/index.php[/url] index.php [CODE] <?php //start session session_start(); //unset any session data until user submits valid username and password // this is correct way not unset($_SESSION), sorry my mistake // see http://www.php.net/manual/en/function.session-unset.php session_unset(); session_destroy(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> …

Member Avatar for HITMANOF44th
0
223
Member Avatar for sugumarclick

Hi all, I am dealing a small issue. I am missing something silly :). My need is that I want the entire lines between <TABLE> </TABLE> with no modifications. [CODE]<?php $some_string = <<<STR <HR noShade size=2> <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 BGCOLOR="" > <TR BGCOLOR="c1ffcc"> <TH ALIGN="LEFT" COLSPAN=22> <font face="Arial,Helvetica,Geneva,Swiss,Verdana" size="2" …

Member Avatar for pritaeas
0
198
Member Avatar for BenzZz

Hi, As part of a project i am developing a taxi booking system. A part of it i am struggling to even think of what to do for is knowing distances between two real addresses e.g. Birmingham and Manchester for reasons such as calculating prices. Obviously it would be impractible …

Member Avatar for BenzZz
0
148
Member Avatar for srdva59

hi, i have a class file that have all values from a database fields. for example: class mospedidos extends mosDBTable { id = null; date =null; } class mosunder extends mosDBTable { id = null; name =null; } each time i creat a new field in the database i need …

Member Avatar for hakeemtunde
0
190
Member Avatar for Jashandeep

Hi All ! I would like to ask about the security level in php websites.What are the various techniques which can be used to make the security level high? Thanks in advance...

Member Avatar for pritaeas
0
72
Member Avatar for davy_yg

I am having error in proseslogin.php Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/sloki/user/masterli/sites/masterlink.co.id/www/cgoods/proseslogin.php:3) in /home/sloki/user/masterli/sites/masterlink.co.id/www/cgoods/proseslogin.php on line 6 Di sini blok aplikasi setelah login dilakukan Anda berhasil menjalankan! Warning: Cannot modify header information - headers already sent by (output started at …

Member Avatar for davy_yg
0
74
Member Avatar for McLaren

Wordpress should be the thing to make websites fast. But I already wasted 3 hours with it not finding, why it shows a blank page. What I did is I copied the files, even recopied the system files from fresh instalation, copied database from ftp to local server. Changed siter …

Member Avatar for McLaren
0
139
Member Avatar for naveed78

Connection String define('HOSTNAME', 'localhost'); define('USERNAME', 'khabarez_naveed'); define('PASSWORD', 'naveed'); define('DATABASE', 'khabarez_naveed'); $dbLink = mysql_connect(HOSTNAME, USERNAME, PASSWORD); mysql_query("SET character_set_results=utf8", $dbLink); mb_language('uni'); mb_internal_encoding('UTF-8'); mysql_select_db(DATABASE, $dbLink); mysql_query("set names 'utf8'",$dbLink); Select Query $query ="SELECT * FROM test"; $result=mysql_query($query) or die ("Connection to database table failed. 106." . mysql_error() ); while($row = mysql_fetch_array($result)) { //$result_no=mysql_query("select count(*) …

Member Avatar for almostbob
0
169
Member Avatar for mayreeh
Member Avatar for EnjoyYourMeal
0
113
Member Avatar for extjac

Hi there, happy new year to all! I started using PDO few weeks ago, and I am trying to figure out what is the best way to use it....I just put 3 samples bellow and I was hoping you can tell me what is the most secure and professional way …

Member Avatar for Stefano Mtangoo
0
184
Member Avatar for gilgil2

Hi I am looking for a script to register new users using MySql and a script to log them in and assign cookies to remember them. I have found a few scripts but nothing completely suitable as I want it to check that there is no username already in table, …

Member Avatar for Stefano Mtangoo
0
188
Member Avatar for inni2626

Hello everyone, I created a form for taking an order lunch.Everything works fine only i get an error on my php file on the array section. [COLOR="Red"]Notice: Undefined index: drink in lunch.php[/COLOR] I don't see i have missed anything, but i hope someone might be able to spot my mistake.Please …

Member Avatar for magento12
0
243
Member Avatar for pauls9

I need to get values from a textfield and put it in a function, this can be done pressing enter or clicking in a button that insert the value of the textfield in the said function.

Member Avatar for phorce
0
119
Member Avatar for showman13

This is more about suggestions than it is about having an issue that needs resolving. Happy New Year Everyone...:) I have recently finished up on the basic programming of a membership site, and they have launched without issue.(Thank God)... BUT, I have a few things that I would like to …

Member Avatar for showman13
0
324
Member Avatar for s0bigg

I am using a php code to perform search queries through MySQL database. The database consists of a product title, url, posted date and store name. The query is looking at the title and returns relevant results. I want to add a sorting feature on my page that will allow …

Member Avatar for diafol
0
167
Member Avatar for sgonser

Hello, I'm not sure if this is a php issue, but I would like to set up a page that will allow for a 1 time download (say give someone 1-2 hours to download a given video file after purchase). I'm thinking it would need to be a code that …

Member Avatar for diafol
0
98
Member Avatar for master-tech

OK.. so this is probably basic but, I can't seem to wrap my head around it. The URL is like this.. [url]http://Whatever.com?id=ThisID&title=AncorText[/url] So.. I'm trying to use.. [CODE]<?php $id = $_GET['id']; $title = $_GET['title']; echo $id; echo $title; ?>[/CODE] .. to place the variable parameters into a hyperlinked URL on …

Member Avatar for master-tech
0
222
Member Avatar for imanegr

Hello I am calling a nusoap method in my script and I want to run some code if the method timed out and There was no answer of web service .So my question is that how I can check if a function is timed out in PHP . Thanks.

Member Avatar for pritaeas
0
63
Member Avatar for shielaolid

[CODE]<?php $db=mysql_connect('localhost','root','') or die('Cannot connect to MySQL!'); @mysql_select_db('dbriomra')or die('Cannot connect to database'); // Retrieve username and password from database according to user's input $login = mysql_query("SELECT * FROM login WHERE (username = '" . mysql_real_escape_string($_POST['compid']) . "') and (password = '" . mysql_real_escape_string($_POST['pword']) . "')"); // Check username and password …

Member Avatar for shielaolid
0
205
Member Avatar for learner guy

i want to assign content of one div to another div ..lets say div 1 to div 2 just like in twitter when you type something and press "Tweet" a div is created and has the content of textbox .. how can i implement in php

Member Avatar for EvolutionFallen
0
72
Member Avatar for RazorRamon

hello, I have a situation that i'm wondering if there's a solution. I have specific databases for different cities in texas. I plan on adding more but i do not nkow how many more or what their names will be. Every city is going to have the same tables in …

Member Avatar for pritaeas
0
76

The End.