39,402 Topics

Member Avatar for
Member Avatar for myuncleisbob

Hello, I have been searching for a solution on how to solve this problem for almost a month now. I'm at a point where I feel like I've traveled around the world 7 times and still haven't found the answer. I hate introductions so I'm just going to go ahead …

Member Avatar for myuncleisbob
0
117
Member Avatar for phpDave

Hi! I have a counter that increments by 1 for every page view. [CODE]$colname_Recordset1 = "-1"; if (isset($_GET['urlcode'])) { $colname_Recordset1 = $_GET['urlcode']; } mysql_query("UPDATE users SET counter = counter + 1 WHERE urlcode = '$colname_Recordset1'");[/CODE] It works in IE but counts twice in firefox the first time the page is …

Member Avatar for phpDave
0
115
Member Avatar for D4n1sD

Is it possible by any way to make a .php with all the data into it a .png Example: You got a php that the data displays in the order you want and u want to like screenshot it and post it into the main .php like a fucntion createphptoimg("test.php")

Member Avatar for Tekkno
0
148
Member Avatar for alexgv14

[CODE]<?php $jpg = $GLOBALS['HTTP_RAW_POST_DATA']; $img = 'MyPicture.jpg'; $to = $_GET['email']; //header("Content-type: image/jpeg"); //header("Content-Disposition: attachment; filename=".$img); //echo $jpg; $FromEmail = 'wcww@gmail.com'; $FromName = 'We Can Waste Wise'; $msg = 'We hope you will come play again!'; $subject = 'Your Recyclable Art!!'; $To = strip_tags($to); $HTMLMessage =''; $Subject =strip_tags($subject); $boundary1 =rand(0,9)."-" .rand(10000000000,9999999999)."-" …

0
76
Member Avatar for icestorm

Hi, I am new to encryption and have read a lot but still don't know what I'm doing. Just to clarify when using the keys is it just for a handshake between the client and server to allow access or does it affect the caesar cipher as well? because after …

0
71
Member Avatar for kristo5747

Greetings! I have a form that's meant to be a rudimentary search engine. The forms calls the piece of code below and outputs successfully the results in a new tab. [CODE]<?php //Includes the db config file $dbconf = include '.../config/dbConfig.php'; //checks if fields are set. if(isset($_POST['submit'])) { if( !empty($_POST['search_string']) ) …

Member Avatar for kristo5747
0
109
Member Avatar for niranga

