-
Posts
840 -
Joined
-
Last visited
-
Days Won
1
Posts posted by gristoi
-
-
you really should do your own homework.
-
without looking through all of your code i spotted this straight away.
$smtpServer = loadini("logfile");;
remove one of the semi colons
-
try changing
$temp=array(array('StringLength',false,array(0,50)));
to
$temp=array('StringLength',false,array(0,50));
-
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!!
-
<div style="position:relative;"> <div style="position:absolute;right:0px;"></div> </div>
-
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
-
use a table join. example:
SELECT table1.value , table2.value, table3.value FROM table1 JOIN table2 USING (id) JOIN table3 USING (id) etc.....
-
mysql_close();
your closing the resource off before calling it. move this to the end of your mysql
-
<?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 ?>
-
Theres no such thing as php emails, you use php to generate a HTML email, and yes, hotmail does support HTML emails
-
try this
var d = new Date(createdDate *1000); alert(d.toDateString());
-
errr, could it be because you changed the column name, did you change the sql search to match
-
did you try
$rar = rar_open('path/to/rar/file.rar');
-
http://www.google.co.uk/search?aq=f&sourceid=chrome&ie=UTF-8&q=php+guestbook
10,600,600 results.
there you go
-
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.
-
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
-
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>
-
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
-
do you have session_start at the top of each page?
-
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 . "')");
-
what is in db.php ?
-
do you just get a completely blank table?
-
<?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
-
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
No errors and database not updating
in PHP Coding Help
Posted
heres your problem:
your POSTING data from the form. Not sending the variable through $_GET[]