Search results

  1. F

    What's wrong with this fwrite/fopen php script?

    I get this error for this code..... Warning: fopen(964830301.php) [function.fopen]: failed to open stream: Permission denied in product.php on line 168 PHP Error Message Warning: fwrite(): supplied argument is not a valid stream resource in product.php on line 169 This is the code...
  2. F

    What's wrong with this fwrite/fopen php script?

    I get this error for this code..... Warning: fopen(964830301.php) [function.fopen]: failed to open stream: Permission denied in product.php on line 168 PHP Error Message Warning: fwrite(): supplied argument is not a valid stream resource in product.php on line 169 This is the code...
  3. F

    How can you put an html image in php?

    This is part of my php code what's wrong with it? It displays a blank square. The alt, height, width, and align work but it won't load the image? echo "<img scr=\"none.gif\" alt=\"" . $title . "\" height=\"60\" width=\"60\" align=\"left\" />";
  4. F

    What is wrong with this php/mysql? Can you include the date function in a mysql insert?

    if(!mysql_query("INSERT INTO clicks (username,title,date) VALUES ('JoeBurnett','Books 1 Million','date(\"Y-m-d\")'")) else { die("error"); } It produces the die()? But why?
  5. F

    What is wrong with this php/mysql? Can you include the date function in a mysql insert?

    if(!mysql_query("INSERT INTO clicks (username,title,date) VALUES ('JoeBurnett','Books 1 Million','date(\"Y-m-d\")'")) else { die("error"); } It produces the die()? But why?
  6. F

    How can I make this image appear after text using html/php?

    This is what I have.... while($row = mysql_fetch_assoc($result)) { $url = $row['url']; $image = $row['image']; $final_url = $row['finalurl']; $title = $row['title']; $shortdescription = $row['shortdescription']; echo "<p><a href=\"" . $url . ".php" . "\"><h3>" . $title ...
  7. F

    Does the php header() function lose a users session?

    When I redirect a page on my website using header(); The user always has to log back in. Why?
  8. F

    Does the php header() function lose a users session?

    When I redirect a page on my website using header(); The user always has to log back in. Why?
  9. F

    Html/ CSS what's wrong with this width?

    I have a sidebar on my website that gets data inserted into it from a mysql database except this line of text expands the width of my sidebar? But, why? including .avi, .wmv, .flv, .asf .mpg, .3gp, .mp4, .mov How can I make the css break the text to the next line automatically?
  10. F

    php/html/css/mysql. What's the problem?

    CSS #Ad { float: right; text-align: left; height: 400px; width: 160px; padding: 10px; } HTML/PHP/MYSQL <div id="Ad"> </body> </html> <?php $result = mysql_query(" SELECT * FROM products WHERE tag1='$Search' OR tag2='$Search' OR tag3='$Search' AND adfinish!='' ORDER BY rank DESC")...
  11. F

    Php Notice: Undefined index: What does this mean?

    Notice: Undefined index: points in C:\PHP Projects\Findd Online\quick_finish.php on line 43 Notice: Undefined index: product in C:\PHP Projects\Findd Online\quick_finish.php on line 44 My code.... <?php //Variables $Ad_Day = $_POST['points']; $Product = $_POST['product']; if(isset($Ad_Day))...
  12. F

    What's wrong with this php/ mysql code?

    I guess you can call this a banking system. But this is my problem I want to make not allowable to purchase stuff if it would make your points go below zero but how? You can see that around... $row = mysql_fetch_assoc($Select_Users); if($row['points'] < $Change_Points) { die("You can...
  13. F

    Php while loop question?

    This is my while loop. Nothing is wrong with it. I want it to complete this loop ten times then stop but how? while(mysql_fetch_assoc ($Get_Recent_Clicks)) { echo "</br><b>Title:</b>" . $row['title'] . " <b>Username:</b> " . $row['username']; }
  14. F

    What's wrong with this php/mysql code. I recieve the die function everytime?

    $Random_Number = rand(100,100000000000); $Check_Number = mysql_query("SELECT * FROM products WHERE randomnumber='$Random_Number'"); $Check_Final = mysql_num_rows($Check_Number); while($Check_Final != '0') { $Random_Number = rand(100,100000000000); } $File_Name = $Random_Number . ".php"...
  15. F

    What's wrong with this php/mysql code. I recieve the die function everytime?

    $Random_Number = rand(100,100000000000); $Check_Number = mysql_query("SELECT * FROM products WHERE randomnumber='$Random_Number'"); $Check_Final = mysql_num_rows($Check_Number); while($Check_Final != '0') { $Random_Number = rand(100,100000000000); } $File_Name = $Random_Number . ".php"...
  16. F

    What's wrong with this php/html code?

    Title: <input type="text" name="title" /> $Title = $_POST['title']; if($Title == "") { die("You didn't enter a title!"); }
  17. F

    Php Link Tracker Help Creating a file and inserting code into it.?

    I have two questions but first I'll give you what I got. This is just part of the whole program. $Random_Number = rand(100,100000000000); $Check_Number = mysql_query("SELECT * FROM products WHERE randomnumber='$Random_Number'"); $Check_Final = mysql_num_rows($Check_Number); while($Check_Final...
Back
Top