39,320 Topics

Member Avatar for
Member Avatar for Bazzaah

Hey there I'd appreciate some help with variables please. I have a search function on a site I'm building and would like to have it so that a user can click on a search result to see more columns from that row on the db, if you see what I …

Member Avatar for Bazzaah
0
107
Member Avatar for gilgil2

Hi, I have the following code to edit a .txt file, but it says there is an error on line 34, I am not sure what it is. Also there are bound to be other problems with the code, so please feel free to point them out. [CODE]<? if ($_POST['pw']!="") …

Member Avatar for gilgil2
0
2K
Member Avatar for zsgamer

Errors: imagepng(): supplied argument is not a valid Image resource in /home/publicr/public_html/dynsigs/anything.php on line 29 Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/publicr/public_html/dynsigs/anything.php on line 29 PHP: [CODE] <php><?PHP function sql_sanitize( $sCode ) { if ( function_exists( "mysql_real_escape_string" ) ) { // If PHP version > …

Member Avatar for Ezzaral
0
1K
Member Avatar for jacksantho

i have a little form with a select list, and i am submitting the form every time i select an item. the problem is that, after selecting a value and submitting the form, the selected item doesn't remain selected. Is there any method to keep the selected item selected in …

Member Avatar for almostbob
0
14K
Member Avatar for miles.fuentes

So I have this code: [code]<html> <head> <style type="text/css"> <!-- a:link {color: #000000; text-decoration: underline; } a:active {color: #0000ff; text-decoration: underline; } a:visited {color: #000000; text-decoration: underline; } a:hover {color: white; text-decoration: none; } --> </style></head> <body background="img/bg3 .jpg"> <font face=Verdana size=2> <b>Login</b><br><br> <form action="plogin.php" method="GET"> Username:<input type="text" name="cust_uname"><br><br> Password:<input …

Member Avatar for Timroden
-1
148
Member Avatar for klemme

I have some really big problems changing the appearences of my urls.. Cant seem to get this to work: I want to change this url: [url]http://www.enkelt-webdesign.dk/index.php?sid=1&titel=FORSIDE[/url] Into this url: [url]http://www.enkelt-webdesign.dk/Forside[/url] I have tried many things in my .htacess file now, and just dont get the desired result. This is what …

Member Avatar for madCoder
0
86
Member Avatar for dwlamb

This isn't really a PHP question but I couldn't find the right place for it. I'm getting these strange characters -  - in my source code before the Doctype tag. I've encountered this before when working in Notepad++ using ANSI as UTF-8 or similar formats with BOM for encoding. …

Member Avatar for dwlamb
0
217
Member Avatar for Emma Johns

Hello every one, i am an seo person but i want to learn php too as a beginner. so please advice me some helpful techniques to learn it from the beginning. thank you

Member Avatar for diafol
0
114
Member Avatar for eduard77

I try to install smarty and when I write the require code I cannot find the path [CODE] require_once ('d:/wamp/bin/php/php5.3.5/Smarty-3.0.8/Smarty.class.php'); [/CODE] or if you could tell me which is the correct syntax in the ini.php page. Thanks

Member Avatar for diafol
0
90
Member Avatar for jacob21

is it possible for me to send SMS by using PHP code ?? If yes, could anyone guide me how can i do so ?? Thanks

Member Avatar for george.clrksn
0
181
Member Avatar for jcarbillon

I'm a newbie in PHP, I have a dynamic textbox which looks like these name="name1" name="name2" name="name3" the number of fields depends on how many user wants but the problem is on the SQL script, I need to put the $ctr besides "$_POST[name]" in order for the compiler see all …

Member Avatar for diafol
0
114
Member Avatar for cgull

Hello, I have a new website that I have created, and when I test it and submit the contact form I get this error: Warning: Cannot modify header information - headers already sent by (output started at /home/breadan1/public_html/clunyanimaltrust.za.org/index.php:7) in /home/breadan1/public_html/clunyanimaltrust.za.org/content/fgcontactform.php on line 143 I googled it, tried everything that I …

Member Avatar for cgull
0
492
Member Avatar for pxndx

where can i find information about creating a Website Manger of content? kinda like wordpress but simple

Member Avatar for cgull
0
144
Member Avatar for AndreRet

I have been so stupid to hit go at the bottom after I added a new user, deleting all users including root. I have re-installed xampp twice, tried to change the password via the xampp security, still with no success. xAmpp loads perfect on [url]http://localhost[/url], phpMyAdmin though shows the following …

Member Avatar for WebStudio
0
2K
Member Avatar for Sorcher

[ICODE]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-userfile WHERE id='642' AND userid='459'' at line 1[/ICODE] This is the code [ICODE] $query = "SELECT * FROM ue-userfile WHERE id='$imageid' AND userid='$userid'"; $result = …

Member Avatar for Sorcher
0
68
Member Avatar for Raim

I've been working PHP in Dreamweaver. I've stumbled upon a problem though, the webpage itself runs smoothly in Internet Explorer 6.0, but when I try Firefox, Chrome, Safari, or even the latest IE version, it has certain errors such as not scrolling through the page, certain images jack into others …

Member Avatar for Raim
0
188
Member Avatar for klemme

I have this while loop, and it is only returning the last row... Havent experienced that before, but here it is, looks fine to me? [CODE] <?php // NAVIGATION: $subjectset = mysqli_query($connection, "SELECT url, link FROM subjects ORDER BY id ASC"); while($subject = mysqli_fetch_array($subjectset)){ $url = $subject['url']; $link = $subject['link']; …

Member Avatar for klemme
0
166
Member Avatar for phaedrusGhost

Hi All, I am using a loop to display professionals and their data on a webpage. I have a "Recommend" button that is included in this loop and when clicked, displays a jquery POPUP form that will email the chosen professionals data. My trouble is, when I click the "Recommend" …

Member Avatar for ddymacek
0
161
Member Avatar for nblackburn

Hello, im having a problem with php's file_exists and is_file, it seems to be passing if a file was not specified, i looked into the official php documentation to find file_exist and is_file can also check i directory exists but i dont want this i just want to check if …

Member Avatar for nblackburn
0
19K
Member Avatar for spawn2004

Hi all, i need some help with my php code. I want to create upload form with 4 fields : two dropdown buttons, 1 text field and the browse button. I have problem with validating my files ,because i want only to upload pptx, ppt and pdf files , to …

Member Avatar for ddymacek
0
143
Member Avatar for digital_plunder

i m trying to fetch a image from mysql (blob) with header..here is my coding..."<?php include("db.php"); $query=mysql_query("select * from table where id='3' "); $row=mysql_fetch_array($query); $r=$row['image']; header("content-type:image"); echo $r; ?>" i want to fetch another fields from the database....but when i try to echo another fields...the page shows error or it …

Member Avatar for ddymacek
0
100
Member Avatar for stephen_UK

I would be grateful if someone could suggest what I need to do to get this to work. I have copied two short scripts which should demo the use of $_session, but the read script does not work. I believe the save script is the culprit though. Here they are: …

Member Avatar for Rhamises
0
140
Member Avatar for davy_yg

[CODE] <div id="nav"> <form action="login.php" method="post" name="login" target="_self" id="login" style="style.css" title="login"><br /> user : <input type="text" name="user" id="user" /> <label>password <input type="text" name="password" id="password" /> </label> <p>&nbsp;</p> <li><a href="#">Homepage</a></li> <li><a href="#">Blog</a></li> <li><a href="#">About</a></li> <li><a href="#">Contact</a></li> </form> </div> <div id="content"> <h2>content</h2> <p>&nbsp;</p> <div id="content1">Content for id "content1" Goes Here</div> <div id="content2">Content …

Member Avatar for diafol
-2
133
Member Avatar for shahbaz13

Hi, I am trying to display images from my db with the following code.. [CODE] <?php include_once("scripts/connect.php"); if ($q == "All Images") { $sql = mysql_query("SELECT * FROM gallery"); $q = "All Images"; } else { $sql = mysql_query("SELECT * FROM gallery WHERE caption LIKE '%$q%'"); } $limit = 7; …

Member Avatar for shahbaz13
0
102
Member Avatar for dags4

I am having problems when I run my salesreport.php [QUOTE]A PHP Error was encountered Severity: 8192 Message: Assigning the return value of new by reference is deprecated Filename: controllers/salesreport.php Line Number: 390 [/QUOTE] I checked line 390 and here is the code [CODE]$pdf =& new Cezpdf('LETTER', 'landscape');[/CODE] What should I …

Member Avatar for diafol
0
151
Member Avatar for gorleone

Hello guys, last time I learn php and make some scripts that work on my localhost, but not in a hosting which I use. Example: checklogin.php: [code]<?php ob_start(); $host=""; $username=""; $password=""; $db_name=""; mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); $myusername=$_POST['myusername']; $mypassword=$_POST['mypassword']; $myusername = stripslashes($myusername); $mypassword = stripslashes($mypassword); $myusername …

Member Avatar for diafol
0
380
Member Avatar for edn_781

Hello.. Everyone.. I am very new to PHP world.. I have got a lesson to Saving images in folder and paths to database.. I have tried a lot.. I have tried various websites but there has no complete solution! Will you provide me the proper code?

Member Avatar for edn_781
0
168
Member Avatar for rakwel10

Im checked my sql, its working fine. But im still getting this error: [COLOR="Red"]Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in..[/COLOR] [CODE] $sql = "SELECT date FROM tbl_tour_profile"; $result = mysql_query($sql); confirm_query($result); // this is the die function of sql $i=0; while($date_set = mysql_fetch_array($result)) { }[/CODE]

Member Avatar for diafol
0
81
Member Avatar for masterjiraya

I have no idea if it is possible to post selling product if there's no human operation. What I mean is this scenario. this is a bookstore that wants to create an online page of shopping cart for their own. Among the thousands of items in that bookstore that is …

Member Avatar for pritaeas
0
239
Member Avatar for Jeroen van Zijp

Hey all! What I am working on is a contact form with file upload functionality. (e.g. user should be able to upload a screenshot.) Uploading a file should not be mandatory. So the mail which is produced from the entered information in the form should be sent without an attachment …

Member Avatar for soul2life
0
136

The End.