Hi all, I am working on a PHP project. Im having a problem giving the 'src' for a image, because the image file is placed outside of the www folder :(. Let me explain more. When I log in to my server using FTP logins, it gives the directory structure …

Member Avatar for Owais_Khan
0
8K
Member Avatar for leeZA1

Hi, i need help please! i have a page were users can upload images, the name and path to where the image is stored is stored in the database. I want the aministartor to be able to view all of the images. when i try this it returns the path …

Member Avatar for genevish
0
85
Member Avatar for gajendra dharwa

[code] <?php $conn=<?php $conn=mysql_connect("localhost","root","") or die("could not connect:" . mysql_error() ); $sql=mysql_select_db('btche_db',$conn); $studet="SELECT id,pass FROM student2 WHERE id = '".$_REQUEST['stid']."' AND pass = '".$_REQUEST['stpass']."' "; $result = mysql_query($studet); while ($row=mysql_fetch_array($result)) { session_start(); $_SESSION['id'] = $_POST['stid']; $_SESSION['userpass'] = $_POST['stpass']; $_SESSION['authuser'] = 0; if(($_SESSION['id'] == $row['id']) and ($_SESSION['pass'] == $row['pass'])) { $_SESSION['authuser'] …

Member Avatar for genevish
0
52
Member Avatar for QWaz

Hi, I am a php newbie. The site is a sports site, and contains information on about 10 teams. However each team has it's own admin section. I would like to have 1 general login page that lets a user access the database that relates to their team. I don't …

Member Avatar for QWaz
0
96
Member Avatar for brahimhackman

hello everybody i have a big problem with the connection of mysql connect i want to connect to an other data base with out binding Ip adresse in the host server . i have an application and i want to manage 2 web sites with this appliction because the tow …

Member Avatar for brahimhackman
-1
115
Member Avatar for Waher

I am using Wampserver for my Windows Apache-PHP-MySQL stack. The file accessed has a header that defines it as utf-8, meta tag in HTML also defines it as utf-8. My best guess so far is that it has something to do with Apache. Searching through Google was of little help …

Member Avatar for nav33n
0
295
Member Avatar for Eris

Hi. I've got 2 classes that provide services and 1 wsdl file for both of them, 1 SoapServer and 1 SoapClient. When I do $server->setClass("Class1"); $server->handle(); I can call functions from Class1 in the SoapClient. But if I do $server->setClass("Class1"); $server->setClass("Class2"); $server->handle(); then I am able only to call the …

Member Avatar for brahimhackman
0
644
Member Avatar for AkhJ

Hello All, Greetings of the day! I am new to PHP & working on a project. What my senior had asked to do is to , creat a drop down menu. I did the same. And just below of drop down menu there is a Text Box, where user can …

Member Avatar for colweb
0
119
Member Avatar for niths

hi, i need to pass the radio button value to the 3rd page. by using post method i am getting it to the 2nd page. But i need to get it to the 3rd page also. so please can any one help me.. thank u..

Member Avatar for colweb
0
75
Member Avatar for QWaz

Hi, I am a php newbie. I am doing a sports site, and trying to get the team name to display in an admin area. I have tried the code below and many variations of it, however it continues to error the message : Notice: Undefined index: team in ... …

Member Avatar for colweb
0
97
Member Avatar for chequer

Using WindowsXP Pro SP3 Problem with javascrip I have installed Javascrip Ver 6.0.190.4 When I try to email a site to submit a query I enter the question but when I click on [NEXT] I get this error:mJavascrip:Void ( ) can you help

Member Avatar for chequer
0
65
Member Avatar for virspy

Hello Friends, I want to develop a facebook like site and what are the basic requirements to develop a site like that. did we have any easy ways to develop like integrating the applications please help me and provide nay helpful links Thanks in advance

0
57
Member Avatar for soley

Why would one file, which was made by, oh, I don't know, my teacher, work fine when uploaded to the server I need to store it on for my grade but when I try opening it on my local lamp server, it completely breaks? Here's a picture of what it …

Member Avatar for soley
0
104
Member Avatar for computerfox

hey guys, i had this working before, but when i added another bit, it stopped and now i can't get it to work again :( [code] //Put data into right tables mysql_query("SELECT* FROM inprogress"); mysql_query("INSERT INTO complete SELECT* FROM inprogress WHERE Status='Y' "); mysql_query("SELECT* FROM complete"); mysql_query("INSERT INTO inprogress SELECT* …

Member Avatar for CFROG
0
63
Member Avatar for ace_almario

could someone help me... I'm having a hard time displaying the products that I created in magento Thank you...

Member Avatar for chrishea
0
61
Member Avatar for dottomm

hello and thank you in advance to anyone who can help me with this problem. I've scoured the internetz for a while trying to find a solution to what must be a common question, but I can't find anything that relates to what I am trying to do. I have …

Member Avatar for dottomm
0
167
Member Avatar for jrb04c

While I've been working with MySQL for years, this is the first time I've run across this very newbie-esq issue. Due to a client demand, I must host their website files (PHP) on a IIS server that is not running MySQL (instead, they are running MSSQL). However, I have developed …

Member Avatar for jrb04c
0
147
Member Avatar for BigFormat

Hi all, I'd like to filter an input string with a list of commas separated numeric ids to understand if it matches the pattern (only digits and commas allowed, i.e. "112,5,16,4578,ecc"). I'm trying to perform a regular expression match using preg_match. [code=PHP] $ids_list = '112,5,16,4578'; if (preg_match('/[0-9,]*/', $ids_list)) echo'OK!'; else …

Member Avatar for BigFormat
0
170
Member Avatar for leeZA1

Hi, i have a database which stores admin account details when an administrator selects to view all acounts is there any way of changing the password do they cannot read them all??

Member Avatar for leeZA1
0
80
Member Avatar for chunalt787

I have the following php code: [CODE]$query = "INSERT INTO flashcards VALUES (null, '".$_POST['front0']."', '".$_POST['back0']."', ".$link.", ".$details.", NOW()); INSERT INTO bundleflashcardlink VALUES (null, ".$flashcardbundleid.", LAST_INSERT_ID());"; $result = mysql_query($query);[/CODE] which gives me the following error: [CODE]DB Connection error: You have an error in your SQL syntax; check the manual that corresponds …

Member Avatar for chunalt787
0
124
Member Avatar for niths

[QUOTE]hi all, i want to pass the value selected by radio button to url. so please help me. thank u..[/QUOTE] [CODE] <?php ob_start(); @session_start(); require_once ("check.php"); $con=mysql_connect("10.70.1.50","invensis","invensis"); if(!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("database_myproject",$con); $query= mysql_query("SELECT projectassign FROM projectassign where userid=(select userid from users where username='$username' and …

Member Avatar for cwarn23
0
97
Member Avatar for Asimina

Hi Guys, I Have a Database where i save Birth Dates like this: 12 Jan 2000 i want to display this on my page [COLOR="Red"]without[/COLOR] the[B] year[/B]. so lets say the only " 12 Jan " how do i do that? thanks

Member Avatar for diafol
0
119
Member Avatar for kardklub

this is what i have so far [CODE]<?php require "backend/functions.php"; dbconn(); $errmsg = ""; // get the .pdf #################### this is me getting my pdf############### $gotten = @mysql_query("select * from pdf order by pid desc limit 1"); $row = @mysql_fetch_assoc($gotten); $fileatt = $row[imgdata]; ################################################################ #but with this lines 27 28 …

Member Avatar for kardklub
0
141
Member Avatar for Folaju

Hi, I am trying to use accented characters on a URL link on a web browser. the links will be similar to this: [url]http://fr.wikipedia....3%A9n%C3%A9rale[/url] I am not sure what section to put this in but as the site is mostly PHP i added it here. I was wondering if anyone …

Member Avatar for theighost
0
66
Member Avatar for ursrathika

hai experts i have a problem to dropdown list, i have use this url coding [url]http://www.plus2net.com/php_tutorial..._down_list.php[/url] (download link --ajax dd) this process use two dropdownlist boxes , my problem is i want insert dropdownlist text only,but here they use get value... how to get dropdownlist text value....pls give me a …

Member Avatar for theighost
0
78
Member Avatar for eusb

Hey guys i'm having trouble with php. i made a script to check the database for simillar info and it was working fine until i added the " AND email = '$email ' " part in the mysql query . Now it just doesn't show anything ....no echo no nothing …

Member Avatar for colweb
0
268
Member Avatar for michael_r

hi i have got a form which looks like this: [CODE]<form action="<?php echo $_SERVER['php_self];?>" method="post"> <input type="checkbox" name="flight[]" value="kingfisher" /> <input type="checkbox" name="flight[]" value="Spicejet" /> <input type="checkbox" name="flight[]" value="AirIndia" /> </form> [/CODE] i need to generate a query which would select data based on the result of this form. for …

Member Avatar for urtrivedi
0
85
Member Avatar for Nuuk

I have recently moved my site to a new server. It was working fine on two other servers but on the new one I get the following error: [QUOTE]Parse error: syntax error, unexpected T_STRING in /home/a7247396/public_html/index.html on line 74[/QUOTE] The code in question was written by somebody else as I …

Member Avatar for Nuuk
0
102
Member Avatar for vrgopakumar

I have to call some c++ functions in php files. how can i create an extention dll which will work with php.

Member Avatar for theighost
0
223
Member Avatar for aquaticdeity

Hi all, I don't know whether my question belong here but any ways why every browser has a built-in regex engine? Why they have to find patterns in a http page?

Member Avatar for cwarn23
0
45
Member Avatar for CyanBot

Hi guys! I'm just trying to look at a php page on my local webserver. It was working fine yesterday. Now php files just display as whatever text is in the file. Since yesterday, I've installed GD. So I guess that's what broke it. So....what should I do now? Thanks …

Member Avatar for pclfw
0
103
Member Avatar for niths

[QUOTE]hi all, i having a problem. i hav selected a value by radio button and i should pass that value to the 3rd page. so i think i can get that by using session. so can any one help me. thank u.. [/QUOTE] [CODE] <td><input name="radio" type="radio" id="radio[]" checked="checked" value="<?php …

Member Avatar for prem2
0
131
Member Avatar for Encrypted

Alright, so I've got this dynamic form. My problem is.. the name could be anything between "1" to "100000" depending on what the output of a script is and which parts of the output the user chooses to select. What would you do to get all of the values from …

Member Avatar for Encrypted
0
110
Member Avatar for virspy

Hello friends, I have a strange problem i require the google search in my website but the search has to display only the sponsored links and the related search items. like in [url]http://www.ebuyers.com/[/url] can any one tell me the concept of how to get those results Thank u in advance

Member Avatar for theighost
0
89
Member Avatar for kumiyare

Hi, Every body. I am writing a PHP thumbnail script, My goal is to upload images to the server and save the original images inside images directory and save the thumbnail to thumb directory which is inside images directory. Now every thing working fine, except the BMP type images, when …

Member Avatar for phpuser
0
401
Member Avatar for star_lavender

hi...I have three different ph files that received value from those files... class_survey.php [CODE] <?php class surveyForm { function selectForm() { //query to display form } function insert_survey_result($rating, $form) { if($form=="survey1") { echo "form: $form"; //check whether the form passing at here is correct for($j=1;$j<=count($rating);$j++) { echo $sql1 = "INSERT …

Member Avatar for star_lavender
0
177
Member Avatar for Reliable

I know the include function can't completely replace a template, but in cases where there could be a choice which do you think would be more efficient?

Member Avatar for bjeffries
0
25
Member Avatar for tomkaczocha

Hi guys, I hope you can help me with a bug. I have an update form to update data in a mysql database. Whenever a user wants to update the picture they uploaded it through the html form. For some reason my mysql querie on line 67 is not updating …

Member Avatar for tomkaczocha
0
145
Member Avatar for tbelczak

I have way too many hours into this and I feel as though it is due to a configuration difference somewhere between the two servers. Here is code for two simple scripts: [B]TEST1.PHP[/B] [code=php] <?php session_start(); $cart[0] = array('item_number' => '12345', 'qty' => '5'); $_SESSION['cart'] = serialize($cart); header('Location: test2.php'); exit(); …

Member Avatar for tbelczak
0
222
Member Avatar for scrchrds

I am really new to php and am attempting to create a news reader on my site. I have gotten it running just fine in a page of its own, BUT, I need it to be inside a php include. How do I link different scripts and stylesheets in the …

Member Avatar for Tekkno
0
167
Member Avatar for Tekkno

[code=php] $results = mysql_query("SELECT column1, column2, date, time FROM table ORDER BY RAND() LIMIT 1"); $row_table = mysql_fetch_assoc($results); [/code] For some odd reason this does not return data, however if I change it to: [code=php] $results = mysql_query("SELECT column1, column2, date, time FROM table ORDER BY RAND() LIMIT 2"); $row_table …

Member Avatar for diafol
0
202
Member Avatar for rasheed0987

Salam to all. I m new to this forum. I m doing Php Mysql just for fun. I want to make a "login form and Register me" form . so plz tell me the simple code for it.

Member Avatar for colweb
0
47
Member Avatar for bjeffries

Well at least I think my troubles are with the get variable. I know my code is amateur I am very new to PHP and trying to learn as much as I can. So I am trying to create a photo gallery any having trouble with getting my get variable …

Member Avatar for bjeffries
0
349
Member Avatar for jpknoob

I'm trying to create a form that updates stock in mysql database. I have created the forms to upload new stcok and they work fine. However, i'm including a link that will take the user to an update php that will then update the required fields, but i can't seem …

Member Avatar for diafol
0
99

The End.