Forum: HTML and CSS May 18th, 2008 |
| Replies: 1 Views: 304 Re: Tables & Css change table cellspacing="0"
add padding: 5px; to table#sample td |
Forum: PHP May 17th, 2008 |
| Replies: 10 Views: 393 |
Forum: PHP May 17th, 2008 |
| Replies: 10 Views: 393 Re: how to explode records? :D i just noticed the limit 1 in original code. remove this and test original code or try one below.
<div id="news">
<div class="asnazzy">
<b class="atop"><b class="ab1"></b><b class="ab2... |
Forum: PHP May 17th, 2008 |
| Replies: 10 Views: 387 |
Forum: PHP May 17th, 2008 |
| Replies: 10 Views: 387 Re: Sort Problem SELECT * FROM table_name ORDER BY column_name, BINARY column_name ASC |
Forum: PHP May 17th, 2008 |
| Replies: 10 Views: 387 |
Forum: PHP May 17th, 2008 |
| Replies: 1 Views: 235 |
Forum: PHP May 17th, 2008 |
| Replies: 10 Views: 387 Re: Sort Problem http://bugs.mysql.com/bug.php?id=30675
http://bugs.mysql.com/bug.php?id=29977 |
Forum: PHP May 17th, 2008 |
| Replies: 10 Views: 387 |
Forum: PHP May 17th, 2008 |
| Replies: 10 Views: 393 Re: how to explode records? your output result has to be in side the query loop. if outside only one result is done.
<div id="news">
<div class="asnazzy">
<b class="atop"><b class="ab1"></b><b class="ab2 color_c"></b><b... |
Forum: PHP May 17th, 2008 |
| Replies: 9 Views: 1,351 Re: Session time out in PHP yeah the isset would of helped :$
nice rewrite Rockcreektech apart from $_SESSION['start'] needs to be $_SESSION['timeout']; |
Forum: PHP May 17th, 2008 |
| Replies: 3 Views: 323 Re: Cutting amount of work and loading time? the $info['$big_image'] is not from db it is a set varible so it should be echo $big_image and same with $info['ref'] - echo $ref;
the image and ref should go below db query to get info... |
Forum: PHP May 17th, 2008 |
| Replies: 9 Views: 1,351 Re: Session time out in PHP session_start();
// 10 mins in seconds
$inactive = 600;
$session_life = time() - $_session['timeout'];
if($session_life > $inactive)
{ session_destroy(); header("Location: logoutpage.php"); } |
Forum: PHP May 17th, 2008 |
| Replies: 3 Views: 323 |
Forum: PHP May 16th, 2008 |
| Replies: 1 Views: 234 |
Forum: PHP May 16th, 2008 |
| Replies: 2 Views: 163 |
Forum: PHP May 16th, 2008 |
| Replies: 19 Views: 793 Re: $_server['script_name'] the original code works ok apart from missing ;
u should use code tags code here [/CODE ]
[CODE]<!-- Navigation item -->
<?php
if (strrpos($_SERVER['SCRIPT_FILENAME'],... |
Forum: PHP May 15th, 2008 |
| Replies: 19 Views: 793 Re: $_server['script_name'] it is because u have $style_home on all links therefore when $style_home is active for one link it will do it for all links. do $style_home1 $style_home2 or something
i tried no space thing and... |
Forum: PHP May 15th, 2008 |
| Replies: 4 Views: 222 |
Forum: PHP May 15th, 2008 |
| Replies: 19 Views: 793 Re: $_server['script_name'] ok did u change index.php to other file names. u didn't say which one was working so i choose this. it will work on all files in bobo folder.
but i will also say that any folder combination will... |
Forum: PHP May 11th, 2008 |
| Replies: 3 Views: 229 |
Forum: PHP May 11th, 2008 |
| Replies: 19 Views: 793 Re: $_server['script_name'] hmm for both $_SERVER['SCRIPT_NAME'] and $_SERVER['PHP_SELF'] not to work you might have a problem with your php.
$bobo = strrpos($_SERVER['SCRIPT_FILENAME'], "/bobo/index.php");
if ($bobo)... |
Forum: PHP May 11th, 2008 |
| Replies: 9 Views: 585 Re: File Upload Variables i don't know if it will work but you need to pass file vars to form 2 then on to form 3
you should have upload on form 2 or 3 for safety reason.
Page 2:
<form action="insert.php"... |
Forum: PHP May 11th, 2008 |
| Replies: 3 Views: 184 Re: Sending Emails no its free just as long to have a email account with your domain and send mail/smtp enable which it should be. |
Forum: PHP May 11th, 2008 |
| Replies: 3 Views: 184 Re: Sending Emails you might open yourself to spam.
http://www.w3schools.com/PHP/php_secure_mail.asp
http://uk3.php.net/manual/en/function.mail.php
http://uk3.php.net/manual/en/book.imap.php |
Forum: PHP May 11th, 2008 |
| Replies: 3 Views: 29,228 Re: Basic PHP Includes you could have different paths like
$nav='/website/home/templates/navigation/';
$temp_base='/website/home/templates/';
$base_url='/website/home/';
// ... |
Forum: PHP May 11th, 2008 |
| Replies: 19 Views: 793 Re: $_server['script_name'] comparing $_SERVER['SCRIPT_NAME'] == 'index.php' will not work for you as /bobo/index.php' and '/aktuelle seite/index.php' will give same style.
try below to see wat you get
echo... |
Forum: PHP May 11th, 2008 |
| Replies: 10 Views: 7,676 Re: how to send sms from web site to mobile not sure it that is possible but you might be abled to run a vb script
http://uk3.php.net/manual/en/refs.utilspec.windows.php
http://uk3.php.net/manual/en/function.exec.php |
Forum: PHP May 11th, 2008 |
| Replies: 9 Views: 585 Re: File Upload Variables u could do it all in one page in stead of 3 pages. some info about restricting uploads
http://www.w3schools.com/php/php_file_upload.asp
use this on db inputs - mysql_real_escape_string ($user_input)... |
Forum: PHP May 11th, 2008 |
| Replies: 10 Views: 7,676 |
Forum: PHP May 11th, 2008 |
| Replies: 22 Views: 1,480 Re: if file exists if you are viewing the message in a email and you have just changed the image then it will always point to the old image because it has been download and stored in inbox.
the code below will only... |
Forum: PHP May 11th, 2008 |
| Replies: 3 Views: 229 |
Forum: PHP May 6th, 2008 |
| Replies: 3 Views: 247 Re: php query headers guessing this is wat you mean. fill in missing names.
echo "<table cellpadding=10 border=0>
<tr><td>first name</td><td>last name</td><td>a</td><td>b</td><td>c</td><td></td><td>d</td>";
... |
Forum: PHP May 6th, 2008 |
| Replies: 22 Views: 1,480 Re: if file exists file_exists will not work on http://
$path_image_folder='mercury/image/thumbs';
foreach($exts as $ext) {
if (file_exists($path_image_folder.'/'.$image_name.'.'.$ext)) {
$image =... |
Forum: PHP May 2nd, 2008 |
| Replies: 1 Views: 212 |
Forum: PHP May 2nd, 2008 |
| Replies: 11 Views: 468 Re: Replacing mysql fields clear your cache first.
// check to see if cookie is set
echo $_COOKIE['UserId'];
// check to see if any row have been updated. should be more than 0 if update
echo mysql_affected_rows(); |
Forum: PHP May 2nd, 2008 |
| Replies: 4 Views: 519 Re: list box in php The current code does db insert on a 1 - 5 selection.
so i understand bettter.
so the max is 5. is there a minimum?
or are you saying the user has to select 5 minimum and 5 max.
if so change... |
Forum: PHP May 2nd, 2008 |
| Replies: 4 Views: 519 Re: list box in php if you have 5 colunms in db setup then forget for loop just input results as $mylist[0], $mylist[1], etc
if you have one field use... |
Forum: PHP May 2nd, 2008 |
| Replies: 3 Views: 235 Re: form to email in dream weaver well i have not reviewed all your code but wat stood out was first bit in php.
when you set $firstField = $_POST['first'];
this should not be
First Name: $first
it should be
First Name:... |
Forum: PHP May 1st, 2008 |
| Replies: 11 Views: 468 Re: Replacing mysql fields it will work if you set a cookie. you can not set a session value then try and retrieve it as a cookie and vice virsa.
you have this at top session_start(); so i am guessing you are using... |