ipwnzphp
Members-
Posts
129 -
Joined
-
Last visited
Never
Everything posted by ipwnzphp
-
IF() statements not working correctly. help!
ipwnzphp replied to ipwnzphp's topic in PHP Coding Help
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? -
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.
-
Need some help on making subdomains on the go!
ipwnzphp replied to ipwnzphp's topic in PHP Coding Help
should be able to make it somehow. It can be done anything can be done. -
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.
-
chmod ("/home/$UserName/public_html", 0777); gives this error chmod() [function.chmod]: Operation not permitted Iam on a cpanel vps
-
Interisting
-
It is for a key system
-
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 ???
-
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]
-
[SOLVED] if statement works but next one dont
ipwnzphp replied to ipwnzphp's topic in PHP Coding Help
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. -
[SOLVED] if statement works but next one dont
ipwnzphp replied to ipwnzphp's topic in PHP Coding Help
its checking to make sure that the filed is true and not false 0 dont show filed 1 show filed -
[SOLVED] if statement works but next one dont
ipwnzphp replied to ipwnzphp's topic in PHP Coding Help
not working still. -
[SOLVED] if statement works but next one dont
ipwnzphp replied to ipwnzphp's topic in PHP Coding Help
no luck still -
[SOLVED] if statement works but next one dont
ipwnzphp replied to ipwnzphp's topic in PHP Coding Help
it shuld be inserting the data then updating what it just added. but its not updating its only adding. -
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()); } } ???
-
[SOLVED] Trying to make a link form a array!
ipwnzphp replied to ipwnzphp's topic in PHP Coding Help
hah! i knew how to do it.. i just forgot cause its so late here. -
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 />";
-
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. ???
-
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 | "; } ???
-
using the date function date("Y-m-d");
-
you offer a user two date range to select from. what do you mean?
-
um. ok.
-
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
-
Shopping Cart Session Storing Help Is Needed!
ipwnzphp replied to ipwnzphp's topic in PHP Coding Help
say if there internet goes out than there ip could change and most likely well. -
Shopping Cart Session Storing Help Is Needed!
ipwnzphp replied to ipwnzphp's topic in PHP Coding Help
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.