Entanio
-
Posts
16 -
Joined
-
Last visited
Never
Posts posted by Entanio
-
-
Simply, Put:
displayVideos(*cat name*)
and in your function:
function displayVideos($cat){ $data = mysql_query("SELECT * FROM videos WHERE category='$cat'") or die(mysql_error());
-
I use Aptana. It's a wonderful program.
-
I would guess to display the link you have something like:
if($money_receive => time()){ echo "... money_claim.php"; }
Why not just put this in the "money_claim.php" file?
-
You can post a form automatically through PHP.
That is PHP does it when the user opens the page and no-one has to press a submit button.
-
Try putting:
"/includes/... .php"
Because I think the first "/" means web root.
-
So do I, lol.
No, I think it will
-
You have to make sure that all the pages that require a login have $_COOKIE['VARIBLE'] instead of $_SESSION['VARIBLE'].
-
Use cookies instead of the Session. So just set the $_COOKIE['USERID'] instead of $_SESSION['USERID'].
In an unrealted subject it is good practice to put single quotaion marks in $_SESSION, $_COOKIE etc. So, for example it would be $_SESSION['USERID'] not $_SESSION[uSERID].
-
I don't know how to do this myself, but I found this.
-
Instead of a form use a link?
Like Project fear said, so you would have
echo "<a href='menulist.php?busname=" .$row->busname. "' />";
Then on menulist.php:
$busname = $_GET['busname']; mysql_query("SELECT ... WHERE busname=" .mysql_real_escape_string($busname). "");
Possible?
-
} else {
if(!isset($_POST['pop'])){
You are contradicting youreself here :S
You are saying "'npop' has been posted, now if 'pop' hasn't been posted do whatever".
Sorry, My mistake, I misunderstood something.
-
for($i = 1;$i <= $pop; $i++){
I don't know but I think you should put:
$i=0;
while($i < $pop){
...
$i++
}
-
} else {
if(!isset($_POST['pop'])){
You are contradicting youreself here :S
You are saying "'npop' has been posted, now if 'pop' hasn't been posted do whatever".
-
I am a new user here and hope to be active
I know alot about most coding languages, so I will hopefully be able to help alot.
Thanks,
Entanio
What's the best way to put HTML in PHP scripts?
in PHP Coding Help
Posted
It all depends what your using it with.