345 Posted Topics
Re: here i fixed it, i escape all the single qoutes(') in your $mail_body string [CODE]<?php include_once "connect_to_mysql.php"; $sql = mysql_query("SELECT * FROM mail WHERE field_9='0' AND field_8='max' LIMIT 20"); $numRows = mysql_num_rows($sql); // Added for "End Campaign Check" at the bottom of this file(not shown on the video) $mail_body = … | |
Re: from 86 views no one comments? maybe because your question is too vague | |
Re: depends on your php server, like WAMP you save your .php file in the "www" folder, or if you use XAMPP you save it in the "htdocs" folder. ![]() | |
Re: [CODE]<?php $sql = mysql_query("SELECT user_id, gender FROM user_table WHERE user_id='".$user_id."'"); $row = mysql_fetch_array($sql); $id = $row['user_id']; $gender = $row['gender']; $sql2 = mysql_query("SELECT user_id FROM user_table WHERE user_id!='".$id."' AND gender!='".$gender."'"); while($row2 = mysql_fetch_array($sql2)){ echo $row2['id']."<br />"; // test result, echoed only user_id, since you only want the opposite sex's id } … ![]() | |
Re: @almostbob hahaha youre so hilarious dude haha, but i had another thing in mind [CODE]<?php echo "End of the World?" ?>[/CODE] about the tutorial site, i prefer w3schools [url]http://w3schools.com[/url] | |
![]() | Re: you may have created some line breaks, better paste the code so we can help you |
Re: i dont know why you define variables like that, they share the same name, and it causes a destructive read-in, only the last input gets the value, the better way would be so store them in arrays, but this is your example ill just have to name them uniquely. [CODE]$id1 … | |
Re: strings should be enclosed with quotes, single or double [CODE]if(isset($id) && $id=="benelli")[/CODE] and also the equals sign "=" is an assignment operator, not an equality operator used for comparison, use the equality operator "==" instead | |
Re: make your checkboxes an array [CODE]<input type="checkbox" name="test[]" value="Taxi" id="test_4" />[/CODE] once they're stored on array you can easily traverse using foreach() [CODE]foreach($_POST['test'] as $index => $val){ echo "test[".$index."]=".$val; // just testing the value }[/CODE] ![]() | |
Re: [CODE]<?php include('config.php'); //path to the config.php function connect() { $link = mysql_connect($db, $name, $pass); $dbtable = mysql_select_db($tbl); } ?>[/CODE] it's impossible you dont get the value from config.php... if you include it correctly ![]() | |
Re: 1st keep in mind that inorder for you to use php mail() function, you should set-up a working email system | |
Re: [CODE]<?php $temp = "MyObject.MyFunction(doSomething)"; echo substr($temp,9); ?>[/CODE] | |
Re: [CODE]<script type="text/javascript"> function ftest(){ window.location="totherecievingpagedatabasesave.php?test="+document.getElementById('test').value; } </script> <input type="text" name="test" id="test" /> <a href="javascript:void(0);" onclick="ftest()">click me</a>[/CODE] then get the text box variable on the receiving end via $_GET['test']; | |
Re: just to remind you... you cant directly use the php mail function without first having an installed and working email system | |
Re: i don't really use the CI form helpers, the only form helper i use is the form() and the anchor() tag of CI. coz if u use the normal anchor and form you will encouter lots of problem upon redirection | |
Re: hahaha lol you mean repopulate btw i dont understand this line of code [CODE]if(isset($_POST[$this->name])&($this->isSticky))[/CODE] where did you get the $this->isSticky ???? can u remove it? instead [CODE]if(isset($_POST[$this->name]))[/CODE] | |
Re: rajarajan was right... it's all about file permission. You must edit it either through ftp or explicitly define it using php chmod() function. set the permission to 0775 | |
Re: $_FILES["file"]["error"] is used to check for file uploading errors... so if $_FILES["file"]["error"] is greater than zero then its means that there is an error encountered during upload. | |
Re: this is like a referral system if I'm not mistaken... to generate unique links to every user you has to give them their unique links by appending their id on the links, like [url]http://www.yoursite.com/registration.php?id=13[/url]. through that after a successful registration you may be a able to identify who will be … | |
Re: yes manuz is right... use array <input type="checkbox" name="id[]" value="Mike" /> instead of single value input <input type="checkbox" name="id" value="Mike" />. As i examine your code there's no wrong in the php mail syntax... so it should work. i dont know if u set up correctly your mail server or … | |
Re: yeah i totaly agree... there's no problem with your code on sending mail. i suspect the problem is in the mail server. | |
Re: please paste your complete code, including the form | |
how dogs got rabies? I dont want answers like "they got it from wild animals, who are infected by rabies, like bats, squirrel, fox, skunk etc.." , its like a loop id doesn't answer the question. i mean how was the 1st infected rabid animal got it? | |
Re: yeah nice link... i started to delete some friends coz. before i would add friends which i know even if were not close... but the problem is... it became annoying... specially when someone not a close friend is like publishing addict and well always published her recent activities every once … | |
Re: I would prefer PHP over JAVA... PHP = less code, light, no compile, easy to learn, use variable directly without declaration JAVA = hard code, heavy, compile to run, hard to learn, strict variable-must declare hugeee.. difference.... | |
Re: [CODE]<?php echo "<script>alert('".$val."');</script>"; ?>[/CODE] | |
| |
Re: its an infinite loop dude.... P H P PHP hypertext preprocessor PHP hypertext preprocessor hypertext prerprocessor .......... an endless loop! | |
Re: you know what takeshi.... im so sick and tired of debugging your code... i had help you many times and even provided code in many of your threads but you didn't had even the effort to payback the guys that helped you. You dont mark you thread solved. You just … | |
Re: i dont see any wrong in your code... if you get wrong value... i recommend reviewing the value being passed on $_SESSION['username']. I assume you had a drop down list.. make sure their value is correct. <?php $sql = mysql_query("YOUR QUERY HERE"); ?> <select name='username'> <?php while($row=mysql_fetch_array($sql)){ ?> <option value='<?=$row['username']?>'><?=$row['username']?></option> … | |
Re: there's no problem with the code... i don't think the problem came there... it might be the code before that. Try reviewing your code. | |
Re: common issues on transfering files from localhost to the other server is the path... so check for the paths, specially absolute path.. coz your now on a different server. | |
Re: i dont like interviews... i prefer actual exams. | |
Re: im not really a fan of soccer coz. soccer is not popular in our country, but girls would love soccer team like [URL="http://www.facebook.com/video/video.php?v=161048363585&ref=mf"]this[/URL]. check out the INSTANT REPLAY! | |
Re: the dollar sign ($) means MONEY! means you will earn great MONEY out of this FREE server-side programming language. So programming in FREE PHP is MONEY, remember PHP = MONEY! :D | |
| |
Re: a guy here saying hes just a newbie to PHP but know how to use .htaccess? | |
Re: i love google... my tshirt is google, underwear is google, my shorts are google, my browser is google, my search engine is google.... google OS is built for users who spends their time on the internet thats why it's different from windows OS. may the google be with you. | |
| |
Re: ok ill give you a basic example and based in your inputs 1st create 3 files connect.php [CODE]mysql_connect('localhost','root',''); //your connection mysql_select_db('yourdatabase'); //your database[/CODE] myprofile.php [CODE]<?php include('connect.php'); $sql = mysql_query( "SELECT * FROM user WHERE id='1'" ); //this id is just a sample, it should be a session variable. you must … | |
Re: you mean u dont want user see where the form redirected when the user view its source code? [CODE]<?php if(isset($_POST['btnsubmit'])){ echo "<script>window.location='secret.php';</script>"; } ?> <form name='form1' method='post'> <input type='submit' name='btnsubmit' value='go' /> </form>[/CODE] tried and tested....this should hide the action attribute of the form... but it still show in the … ![]() | |
Re: hey icefrog... where is your move_uploaded_file() function? i cant seem to find it? it's responsible for uploading. | |
Re: so may captcha script on the net! just google it out dude. | |
![]() | Re: [QUOTE=Rashakil Fol;1108230] I hope someday India will fix its education system, and when it does, it will take over the world because Indians are the most naturally intelligent people in the world.[/QUOTE] i totaly agree with you dude! i always see whites picks on indian people.... making fun of them, … |
The End.