Jump to content

ipwnzphp

Members
  • Posts

    129
  • Joined

  • Last visited

    Never

Everything posted by ipwnzphp

  1. i mean i tired elseif and than on the last elseif do a else. But how do u think i could get it to work?
  2. i have a script that displays vendors and i have levels set in the database and i am trying to make level 2 show first than level 3 than level 4 than level 1. But they seem to not work. the code for the statements isn't hard to spot they look like <? if($vendLevel == "2") { ?> Here is a link to the code http://www.trixielugosi.com/code/vendors.phps i don't get why it isn't listing them them like i am saying to.
  3. should be able to make it somehow. It can be done anything can be done.
  4. I fount this tut on webhostingfreaks and it dont seem to work all that good. Can anyone help out here? 1. Set up an error document in your .htaccess file that redirects every single 404 to a file called maybe redirection.php 2. Add a wildcard DNS record in your zone files, so that [whateverhere].yourdomain.com points to the domain IP. 3. Add a wildcard serveralias in your apache configs by using: ServerAlias *.yourdomain.com 4. Write the following code in your redirection.php file <? $url=$_SERVER["REQUEST_URL"]; $newurl=str_replace(".yourdomain.com","",$url); $newcomplete="http://yourdomain.com/".$newurl; Header("Location: ".$newcomplete); ?> So when someone enters a subdomain, let's say myself.yourdomain.com they get redirected to yourdomain.com/myself. Iam trying to say like if somone goes to http://www.username.mysite.com it will pull the id form this link user_system/profile.php?pg=view&id=1114 on the $_GET['id'] do a mysql than pull the username back and then make the subdomain.
  5. chmod ("/home/$UserName/public_html", 0777); gives this error chmod() [function.chmod]: Operation not permitted Iam on a cpanel vps
  6. Im trying to think of a way to encode php with out using zend encoder. Say ya dont have the money to buy zend encoder. Base 64 isnt good enough people can just echo out the decode and then change what they need recode it than use the new output to decode. So how could you really go about this? Descions Descions ???
  7. Im trying to get mod_rewrite to work on phpfox and my host dose support it. I use hostgator and this file is a really work of art. Its giving a 400 error bad request. code is below RewriteEngine On RewriteCond %{REQUEST_URI} !^<%SUBFOLDER%>file/.* RewriteCond %{REQUEST_URI} !^<%SUBFOLDER%>install/.* RewriteCond %{REQUEST_URI} !^<%SUBFOLDER%>update/.* RewriteCond %{REQUEST_URI} !^<%SUBFOLDER%>design/.* RewriteCond %{REQUEST_URI} !^<%SUBFOLDER%>plugins/.* RewriteCond %{REQUEST_URI} !^<%SUBFOLDER%>vbforum/.* RewriteRule ^index.php(/.*)$ <%SUBFOLDER%>index.php?do=$1 [L] RewriteCond %{REQUEST_URI} !^<%SUBFOLDER%>file/.* RewriteCond %{REQUEST_URI} !^<%SUBFOLDER%>install/.* RewriteCond %{REQUEST_URI} !^<%SUBFOLDER%>update/.* RewriteCond %{REQUEST_URI} !^<%SUBFOLDER%>design/.* RewriteCond %{REQUEST_URI} !^<%SUBFOLDER%>plugins/.* RewriteCond %{REQUEST_URI} !^<%SUBFOLDER%>vbforum/.* RewriteCond %{REQUEST_URI} !^<%SUBFOLDER%>index.php RewriteRule ^(.*)$ <%SUBFOLDER%>index.php?do=/$1 [L]
  8. signs that ur programing to long.. you think a filed name is filed name when its not.. a bone head mistake.. lol topic sloved! i misspelled the filed name.
  9. its checking to make sure that the filed is true and not false 0 dont show filed 1 show filed
  10. it shuld be inserting the data then updating what it just added. but its not updating its only adding.
  11. Hello, The frist if statement works but the next one dosent. if ($pull_haunt_cat[filed_name] == "1") { $listing_name = $_POST[listing_name]; if ($listing_name == NULL) { echo "You must fill out every filed on the form before you can add your listing OR You must accpet the submit listing policy!"; } else { mysql_query("INSERT INTO `listings` (listing_name) VALUES ('$listing_name')") or die (mysql_error()); } } $query = mysql_query("SELECT * FROM `listings` WHERE listing_name = '$listing_name'") or die (mysql_error()); $row = mysql_fetch_array($query); if ($pull_haunt_cat[filed_street] == "1") { echo "ff"; $listing_street = $_POST[listing_street]; if ($listing_street == NULL) { echo "You must fill out every filed on the form before you can add your listing OR You must accpet the submit listing policy!"; } else { mysql_query("UPDATE `listings` SET listing_street= '$listing_street' WHERE id = '$row[id]'") or die (mysql_error()); } } ???
  12. hah! i knew how to do it.. i just forgot cause its so late here.
  13. Iam trying to make a link form a array ??? $result = mysql_query("SELECT * FROM `CATS` WHERE PING = '1'") or die(mysql_error()); $PING = Array(); while ($row = mysql_fetch_array($result)) { $PING[] = "<a href='?c_action=listings=$PING'>$row[ping_name]</a>"; } echo implode( ' | ', $PING) . "<br />";
  14. Thanks now i got another issue. $result = mysql_query("SELECT * FROM `CATS` WHERE PING = '1'") or die(mysql_error()); $count=0; $PING = Array(); while ($row = mysql_fetch_array($result)) { $PING[] = $row[cat_name]; } if($count == "3") { $count = 0; echo "<br>"; } echo implode(' | ', $PING); $count++; its spoused to echo 3 out and then br than 3 more and its not now. ???
  15. Hello, I would like to know how to remove the ending | of my mysql results. My code is below $result = mysql_query("SELECT * FROM `CATS` WHERE PING = '1'") or die(mysql_error()); while ($row = mysql_fetch_array($result)) { $ping = $row[PING_NAME]; echo "$ping | "; } ???
  16. using the date function date("Y-m-d");
  17. you offer a user two date range to select from. what do you mean?
  18. Hello, i have the dates stored in my database and all but how would i show the stats by month. like Jan to Feb every month it just shows the stats for that month. How would i make my stats do this? Thanks Amy
  19. say if there internet goes out than there ip could change and most likely well.
  20. i tried storing it in a cookie and then if you do the ip and there ip changes than it wont match whats in the cart so there for u have mysql info thats just sitting there that cant be removed by the user.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.