User Profile
Collapse
-
It's got me scratching my wig... I even copied and pasted the code that was written in the book -
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 eitherLeave 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
-
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 platformLeave a comment:
-
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);Leave a comment:
-
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...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...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 appreciatedLeave 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
-
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 =Leave a comment:
-
I never thought of it that way... thanks for the heads up zorgi it's much appreciatedLeave 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... -
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");Leave a comment:
-
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 codeLeave a comment:
-
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) { }Leave a comment:
-
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()\"
Leave a comment:
-
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...Leave a comment:
-
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...Leave a comment:
-
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 HostingLeave 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?Leave a comment:
No activity results to display
Show More
Leave a comment: