262 Posted Topics

Member Avatar for dancks
Member Avatar for kischi

Looking at the site from where the code comes from : http://www.verot.net/php_class_upload_docs.htm You could use: $handle->image_watermark_x = 5; //change to fit your needs $handle->image_watermark_y = 5; //change to fit your needs Instead of >$handle->image_watermark_position = 'BR'; Which is a fixed predetermined location.

Member Avatar for Squidge
0
367
Member Avatar for muhammad.waleed.9699
Member Avatar for JayJ

JayJ, have you tried using `return` on the variable you want to pass out?

Member Avatar for JayJ
0
154
Member Avatar for ronak.patel.946
Member Avatar for jstfsklh211
0
264
Member Avatar for vthakor115
Member Avatar for ome2012
-1
152
Member Avatar for Squidge

hi all, I have a scrap working but it also brings the restred trade mark. I have permission from the company to do this. How do i strip these out? // get simple_html_dom from http://simplehtmldom.sourceforge.net/ include_once('simple_html_dom.php'); // @todo change $url for form input $url = ""; $html = file_get_html($url); // …

Member Avatar for Squidge
0
366
Member Avatar for furianera

@furianera; Could you post your code? I am in need of a scrape that deals with multiple tags

Member Avatar for Squidge
0
167
Member Avatar for squeak24

You dont actually seem to be using any of the POST data. Or have you not put all your code?

Member Avatar for squeak24
0
232
Member Avatar for andyy121

**@andyy121** >@LastMitch aahhahhahahahaha you are such a big fail the problem wasnt in SELECT ect ect >Good Luck, I don't know what else to say.THIS IS FOR YOUUUUUUUUUUUUUUUU And that is how you treat people who try and help. Mate you are a sad person. Shooting people down that try …

Member Avatar for LastMitch
-1
393
Member Avatar for andyy121

