RichardRotterdam
Members-
Posts
1,509 -
Joined
-
Last visited
Everything posted by RichardRotterdam
-
Ajax AutoSuggest Search using PHP / MS Access DB
RichardRotterdam replied to mjs87's topic in Javascript Help
Your problem is not really Ajax related it's more PHP related. The examples you came across most likely used the mysql_ functions to work with a mysql database. Instead of using the mysql_ look into the odbc_ functions for connecting to a access db. Edit: PDO might also work for you. -
[SOLVED] $_Post variables used in a while loop function
RichardRotterdam replied to etxnreg's topic in PHP Coding Help
$_POST is one array of posted values. What exactly do you mean with "convert the POST variables to an array in the php part instead of html"? -
By storing the name of the uploaded file into a database field in VARCHAR format instead of using BLOB type. The second example I get in the google result page shows exactly that.
-
http://lmgtfy.com/?q=upload+image+php+mysql You could also do a search on this forum I doubt you're the only one asking for something like this.
-
Which PHP Editor do you think is the best? [v2]
RichardRotterdam replied to Daniel0's topic in Miscellaneous
Eclipse for me. Works great with Java, Python and PHP. I'm placing my bets that Dreamweaver wont score as high as the in previous thread. -
Got a link to an example of what you mean. Your description sounds like autocomplete functionality as shown in the link I posted before.
-
something like this? http://docs.jquery.com/Plugins/Autocomplete#Demos
-
[SOLVED] $_Post variables used in a while loop function
RichardRotterdam replied to etxnreg's topic in PHP Coding Help
I don't think it really matters what kind of loop you use. If I can make a suggestion, why not post an array instead? It will save you the hassle using a index var for looping through the vars. here is an example: <form action="index.php" method="post"> <input type="text" name="interface[]" /> <input type="text" name="interface[]" /> <input type="text" name="interface[]" /> <input type="submit" name="submit" value="submit" /> </form> <?php if(isset($_POST['submit'])){ echo "<b>posted vals :</b><br />"; foreach($_POST['interface'] as $interface){ echo $interface, "<br />"; } } -
Showing the XML (or part of it in case it's large) and the PHP code you're using would be more usefull instead of that var_dump code you posted.
-
Read the comments for explanation <script type="text/javascript"> // wait for the complete page to be loaded (less efficient then DOM ready but you'll need a function for that) window.onload = function(){ // get the select element var el = document.getElementById('country'); // add an onchange event note that javascript is case sensitive and the "c" should be lowercase el.onchange = function() { // I prefer Firebug's console.log over alert less anoying change it to alert if you like console.log("value changed to: "+el.value); } } </script> <select id="country"> <option value="1">Aruba</option> <option value="2">Bonaire</option> <option value="3">Curacao</option> </select>
-
edit nvm
-
$result = $this->prepare ( $qry ); shouldn't "$this" be "$db" ?
-
I suggest looking up what the difference is between Hash and encryption. Also lookup what rainbow tables are and why people add "salt" to passwords. Looking those definitions up should inform you enough.
-
I've noticed turning off JScript has some notable benefits.
RichardRotterdam replied to PugJr's topic in Miscellaneous
While you're at it why don't you disable Flash and CSS? That will get you an amazing speed boost. That or simply use Lynx web browser or something similar. You're making an assumption that all popups and virusses are causes by javascript. This is totally false. -
i want to try to get JS to post the submit once a selection is picked I think you want to look into ajax not sure. use a onblur event to see whether a value gets change of a select element.
-
Using javascript you indeed come accross the cross domain restriction. Here is how you can work around this. Write a serverside script that reads the the remote xml file (cURL, file_get_contents etc). Then simply read the local serverside script with javascript.
-
If the directory /var/www is refering to your localhost then I think you should start by setting up a virtual host.
-
Language for desktop app development
RichardRotterdam replied to kickstart's topic in Other Programming Languages
You can run PHP without a webserver. PHP in combination with GTK could be one of those options to write a desktop app. Another language you might want to consider is Python -
[SOLVED] losing variables between php brackets
RichardRotterdam replied to delphi123's topic in PHP Coding Help
use echo just $title won't do anything <?php echo $title; ?> -
[SOLVED] "shaking" effect on form fields?
RichardRotterdam replied to galvin's topic in Javascript Help
The example link you gave uses jquery. Don't really get the script on that example page but you can easily do this by using an onblur event. The documentation about the shake effect on the jquery site might be handy if you decide to use jquery. http://docs.jquery.com/UI/Effects/Shake#overview -
restricting her access to your laptop should be enough.
-
No gravity has been defied by ninjas since they can walk on water. But seriously darn it got me there but that doesn't make me convert to a religion just yet. You're not going to start on the string theory and gravitons right?
-
Why not turn this one into a poll I'm kinda curious about what results would be for PF users. I myself was raised as Hindu. However I am atheist as I need proof before I can "believe" something.
-
Hi, Use for code As for you problem check the manual for setting an attribute. domelement.setattribute
-
Hmm that was vague I guess. Just took a code sniplet of wikipedia to clarify. class person { std::string name; int age; public: person() : age(5) { } void print() const; }; void person::print() const { cout << name << ";" << this->age << endl; /* we don't have to mention what "name" and "age" are, because it automatically refers back to the member variables. The "this" keyword is an expression whose value is the address of the object for which the member was invoked. Its type is const person*, because the function is declared const. */ } The "print" method is after the last curly bracket while the print method is declared public between the curly brackets. That was pretty much the first time I'd seen this.