Search:
Type: Posts; User: Sheldon
Search :
Search took 0.04 seconds.
what about your code is NOT OLD AND INSECURE ?
HTTP_POST_VARS == NO
tables == NO
JS validation == NO
I think your issue is with your query, which really you should use Mootools.
put if you print_r($_REQUEST);
you would get better results.
Ignore jQuery or any JavaScript solution.
@NogDog is right.
simple
if($count = count($files = glob(getcwd('*.jpg')) > 0):
<?php copy($original, $newfile);
you know this is a PHP Forum right ?
also, your fixed div needs a higher z-index.
CI has a good upload helper class, upload, store them in your filesyststem and store the file name, owner and path in a database.
<?php
// no output should be sent before starting a session - or sending a header redirect ( below )
session_start();
// make this safe
$self =...
Where are you setting '$aImageName' ?
http://php.net/manual/en/function.unlink.php
Your issue is here;
In your GalleryManager Class you are creating an array based on the Database ID, and image path
$aGallery[$aImage['id']] = $aImage['imagePath'];
In your Gallery Class...
<?php
define('IMG_PATH', 'includes/images/Gallery/');
include('class.galleryManager.php');
class Gallery{
private $imgRoot = IMG_PATH;
public function getGalleryImages(){
I see a possible issue;
your function GalleryManager::getAllImages(); has all mis-matched variable names.
Hi,
I am making a simple PHP framework, this has a 'base' class, then includes other classes, like a database abstraction class and a form validation class.
I have got the classes all working...
Try something like this:
$img = imagecreatetruecolor(100, 100);
// 127 is fully tranparent, 0 would be solid red, 63 would be 50% transparent :)
$background =...
Make sure your font paths are correct for the server type.
If that fails, make sure with a phpinfo() that the server has the GD Lib extensions installed
Hi,
I am trying to search against multiple mySQL tables, Can any one point me to where I am wrong ?
Below is my query, and my DB structure.
SELECT
categories.name AS category,
...
Hi,
I am trying the below query, I want to get a field of a value, and a total of the same field where the value is < 3,
I need to pass in the 'student_id' in to my subselect or maybe some...
Hi,
Thanks for your responses,
@Fang, that link does not work ?
It still seams to clear the TD classes.
http://www.langsretreat.co.nz/common/script-bak.js
Hi,
I have a simple calendar script, that when either selecting a date in drop downs, or clicking that date on the calendar itself, it will allow you to select a range of dates.
It worked...
If you look at the link NogDog provided, it has an easy usage example.
bool checkdate ( int $month , int $day , int $year )
In your case, it is hard to tell as you have not wrapped...
Do you have a link to this? It doesn't seam like a browser issue ?
You can call a function directly in HEREDOC, you can call it before, setting it as a variable and then call that in the function.
What you have about should work?
<?php
/* HEREDOC /...
try print_r'ing the $parts?
if (preg_match ("/^([0-9]{2})/([0-9]{2})/([0-9]{4})$/", $birth, $parts)){
echo("<pre>");
print_r($parts);
die("</pre>");
so your are getting the success message.
"Your mail was sent successfully"
try changing your $to to $email
if(mail($email, $subject, $msg, $headers)){
you could do it dynamically with a foreach loop.
<?php
// connect before you use this function !!
// escape each var
foreach($position as $key => $value){
$position[$key] =...
What error are you getting?
the "We encountered an error sending your mail" or a PHP Error?
Are you sure that the mail is being sent, but flagged as spam?
$msg = "Please click the link...