Jump to content

mycro

Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

mycro's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I think what I want to do is redirect all requests to otherpage.php if it is not index.php RewriteEngine on RewriteRule ^(.*)$ redirect\.php?id=$1 [L] this doesn't seem to work. I know I need a condition in there too for index.php. I appreciate the help
  2. Basically I have very simple site with only one real page. I don't know if this will be relavent for the way I will get this working. Anyway, I basically want to redirect www.mysite.com/variable123 to a different page, such as www.yoursite.com/you. The only problem is that this will literally be ...com/anything without .php or .html or any prefix. I guess I'll need all requests EXCEPT index.php to go to redirect.php?id=anything and from there query my database and if user=variable then go to page=yoursite.com/you using redirect headers. How can I accomplish this? I'll have the PHP and MySQL part down fine, I'm just not sure how to get this htaccess stuff going. Thank you
  3. Does anyone have any ideas on how I can upload an image to a MySQL blob? I appreciate your help.
  4. I need to send an e-mail to all of my users in my database to inform them of an update. I have the field "email" in my user table, but the problem is that I have about 40,000 users on my site that I need to inform. What would be the best way to do this? Thanks.
  5. Hmm still nothing. This makes no sense!!
  6. no.. it's "topicid" ... I can't figure this out.
  7. For some reason, the following code will not retreive the row data [code]$query2 = "SELECT * FROM topics WHERE timestamp='$timestamp'"; $result1 = mysql_query($query2, $conn); while($row=mysql_fetch_array($result1)) { echo $row[topicid]; }[/code] This same thing works if I simply change $row[topicid] to a different field, such as row[username]. There IS data in all of the topicid rows, btw. If it helps, "topicid" is the primary index in my database, and auto incriments. Thank you!
×
×
  • 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.