Jump to content

gristoi

Members
  • Posts

    840
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by gristoi

  1. heres your problem: $id = $_GET['id']; your POSTING data from the form. Not sending the variable through $_GET[]
  2. you really should do your own homework.
  3. without looking through all of your code i spotted this straight away. $smtpServer = loadini("logfile");; remove one of the semi colons
  4. try changing $temp=array(array('StringLength',false,array(0,50))); to $temp=array('StringLength',false,array(0,50));
  5. there you go: http://www.google.co.uk/search?rlz=1C1CHFX_en-GBGB446GB446&sourceid=chrome&ie=UTF-8&q=ajax+tutorials amazing, i got 21,300,00 results in less than a second!!
  6. <div style="position:relative;"> <div style="position:absolute;right:0px;"></div> </div>
  7. you need to look at how relationships between the tables work. Can you post your existing table structure. Without showing what you have done you are not going to get much help unfortunately
  8. use a table join. example: SELECT table1.value , table2.value, table3.value FROM table1 JOIN table2 USING (id) JOIN table3 USING (id) etc.....
  9. mysql_close(); your closing the resource off before calling it. move this to the end of your mysql
  10. <?php $fullIp = '123.45.67.89:1234'; $justIp = explode(':',$fullIp); //this gives you an array created from the string so $justIp[0] is what you need ?>
  11. Theres no such thing as php emails, you use php to generate a HTML email, and yes, hotmail does support HTML emails
  12. try this var d = new Date(createdDate *1000); alert(d.toDateString());
  13. errr, could it be because you changed the column name, did you change the sql search to match
  14. did you try $rar = rar_open('path/to/rar/file.rar');
  15. http://www.google.co.uk/search?aq=f&sourceid=chrome&ie=UTF-8&q=php+guestbook 10,600,600 results. there you go
  16. Mysql has the abitiy to use replication. So what ever is actioned on the master database is instantly replilcated on x amount of slaves. I know you can use the ODBC connector to communicate between access and mysql, but not too sure about the replication.
  17. FPDF is slightly outdated, there is another called MPDF which lets you convert html into prf. I have found this quite useful in the past. Hope it helps
  18. change : <td><? echo $rows['name']; ?></td> <td><? echo $rows['lastname']; ?></td> <td><? echo $rows['email']; ?></td> // link to update.php and send value of id <td align="center"><a href="update.php?id=<? echo $rows['id']; ?>">update</a></td> to <td><?php echo $rows['name']; ?></td> <td><?php echo $rows['lastname']; ?></td> <td><?php echo $rows['email']; ?></td> <td align="center"><a href="update.php?id=<?php echo $rows['id']; ?>">update</a></td>
  19. try changing while($rows=mysql_fetch_array($result)){ to while($rows=mysql_fetch_assoc($result)){ also add echo mysql_num_rows($result); after your query to see if anything is actually being returned
  20. do you have session_start at the top of each page?
  21. mysql_connect("xxx.xxx.com", "$username", "$password") or die( "Unable to connect to database"); mysql_select_db("xxx") or die( "Unable to select database"); mysql_query("INSERT INTO orderTable (ip, userId, userName, id, orderNum, orderDate, custEmail, firstName, lastName) VALUES ('" . $REMOTE_ADDR . "', '" . $_SESSION['user_id'] . "', '" .$_SESSION['user_name'] . "','', " . $order . ", '" . $today . "', '" . $b_email . "', '" . $b_first . "', '" . $b_last . "')");
  22. do you just get a completely blank table?
  23. <?php $filename = 'test.txt'; $somecontent = "Add this to the file\n"; // Let's make sure the file exists and is writable first. if (is_writable($filename)) { // In our example we're opening $filename in append mode. // The file pointer is at the bottom of the file hence // that's where $somecontent will go when we fwrite() it. if (!$handle = fopen($filename, 'a')) { echo "Cannot open file ($filename)"; exit; } // Write $somecontent to our opened file. if (fwrite($handle, $somecontent) === FALSE) { echo "Cannot write to file ($filename)"; exit; } echo "Success, wrote ($somecontent) to file ($filename)"; fclose($handle); } else { echo "The file $filename is not writable"; } ?> taken from php.net fwrite
  24. you need to know what the session variables are called. then it is just a matter of doing : <?php $user_id = $_SESSION['userId']; // given that the session is called userId $username = $_SESSION['username']; // given that the session is called username ?> then use these variables to insert into the db
×
×
  • 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.