Jump to content

PravinS

Members
  • Posts

    459
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by PravinS

  1. yeah, thanks for correcting
  2. check if mod_rewrite is enabled in php.ini
  3. while uploading files use $_FILES instead of $_POST for file data $fileName = $_POST["uploaded_file"]["name"]; // The file name $fileTmpLoc = $_POST["uploaded_file"]["tmp_name"]; // File in the PHP tmp folder $fileType = $_POST["uploaded_file"]["type"]; // The type of file it is $fileSize = $_POST["uploaded_file"]["size"]; // File size in bytes the above code should be $fileName = $_FILES["uploaded_file"]["name"]; // The file name $fileTmpLoc = $_FILES["uploaded_file"]["tmp_name"]; // File in the PHP tmp folder $fileType = $_FILES["uploaded_file"]["type"]; // The type of file it is $fileSize = $_FILES["uploaded_file"]["size"]; // File size in bytes
  4. may LEFT JOIN will help you $sql="SELECT * FROM tweet LEFT JOIN follow ON tweet.user_id=follow.user_id WHERE follow.user_id = '".$_SESSION['user_id']."' ORDER BY date_time desc";
  5. try using this $num = mysql_num_rows($allusers = mysql_query("SELECT * FROM PMs WHERE `status` = '0' AND ReceiveID ='".$myU->ID."' ORDER BY ID")); $PMs = mysql_num_rows($allusers = mysql_query("SELECT * FROM PMs WHERE `status` = '0' AND LookMessage = '0' AND ReceiveID = '".$myU->ID."' ORDER BY ID"));
  6. try using urlencode() and urldecode() php functions
  7. check this line mail to($to, $subject, $message, $additional_headers); for this refer http://php.net/manual/en/function.mail.php
  8. check this line echo " Thank you $_POST[fname] !! Your registration has been submitted!!"; && $sendEmail; remove "&& $sendEmail;" if you want to concat $sendEmail, then you can use like this echo " Thank you $_POST[fname] !! Your registration has been submitted!!".$sendEmail;
  9. "http://" may be missing, please check that
  10. check highcharts http://www.highcharts.com/demo/
  11. you can check this url for that http://ellislab.com/codeigniter/user-guide/general/models.html#loading
  12. http://ellislab.com/codeigniter/user-guide/database/active_record.html#insert
  13. To, From are reserved words in MySQL, either you can change the column names or use title (``) character around column names, like `To`,`From`
  14. you are getting this error because the "id" field is primary key and autoincremented, there may be any old entry with 153 value
  15. may this will help you http://www.php-guru.in/2013/dynamic-menu-in-php-mysql-javascript/
  16. are you getting error or validation is not working also check your form action, its "success.asp"
  17. you can disable them, which can be visible but cannot be checked
  18. there is no "comments" element in form, i think its "message"
  19. there is comma(,) before WHERE, remove it echo $UpdateQuery = "UPDATE taranaki2 SET ID='$_POST[id]', Destinations='$_POST[destinations]', Difficulty='$_POST[difficulty]' WHERE ID='$_POST[hidden]' ";
  20. how many records are you getting for your SELECT query in phpmyadmin SELECT * FROM taranaki2
  21. check the query in phpmyadmin for the result also check http://us1.php.net/mysql_fetch_array
  22. in this line $con = mysql_connect("localhost","root","","taranaki"); what is "taranaki", is this database password?, if yes, then it should be 3rd parameter of mysql_connect also echo your SELECT query and check it in phpmyadmin
  23. check this sample CSS and HTML #maindiv { width:500px; background-color:#000; height:100px; padding:3px; } #leftdiv { width:250px; background-color:red; float:left; height:100px; } #rightdiv { width:250px; background-color:#fff; float:right; height:100px; } <div id="maindiv"> <div id="leftdiv"></div> <div id="rightdiv"></div> </div>
×
×
  • 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.