fugix
-
Posts
1,483 -
Joined
-
Last visited
Posts posted by fugix
-
-
yes that was my mistake...im looking into it now.
-
are you setting your $year $month $day vars to $_POST vars?
-
$shutoff = $year . "-" . $month . "-" . $day;
should be what you are looking for
-
you would have to rely on javascript's "alert" function.
-
try what I have suggested and let me know what you receive
-
this is because the return type of this
echo $r->getResponseBody() ;
is a string...
try
echo $r->getBodyDocument() ;
-
this line
Echo "<a href='viewprofile.php?username={$info['username']}'><img src='http://datenight.netne.net/images/".$info['img'] ."' width='30' height='30''></a>".$info['from_user']." ".$info['message'];
should be
echo "<a href='viewprofile.php?username={$info['username']}'><img src='http://datenight.netne.net/images/".$info['img'] ."' width='30' height='30''></a>".$info['from_user']." ".$info['message'] . ";
you forgot to end you concatenation on the end
-
preg_replace('#[^A-Za-z0-9]#i', $replacement, $str_to_search);
-
depending on where this is in your query..you may have to close them inside parenthesis
-
try changing it to
members_count <= ".$diff." or members_count >= ".$defmemcount."
-
AND team_treasure>='members_count * 1000'
-
i will do a couple so you can understand how to do this..
$sql = "UPDATE companies, iQuestions SET companies.companyname = '${name}', companies.companytag = '${tag}', companies.companywebsite = '${website}', companies.industry = '${industry}', companies.stage = '${stage}', companies.country = '${country}', companies.state = '${state}', companies.city = '${city}', iQuestions.capitalavailable = '{$capitalavailable}' WHERE companies.companytag = '${ctag}'";
hope this helps
-
what version of mysql are you running?
-
I would use preg_replace()
-
I tried to correct for any mistake but could not find any since I do not know much. I need your help please. Here is the file section. BTW, Is line 1 <?php ???
yes it is considered a line
-
the only way that i know of is to use the onchange event using javascript...i highly doubt that it would work since you are using php however..
-
in your first script..the name of your <select> is "page"...so wouldnt it be $_POST['page'] not $_POST['num']?
-
this
<input name="name" type="text" class="form1" value="About Us" maxlength="20" id="name" /><br /><br />
corresponds to this
$name=$_POST['name'];
because you have an input with the same name...on the first scripts that you showed me...the only input that you have on that page is the submit button...so that is the only value that will fill the $_POST array...
-
yes I editted my answer as I saw this after I posted...but to get that the $num value...it isnt actually passed from the form...you would set up another query like the one that you did in the first script..and use the $row['num'] value to make your second query
-
the $_POST array will not have anything to do with values from mysql
-
im confused as to where you are getting $_POST['num']; from...in order for that to work..you would need to have an input in you first form on with the name of "num".... what value are you trying to pass to pageedit.php?
-
what is the exact line that is giving this error?
-
this will check to see if there are any rows grabbed....if there arent any rows...it will echo "no match found"
-
you could add this to you code
$num_rows = mysql_num_rows($sql); if ($num_rows == 0) { echo "No Match Found"; } else { .... }
Passing value by post to a new php file
in PHP Coding Help
Posted
whatever php file you want to send the data to...make that php file your action in your form