andyy121: `mysql_real_escape_string` will require a database connection. I would suggest you approach from a different angle if (isset($_POST['keyword'])){ $keywords = strip_tags(trim($_POST['keywords'])); echo $keywords; // remove the '' } else { echo "Keywords is empty"; }

Member Avatar for andyy121
0
266
Member Avatar for monish.punjabi

Error? Reason for posting? Although the $sql looks like it wont work is that correct?

Member Avatar for diafol
0
132
Member Avatar for andyy121

http://www.daniweb.com/web-development/php/threads/433073/-failed-to-open-stream

Member Avatar for andyy121
0
311
Member Avatar for andyy121

Is your call correct? Is funck.inc.php in the same folder as the script calling it?

Member Avatar for andyy121
0
583
Member Avatar for ag99110011

Yes, well done. Although that will only work if you have short tags enabled other wise you have to use `<?php ?>`

Member Avatar for diafol
0
78
Member Avatar for theundeadelvis

As a strating point $dbQuery = "Select MainDB.SeatingCap, MainDB.ID, MainDB.Building, MainDB.Room, MainDB.ID, "; $dbQuery .= "BuildingDB.BuildingName, BuildingDB.BuildingAbv, MainDB.Wheelchair, "; $dbQuery .= "MainDB.Lighting, MainDB.AdditionalInfo, MainDB.Contact, "; $dbQuery .= "LightingControlsDB.LightingControlsID, LightingControlsDB.LightingType, MainDB.Windows, WindowDB.WindowID, "; $dbQuery .= "WindowDB.WindowTreatment, MainDB.FP"; $dbQuery .= " from MainDB "; $dbQuery .= "Left JOIN BuildingDB on MainDB.Building = …

Member Avatar for Squidge
0
203
Member Avatar for escalanterj

How are you holoding the $_SESSION data? Could you find a uniformed naming for it?

Member Avatar for escalanterj
0
539
Member Avatar for devianleong
Member Avatar for iamthwee
0
147
Member Avatar for Navlag

I am still finding my way with OOP, but it looks like a base login validater class/function that creates a database connection and validates against the form input, although this is only a fraction of the class.

Member Avatar for Squidge
0
185
Member Avatar for Squidge

Hi all, I am in need of assistance. I am trying to configure PEAR with XAMPP 1.8.0 on Win 7 64Bit. I download the go-pear.phar (http://pear.php.net/manual/en/installation.getting.php) and ran the instructions. Updated my env path. All looked ok. Tried to run `pear help` and i get nothing, no error, not a …

Member Avatar for Squidge
0
410
Member Avatar for hopetob
Member Avatar for Marty1963
Member Avatar for diafol
0
427
Member Avatar for debal
Member Avatar for simplypixie
0
10K
Member Avatar for vishalonne

I thought `session_start()` had to be the first line before any output? **Note: To use cookie-based sessions, session_start() must be called before outputing anything to the browser. ** [PHP.net](http://php.net/manual/en/function.session-start.php)

Member Avatar for diafol
0
530
Member Avatar for JRCharlie

i have started using Netbeans. Very nice and easy to use. Best of all **its free!!** I have also used Dreamweaver CS5.5 and 6

Member Avatar for JRCharlie
0
259
Member Avatar for aabbys

It certainly is possible. You would put your host details instead of LOCALHOST. Unless you are setting up a secure connection i would export your db from the host, and import it locally. That way you remove any risk

Member Avatar for aabbys
0
123
Member Avatar for Djmann1013

>they have different precedence. True. `&&` is before `and` - `||` is before `or` :)

Member Avatar for Djmann1013
0
165
Member Avatar for Squidge

Ok, following from my previous thread (now resolved) i want to convert and use namespace. **headScript.php**: <?php class headScript { public function connection() { try { $dbh = new PDO("mysql:host=localhost;dbname=roundth4_rtb2", 'root', ''); // Dev return $dbh; } catch(PDOException $e) { echo "Error :- " . $e->getMessage(); die(); } } public …

Member Avatar for Squidge
0
191
Member Avatar for debal

> i changed that to "false" and now when i try to login using "root" and "1234" i get the error Change it back

Member Avatar for debal
0
285
Member Avatar for juliadavis_2012

If yoyu are starting, i would suggest not jumping feet first in to an "advanced website". For tutorials, google is your friend:[Click Here](http://bit.ly/she24U)

Member Avatar for xjshiya
0
222
Member Avatar for extjac

i would suggest sanitising the data before doing anything, be it before the class, or passing the data to a function with in the class

Member Avatar for cereal
0
124
Member Avatar for Squidge

Hi all, Hoping you can assist. I am probably starring at the darn thing but i cannot see the wood through the trees :) class headScript { public function connection() { try { $dbh = new PDO("mysql:host=localhost;dbname=xxx", 'xxx', 'xxx'); // Dev return $dbh; } catch(PDOException $e) { echo "Error :- …

Member Avatar for Squidge
0
152
Member Avatar for rosse88
Member Avatar for rosse88
0
238
Member Avatar for Squidge

Hey Mods. I have changed my avatar 2~3 days ago. But my old one is still posting when i do things. Why?

Member Avatar for Squidge
0
62
Member Avatar for mrclark

This should help: >RewriteEngine On >RewriteRule ^([^/]*)$ /pages/fetchpage.php?id=$1 [L]

Member Avatar for Squidge
0
249
Member Avatar for garima.nanda.50
Member Avatar for LastMitch

@**LastMitch** If you take the code you have so far: <form action="photoimage.php" method="post"> Photo: <input type="" name"" valve=" /> <br /> Caption: <input type="" name"" valve="" /> <br /> </form> You would name the fields, i try to keep them as obvious as possibly. <form action="photoimage.php" method="post"> Photo: <input name"photo" …

Member Avatar for LastMitch
0
176
Member Avatar for debal

+1 for XAMPP very easy to use. I have used EasyPHP in the past, but personal preference i choose XAMPP

Member Avatar for Squidge
0
368
Member Avatar for dragonflyuk

The ITW file type is primarily associated with 'Icetips Wizard Editor'. (partially encrypted ini file) Looks like you need a HEXIDECIMAL viewer

Member Avatar for Squidge
0
186
Member Avatar for yash.bhardwaj.3133
Re: PHP

please supply `logout.php` this is indicating you have an undefined function, without the code it is hard to help

Member Avatar for kreitje
0
116
Member Avatar for Djmann1013

I do not beleive you can use mysql_real_escape_string within a SQL statement. This should be done via to the `INSERT` statement

Member Avatar for broj1
0
135
Member Avatar for sabarinadh.ch

I would suggest not using `*` but actually refering to the table columns. This is concidered a security risk. Also note that mysql is not longer maintained, you woul dneed to start looking at MySQLi or PDO. If you are just starting I wuld suggest doing this sooner than later …

Member Avatar for Squidge
0
313
Member Avatar for napninjanx

> What's a portable software? and Is It even legal? It is legal and illegal. This one [Click Here](http://portableapps.com/), is a collection of legal compact Apps available. There are others, and i have in the past come across portable and cracked apps such as Dreamweaver, Flash etc. If it is …

Member Avatar for Squidge
0
3K
Member Avatar for nova37

Can you explain? How is it not working? Are you getting an error? Is anything showing in your log files?

Member Avatar for nova37
0
144
Member Avatar for shlokka

I would suggest speaking to your web host company. They should have a support ticket system. Sounds like a CPanel config glitch.

Member Avatar for Squidge
0
161
Member Avatar for gorybmovie

You will need to create a site under SITE> New Site. Then under this you will "Servers" set your connection to FTP, put in your login details on how you access the domain, switch over to Advanced, set the type of server (PHP/MySQL). Once saved make sure the tick box …

Member Avatar for almostbob
0
244
Member Avatar for heshanm

This is a copy of the drop down i have used on this site: [Click Here](http://www.helenshappyhome.co.uk/gallery.php) <form id="form" method="POST" action="<?php $_SERVER['PHP_SELF']; ?>"> <select id="sel" name="category"> <option value="Select">Please select a gallery..</option> <?php $cxn = mysqli_connect($host,$user,$pword,$db) or die ("Connection failed"); $query = "SELECT category_id,category_name from gallery_category"; $result = mysqli_query($cxn,$query) or die ("Query …

Member Avatar for heshanm
0
226
Member Avatar for vishalonne
Member Avatar for LastMitch

I have used PEAR before, but i though it was being replaced by another version. I cannot remember the name of the darn thing. think it was phasr or something like that

Member Avatar for LastMitch
0
164
Member Avatar for Taios

The End.