User Profile

Collapse

Profile Sidebar

Collapse
anfetienne
anfetienne
Last Activity: Jul 24 '11, 01:51 PM
Joined: Feb 26 '09
Location: UK
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • It's got me scratching my wig... I even copied and pasted the code that was written in the book
    See more | Go to post

    Leave a comment:


  • that is what I was thinking but I'm going by this book... I gave it a try but still it doesn't do anything and the innerHTML doesn't change either
    See more | Go to post

    Leave a comment:


  • using ajax to get document element from xml file

    Hi Everyone,

    I am currently learning AJAX using the book "A Beginners Guide" By Steve Holzner and I am confused as to why a piece of code I've just written to test out what is in the book is not working. My code is below for the html page with the ajax script and also the xml document where the data is, could someone let me know where I have gone wrong? Thanks in advance

    ***html page
    Code:
    <!DOCTYPE
    ...
    See more | Go to post

  • anfetienne
    replied to issue with pdo inserting to database
    in PHP
    Hey Markus,

    Thanks, I'll be posting up quite a bit as I get back into developing... working on a php/pdo/ajax social networking platform
    See more | Go to post

    Leave a comment:


  • anfetienne
    replied to issue with pdo inserting to database
    in PHP
    Thanks dorm the try and catch wrap did the job for me to catch the errors... my original coding is perfectly fine as well as it binds the value during executing and the reason why it was not inserting was a spelling mistake within the table in the DB (in one column) the error report old me which one...

    Thanks Dormilich, here is my final code.

    Code:
    try{
    $conn = new PDO("mysql:host=$dbhost;dbname=$dbname",$dbuser,$dbpass);
    ...
    See more | Go to post

    Leave a comment:


  • anfetienne
    started a topic issue with pdo inserting to database
    in PHP

    issue with pdo inserting to database

    Hi Everyone,

    it's been a while... Been away from coding for a while due to illness and now i'm back I do enjoy using PDO much more.

    I have created a quick survey site for a friend and want to use PDO for it's speed... all data posts into the page as they should and I bindparam within the insert code to save time but for some reason it is just not inserting. I cannot figure what is wrong (I'm thinking it's the symbols with...
    See more | Go to post
    Last edited by Dormilich; Jun 16 '11, 10:01 AM. Reason: added spaces in the SQL for better readability

  • hi dana,

    I intergrated my own upload script with the one that came with uploadify... it was the easiest way and because uploadify looks for certain vars it was a pain to use my complete own so i had to mix the two as simple as possible as well due to the fact that uploadify kept on messing up on me... below is the code i used, it's not the answer you are looking for as I wrote this for a social networking script... there really isn't...
    See more | Go to post

    Leave a comment:


  • works like a charm... thank you for your help! once i've finished my project i'll be posting a link so everyone can see what the help was all for

    always appreciated
    See more | Go to post

    Leave a comment:


  • having a problem with error message whilst using date/time function

    Hi,

    I found a nice piece of code for the date and time and it allows for daylight savings, I have been using this code for a while and i've never had any error messages but for some reason I get a error message now but the function still does what it should.

    can anyone see what the problem is?

    this is the output from the php page


    and this is the code
    Code:
    <?
    function
    ...
    See more | Go to post

  • ok thanks again zorgi for the idea here is my final code that I tested and it works perfectly... it duplicates the images then resizes them according to width and height

    Code:
    include('SimpleImage.php');
    $pathA = "user/aetienne/photos/aetienne919500405/tmp/l/";
    $pathB = "user/aetienne/photos/aetienne919500405/tmp/t/";
    
    	if ($handle = opendir($pathA)) {
       		while (false !== ($file =
    ...
    See more | Go to post

    Leave a comment:


  • I never thought of it that way... thanks for the heads up zorgi it's much appreciated
    See more | Go to post

    Leave a comment:


  • is there a possibility of getting rid of this error message?

    Hi all,

    this is real simple, I've written this code so I can duplicate images/files after uploading it with jumploader (this doesn't allow for duplicates during the upload process like standard upload handlers... sucks).

    It does what it should do which is copy files from one directory to another but I get a error message "Warning: copy() [function.copy]: The first argument to copy() function cannot be a directory...
    See more | Go to post

  • Please see the attached file for the simpleImahe php script... It is used for the resizing the images.

    that is this part of my script

    Code:
     $imgSize = getimagesize($add);
     echo $details[0].'<br/>';
     echo $details[1].'<br/>';
      
                 if ($imgSize[0] > $imgSize[1]){
                 $image = new SimpleImage();
                 $image->load("$add");
    ...
    See more | Go to post

    Leave a comment:


  • anfetienne
    replied to Display image from database
    in PHP
    he already has his function that works and only needs to use it in a onchange... there is no need for him to write an ajax code
    See more | Go to post

    Leave a comment:


  • anfetienne
    replied to Using JavaScript validation with php
    in PHP
    if im honest i think you should directly check each field length for validation... i would use the following if statement then appropriately alert and focus on the field

    Code:
        if (form_name.field_name.value.length == 0) 
        { 
        }
    See more | Go to post

    Leave a comment:


  • anfetienne
    replied to Display image from database
    in PHP
    add an onchange="" to the selection boxes...


    i've just quickly had a look at it but if you want to do it on selection then use the below on the form fields instead of onclick on a submit button

    Code:
    onchange=\"imageDetails()\"
    See more | Go to post

    Leave a comment:


  • anfetienne
    replied to Auto generate text boxes for submission
    in PHP
    it can be used without pulling data from a DB... you minus the top loop and take off the last bracket, use a for loop instead of if loop it may help... make $i the post data for the rows and then use the post data for the column where the number 4 is.... that's all...
    See more | Go to post

    Leave a comment:


  • anfetienne
    replied to Auto generate text boxes for submission
    in PHP
    hi,

    you need to go to this link and scroll down... this will show you how to generate rows... you could use it as a base to work from on you loops.

    http://www.phpbuilder.com/board/show...php?t=10367315


    also the part where it says the code below... the number "4" is the amount of columns it will echo into your page so however many columns is filled in your form will have to be placed there...
    See more | Go to post
    Last edited by anfetienne; Jun 14 '10, 05:23 PM. Reason: adding extra info

    Leave a comment:


  • anfetienne
    replied to free hosting sites for wordpress
    in PHP
    i know a good free one that has a app installer kind of like fantasico... and considering it's free the 5.5GB web space, 200GB monthly transfer, 50MySQL databases, 50 addon domains, 50 parked domains and 50 subdomains probably makes it the best free host around

    go to Byet Hosting
    See more | Go to post

    Leave a comment:


  • just an idea i want to pass by you... since the pages that i am loading are php... wouldn't it be easier to use php to echo the script src into the header on load?
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...