Jump to content

utinaeniduin

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

utinaeniduin's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. IPN is very limited.  they only allow certain variables to be passed.  i have had difficulty with the same problem.  i have a cart set up and i need name, address, items, quantity and total to be passed to a database as well as passing the total to paypal for processing.  if anyone can offer further assistance on IPN I would greatly appreciate it.
  2. [code]<? $DBHost="myhost"; $DBUser="myuser"; $DBPass="mypassword"; $DBName="mydatabase"; mysql_connect("$DBHost","$DBUser","$DBPass"); mysql_select_db("$DBName"); $query  = "SELECT * FROM pageSHOW WHERE num='123'"; $result = mysql_query($query); while ($row  =  mysql_fetch_row($result)) { $num = $row[0]; $Home = $row[1]; $Audition = $row[2]; $CallBacks = $row[3]; $Rehearsal = $row[4]; $MIDI = $row[5]; $MP3 = $row[6]; $Support = $row[7]; } ?> [/code]...
  3. hello. i have the section on my site where each page (php) displays the content from a single cell on my DB as the body.  i then wanted my admins to be able to edit the content in this table.  rather than teaching them how to use MySQL i just thought i'd set up a page which stores and retrievs data.  the code i wrote is as follows:
  4. hi i am trying to put a small form on my site so that users can sign up to receive my newsletter, however, i do not want to change the page, but rather i would like to have the form disappear and a thank you message appear.  i think i have the right idea, but i am quite a noobie.  this is the most code i have ever written from scratch. [code] <? if ($step="sub") { $DBHost="myhost"; $DBUser="myusername"; $DBPass="mypassword"; $DBName="mydb"; mysql_connect("$DBHost","$DBUser","$DBPass"); mysql_select_db("listserv");   $name = $_POST['name'];   $email = $_POST['email'];         $result=mysql_query("INSERT INTO listserv (name,email)".       "VALUES ('$name', '$email')");   echo "  Join the Mailing List </div></td></tr><tr>         <td height='70'><div align='center'> You have been added to the list."; } else { echo "  Join the Mailing List </div></td></tr>         <tr>         <td height='70'><div align='center'>         <form name='form1' method='post' action='?step=sub'>         <p style='line-height: 22pt;'>         <input name='name' type='text' class='input' id='name' value='Name'>         <input name='email' type='text' class='input' id='email' value='Email'></p>         <p style='line-height: 22pt;'>         <input name='Submit' type='submit' class='button' value='Submit'></p>         </form>"; } ?> [/code]
×
×
  • 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.