Jump to content

GoDaddy

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

GoDaddy's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. GoDaddy

    mysqli

    if i install it ... then will i have a problem when i host it on a commercial webserver? Could it be that the php engine installed on the webserver won't have the php improved extention?
  2. GoDaddy

    mysqli

    I get an error : Debug Error: ApacheRoot\test-projects\ProcessOrders\library.php line 15 - Class 'mysqli' not found Am i missing something? Thanks
  3. thanks thorpe for clearing this out ... i'm c++, java, c# developer .. so those questions came to me. But it seems like php5 is pure OOP now, really great for me. thanks again
  4. I'm currently reading php & mysql web development. I was wondering, how do you know which kind of parameter that pass(type .. int, string, array, etc) Let's say you have included some library that contains the following function function foo($prices) { for($i=0;$i<count($prices);$i++) { echo $prices[$i]; } } How do you know that the function must take an array ? A user could easily pass a string or an int .... isn't there a problem there? EDIT: Another question ... how do you know what type of variable is returned from a function call? you might want a function to return an array of int .. but instead ... it returns a string ...??
  5. [!--quoteo(post=379549:date=Jun 3 2006, 01:00 AM:name=kenrbnsn)--][div class=\'quotetop\']QUOTE(kenrbnsn @ Jun 3 2006, 01:00 AM) [snapback]379549[/snapback][/div][div class=\'quotemain\'][!--quotec--] If you have a button of type "button", not "submit", the only way to make it work is to use Javascript. Ken [/quote] Im also not familiar with javascript. So i guess there's will be something like onlick="the javascript function" but then again in that javascript function... how do call another php file? like how can it call my file processorder.php ... which will process the order from the home.html file? Thanks
  6. i've found my error .. it was in the input type .. it was button ... i've changed it to submit .... So it raises another question .. when the type is of button .. how do you tell the button that when the user clicks on it .. to do a post to the processorder.php? [!--quoteo(post=379519:date=Jun 2 2006, 10:44 PM:name=AndyB)--][div class=\'quotetop\']QUOTE(AndyB @ Jun 2 2006, 10:44 PM) [snapback]379519[/snapback][/div][div class=\'quotemain\'][!--quotec--] Your html is wrong - you can't put elements OUTSIDE the file. Try this instead: [code]<html> <body> <form action="processorder.php" method="POST"> <table> <tr> <td>Tires</td> <td><input type="text" name="textboxTires" size="3" maxlength="3"/></td> </tr> <tr> <td colspan="2"><input type="button" value="Submit"/></td> </tr> </table> </form> </body> </html>[/code] Learn Zend Studio? Zend maybe? The documentation that came with it, maybe? [/quote] Thanks! that was a mistake ..
  7. hi, i'm a newbie at this php thing. I have a file called home.html which is like this [code] <form action="processorder.php" method="POST"> <html> <body> <table> <tr> <td>Tires</td> <td><input type="text" name="textboxTires" size="3" maxlength="3"/></td> </tr> <tr> <td colspan="2"><input type="button" value="Submit"/></td> </tr> </table> </body> </html> </form> and my processorder.php is like this <?php $tires = $_POST['textboxTires']; ?> <?php echo $tires.'tires<br/>'; ?> [/code] when i click on Submit .. nothing happens .. Am I missing something here? I thought that the submit button would of done a post and would of called the processorder.php ... Also, is there anywhere on the net that teaches how to use Zend Studio? Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.