User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 373,870 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,064 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 40 of 71
Search took 0.01 seconds.
Posts Made By: amigura
Forum: HTML and CSS May 18th, 2008
Replies: 1
Views: 304
Posted By amigura
Re: Tables & Css

change table cellspacing="0"
add padding: 5px; to table#sample td
Forum: PHP May 17th, 2008
Replies: 10
Views: 393
Posted By amigura
Forum: PHP May 17th, 2008
Replies: 10
Views: 393
Posted By amigura
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
Posted By amigura
Re: Sort Problem

when i try it i get

ASAD
ASAD
ASAD
AsAD
Asad
Asad
asad
asad
Forum: PHP May 17th, 2008
Replies: 10
Views: 387
Posted By amigura
Re: Sort Problem

SELECT * FROM table_name ORDER BY column_name, BINARY column_name ASC
Forum: PHP May 17th, 2008
Replies: 10
Views: 387
Posted By amigura
Re: Sort Problem

try

SELECT * FROM table_name ORDER BY BINARY column_name ASC
Forum: PHP May 17th, 2008
Replies: 1
Views: 235
Posted By amigura
Re: Can i load my page before displaying it ??

do a search in google on 'preload page' or post in javascript
Forum: PHP May 17th, 2008
Replies: 10
Views: 387
Posted By amigura
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
Posted By amigura
Re: Sort Problem

just a guess check for extra spaces
Forum: PHP May 17th, 2008
Replies: 10
Views: 393
Posted By amigura
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
Posted By amigura
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
Posted By amigura
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
Posted By amigura
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
Posted By amigura
Re: Cutting amount of work and loading time?

merge thumb and url into image - colunm just contains name e.g 1.jpg
your ref seems to be primary key and date. if true, get rid of ref.

//...
Forum: PHP May 16th, 2008
Replies: 1
Views: 234
Posted By amigura
Re: error checking for radio button and check boxes

what is the error?
what was u trying to do?
Forum: PHP May 16th, 2008
Replies: 2
Views: 163
Posted By amigura
Re: Calculating Query

<?php

$age = 21;

if ($age >61)

{

$age_score = '0.5';
Forum: PHP May 16th, 2008
Replies: 19
Views: 793
Posted By amigura
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
Posted By amigura
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
Posted By amigura
Re: variable values

to see wat you get.

echo $path."/".$image_path;
Forum: PHP May 15th, 2008
Replies: 19
Views: 793
Posted By amigura
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
Posted By amigura
Re: How much data can a post variable hold?

look for post_max_size

<?php echo phpinfo(); ?>
Forum: PHP May 11th, 2008
Replies: 19
Views: 793
Posted By amigura
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
Posted By amigura
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
Posted By amigura
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
Posted By amigura
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
Posted By amigura
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
Posted By amigura
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
Posted By amigura
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
Posted By amigura
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
Posted By amigura
Re: how to send sms from web site to mobile

u will need a sms provider like clicktell. some info

http://www.clickatell.com/developers/php.php
Forum: PHP May 11th, 2008
Replies: 22
Views: 1,480
Posted By amigura
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
Posted By amigura
Re: How much data can a post variable hold?

well depends on your max post memory. i think default is 8mb, which is for more than enought for your data needs.
Forum: PHP May 6th, 2008
Replies: 3
Views: 247
Posted By amigura
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
Posted By amigura
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
Posted By amigura
Re: Oracle connection with PHP

http://uk3.php.net/manual/en/oci8.examples.php
Forum: PHP May 2nd, 2008
Replies: 11
Views: 468
Posted By amigura
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
Posted By amigura
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
Posted By amigura
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
Posted By amigura
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
Posted By amigura
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...
Showing results 1 to 40 of 71

 
All times are GMT -4. The time now is 3:35 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC