345 Posted Topics

Member Avatar for trilithon

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 = …

Member Avatar for vaultdweller123
0
106
Member Avatar for chaitanya15385
Member Avatar for vaultdweller123
0
45
Member Avatar for jhudson0219

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.

Member Avatar for rajarajan2017
0
155
Member Avatar for dan_t

[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 } …

Member Avatar for rajarajan2017
0
113
Member Avatar for chaitanya15385
Member Avatar for fouzia Qayyum

@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]

Member Avatar for vaultdweller123
-3
108
Member Avatar for jtaylor-bye

you may have created some line breaks, better paste the code so we can help you

Member Avatar for vaultdweller123
0
90
Member Avatar for julzk

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 …

Member Avatar for chrishea
0
187
Member Avatar for azegurb

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

Member Avatar for azegurb
0
85
Member Avatar for TLCJohn

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]

Member Avatar for rajarajan2017
0
123
Member Avatar for jeeter19

[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

Member Avatar for rajarajan2017
0
14K
Member Avatar for waren

1st keep in mind that inorder for you to use php mail() function, you should set-up a working email system

Member Avatar for waren
0
107
Member Avatar for mediachicken

[CODE]<?php $temp = "MyObject.MyFunction(doSomething)"; echo substr($temp,9); ?>[/CODE]

Member Avatar for vaultdweller123
0
148
Member Avatar for Kadafiz

[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'];

Member Avatar for Kadafiz
0
6K
Member Avatar for cristina.h

just to remind you... you cant directly use the php mail function without first having an installed and working email system

Member Avatar for farhan386
0
137
Member Avatar for BrianDickson

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

Member Avatar for Stefano Mtangoo
0
117
Member Avatar for sastudent

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]

Member Avatar for vaultdweller123
0
443
Member Avatar for vivi288

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

Member Avatar for vivi288
0
1K
Member Avatar for Xufyan

$_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.

Member Avatar for vaultdweller123
0
81
Member Avatar for Viced

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 …

Member Avatar for Viced
0
80
Member Avatar for gaz-boy

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 …

Member Avatar for vaultdweller123
0
3K
Member Avatar for MarkBloomfield

yeah i totaly agree... there's no problem with your code on sending mail. i suspect the problem is in the mail server.

Member Avatar for vaultdweller123
0
141
Member Avatar for maunica
Member Avatar for vaultdweller123

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?

Member Avatar for briangreen143
0
802
Member Avatar for Dougie

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 …

Member Avatar for oldgamesware
0
169
Member Avatar for fsn812

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....

Member Avatar for mama_rock
0
529
Member Avatar for iniyanmani
Member Avatar for OS_dev
-1
7K
Member Avatar for Eternity[LK]
Member Avatar for cwarn23

its an infinite loop dude.... P H P PHP hypertext preprocessor PHP hypertext preprocessor hypertext prerprocessor .......... an endless loop!

Member Avatar for vegaseat
-3
156
Member Avatar for takeshi

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 …

Member Avatar for kireol
0
263
Member Avatar for kuteinheart

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> …

Member Avatar for cwarn23
0
122
Member Avatar for jmercola

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.

Member Avatar for vaultdweller123
0
140
Member Avatar for virspy

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.

Member Avatar for saiprem
0
101
Member Avatar for mrnutty
Member Avatar for ITKnight

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!

Member Avatar for HelloMe
0
202
Member Avatar for anje
Member Avatar for plc
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

Member Avatar for harshbavaliya
-4
122
Member Avatar for Salem
Member Avatar for UnderPressure
Member Avatar for UnderPressure
0
119
Member Avatar for rahul8590

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.

Member Avatar for vaultdweller123
-1
230
Member Avatar for MxDev
Member Avatar for alumbagreenz
Member Avatar for vaultdweller123
0
91
Member Avatar for kapoorvarun23
Member Avatar for motters

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 …

Member Avatar for Fbody
0
338
Member Avatar for veledrom

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 …

Member Avatar for diafol
0
20K
Member Avatar for CFROG

hey icefrog... where is your move_uploaded_file() function? i cant seem to find it? it's responsible for uploading.

Member Avatar for vaultdweller123
0
121
Member Avatar for serkan sendur
Member Avatar for Bender12
Member Avatar for vaultdweller123
0
74
Member Avatar for aajay05
Member Avatar for vaultdweller123
0
183
Member Avatar for b1izzard

[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, …

Member Avatar for happygeek
0
301

The End.