39,316 Topics

Member Avatar for
Member Avatar for rakibtg

how to make a php link which will open in new tab what should be the php code to open a link in new tab. how i can make a link in php which will open in new tab?

Member Avatar for Caeon
0
143
Member Avatar for saideepthi.bits

hi, i have a page which shows user details(div1) by default there will be an admin who enters username and pwd and then a new div(div-layer) is displayed. also ,a user can edit his data by pressing edit button on which he will be displayed div2 and div1 will be …

Member Avatar for saideepthi.bits
0
234
Member Avatar for curious_me

Can Somebody help me with my PHP project. what I want is to make a database query's result to be randomly distributed to an html table. and then save the whole table in a database just like this. Query Result Query Result Query Result to Data Data Query Result Data …

Member Avatar for Caeon
0
74
Member Avatar for websurfer

I', am a newbie and trying to get a better understanding of securing mysql queries vs. injections. I found this code here below, which seems to work nicely and makes it possible to automatically "clean" all inputs coming thru `$_GET`, `$_POST` and `$_COOKIE`. But in some forums I was told …

Member Avatar for websurfer
0
152
Member Avatar for philip.s

Hi guy's, I am missing something, what on earth is wrong with this script, I can not get it to insert all my values into a table. [CODE] $host="localhost"; // Host name $username="root"; // Mysql username $password="1234"; // Mysql password $db_name="database"; // Database name $tbl_name="input table"; // Table name $que …

Member Avatar for Caeon
0
81
Member Avatar for shipy013

How do I create a constant No direct script access allowed. As is the Joomla CMS.? [CODE] // no direct access defined( '_JEXEC' ) or die( 'Restricted access' );[/CODE] [CODE]if ( ! defined('BASEPATH')) exit('No direct script access allowed');[/CODE]

Member Avatar for hielo
0
7K
Member Avatar for musubi

Hi, I am a college student who wants to install a local testing environment for PHP, using something like XAMPP (on Windows) so I can just mess around with PHP and MySQL. The problem is when I install it, by default the site can be accessed by typing in my …

0
54
Member Avatar for Dega

Hey. So basically I am working on a simple project, I am no PHP expert, I only know a bit of the basics. This project is simply a "performance monitor" script. I have the parts to add records etc. I am now starting to tackle the next phase of the …

Member Avatar for Dega
0
88
Member Avatar for Viruthagiri

Ok guys I'm getting trouble with my php echo command. All the codes after the first echo command, displaying in browser. I mean i have problem with my php echo. I tried in several scripts. I'm using wampserver 2.0. I've given the example of my error. Please solve it ASAP. …

Member Avatar for Viruthagiri
0
179
Member Avatar for devilish demon

[url]http://pakcom.pk/clients/saddar%20site/[/url] please have a view of this web-survey simple coding and let me know what problem it has that it does not send any info to my email address which i have specified in mail function and not even echo the message of "thankyou for feedback" please rectify my mistakes …

Member Avatar for P0lT10n
0
69
Member Avatar for sajohnson05

I am getting this as my output from the code below and i need to get just the first and last column. This is my first time useing fgetcsv so any help would be great. Array ( [0] => 1~Joe~Salem~VA~Captain ) Array ( [0] => 2~Sara~Vinton~VA~Lieutenant ) Array ( [0] …

Member Avatar for hielo
0
96
Member Avatar for Viruthagiri

Guys I have 2 files. index.php and connect.php I'm getting database connection error. This is the error i got [QUOTE]Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in H:\wamp\www\index.php on line 3[/QUOTE] Then i added the error detection code in the third line. I got the following …

Member Avatar for richieking
0
197
Member Avatar for 00100110

Hi guys, I'm currently working on an online shop project. I'm kinda stuck on the payment part. I need to make it possible for people to pay with visa and credit card. Only problem is, i have no clue on how to start with programming this. Or maybe there are …

Member Avatar for 00100110
0
71
Member Avatar for curious_me

Please somebody help me how to get the values of Radio Button arrays. here are my codes [CODE]<?php include("conn.php"); $query = "SELECT * FROM pointsprof, subject WHERE pointsprof.Total >= subject.IM108"; $result = mysql_query($query) or die(mysql_error()); $row = mysql_fetch_array($result) or die(mysql_error()); do {echo '<form action="subjectload.php" method="POST" name="theForm" onsubmit="return validateFormOnSubmit(this)"> <form id="form1" …

Member Avatar for richieking
0
1K
Member Avatar for mahe4us

Hi everyone, I have set the email piping to script in cpanel. Also in script i send a acknowledge mail to me to confirm whether the script works or not. But the script works fine and i have received the mail to my inbox. I got one more mail which …

Member Avatar for kerryJames
0
330
Member Avatar for mickeyci

I have no problem connecting to database, and the form is okay i guess. ¿Do anybody see the problem in here? It keeps returning me ERROR! PHP code: [code=php] <?php mysql_connect("$host", "$mysql_user", "$mysql_pass")or die("Error connecting."); mysql_select_db(users)or die("Can't access to database."); if($id) { $sql = 'UPDATE members SET '; $sql .= …

Member Avatar for anojs
0
165
Member Avatar for dschuett

Ok, so I will do my best at explaining this... I have set up a database of our company's Parts Ordered forms. I have created a php form that allows users to inject new POs into the database. Which works successfully. I am working on the search form to allow …

Member Avatar for richieking
0
3K
Member Avatar for RossCode

Hello, I need some help understanding how to display information from the following array and what this method of storage and array is called. The information held in the database looks like this [CODE]{"option1":"1234","option2":"ABCD"}[/CODE] How do I work with these values? I know how to get the array as a …

Member Avatar for Kieran Y5
0
121
Member Avatar for akvlko
Member Avatar for akvlko
0
158
Member Avatar for pbcomput

Hi all, I m newbie in .htaccess i am using .htaccess to make url SEO friendly. I can access admin in localhost of my pc. but when i put all this files to my server i can't access admin. it shows me white blank page. without any message or error. …

Member Avatar for pbcomput
0
39K
Member Avatar for veerpavan

//code for yourditor.php <?php //This section should deal with the MagicQuotes and slashes function nukeMagicQuotes() { if (get_magic_quotes_gpc()) { function stripslashes_deep($value) { $value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value); return $value; } $_POST = array_map('stripslashes_deep', $_POST); $_GET = array_map('stripslashes_deep', $_GET); $_COOKIE = array_map('stripslashes_deep', $_COOKIE); } } ?> <?php nukeMagicQuotes(); …

0
49
Member Avatar for sinZ

I'm trying to have my code display all pictures for a specific ID, this is the current code that is only showing a single picture to be displayed, how can I get it to display the others as well? thanks [CODE]<?php $id=$_REQUEST['id']; $result=mysql_query("SELECT * FROM gallery_work_thumbnail WHERE id=$id"); while($row=mysql_fetch_array($result)) { …

Member Avatar for Lsmjudoka
0
98
Member Avatar for prakashsd

Hi, I've bought a hosting space from a hosting space provider for my website. It is a Windows 2008 Server. I have an enquriy form that needs to be submitted to my email. I'm using a simple php mail program for that. But I'm getting "HTTP Error 500.0 - Internal …

Member Avatar for hielo
0
139
Member Avatar for ivan3510

Hi! Sory for my bad english. Is it posible to make in php a html compiler (program that will check if there is lexical or semantic mistakes)? (eg. If someone write: "<html><haed>", the program will check and write message that is error in code and that must be writen "<html><head>"). …

Member Avatar for ivan3510
0
122
Member Avatar for Capt Spaghetti

Thanks to a forum member I have moved a little forward but now I am stumped on how to convert a passed value to a variable so it can be used to search a MySQL database. When I use the passed variable as the value I receive the following error: …

Member Avatar for Capt Spaghetti
0
130
Member Avatar for zive_te88

Hi, My name is Zivko and I have a question for You. I'm working on a projekt. I have to do an application in php. It is supposed to be like this: I have a php web site.In that web site i have a large textbox or message text area. …

Member Avatar for chrishea
0
429
Member Avatar for ceeandcee

Good Morning, I am hoping someone can help me. I am not even sure if this is possible. I am building a hockey pool site and I would like to automatically update the value of a variable once a week or 26 times. I would like to use the clock …

Member Avatar for ceeandcee
0
107
Member Avatar for arunpatyal1987
Member Avatar for panhwer89

Hi dear all.. I have done email attachment in php, code is working fine but output is not coming fine. here is code. <?php $fileatt = "file/imagelks.jpeg"; // Path to the file $fileatt_type = "application/octet-stream"; // File Type $fileatt_name = "imagelks.jpeg"; // Filename that will be used for the file …

Member Avatar for Zagga
0
124
Member Avatar for Jack_1

I want to make a program that takes the input ie Username and Password from user , there is a submit button and if everything is correct then user should be able to access another webpage . A rough blueprint is- <form> Username:<input type="text" name="name"size="15"><br> Password:<input type="password" name="pass"><br> <input type="submit" …

Member Avatar for Zagga
0
77

The End.