Forums Page 108
-
Breaking results into week blocks
I have a set of dates (and times), which are returned from a mySQL query. These usually span from 1-2 months and I need to be able to separate the…
-
Take info from one coloum and move to another
Hi all, I have this: Code: [Select]$array = "SELECT stock_id FROM stocks WHERE stock_id BETWEEN '1' and '5' "; $res = mysql_query($array); $count =…
-
natcasesort works on one server but not on another
Hi I have a problem that I was hoping that someone can help me with. I'm trying to use natcasesort() to sort an array. This works fine on my laptop…
-
How to use Substr
I want to check for the word CATEGORY: inside a string which can be CATEGORY: ITEM and remove the word CATEGORY: leaving only ITEM inside the…
-
DateObject and Nulls
Hi all, I have an array mapped to a value object. One of the items in the array is a PHP DateObject, and I need to format this field appropriately…
-
parse error
On my local machine I keep getting parse error for my footer. When I put it online, it doesn't show anything. I've searched on google but not found a…
- Advertisement
-
Extending Exception to contain method name
I was wondering, if there's a way to extend Exception in such a way, that it would contain name of a method where it has been thrown. Right now I…
-
iMatch stored value with the current value in a loop
Hello, I have a MySQL db were I store articles in. I have a form to fill these articles, and in that form I can select images who are stored into a…
-
Greek characters in php
Hi, I'm making a script and I m using for first time greek characters. I started to write a simple drop down menu that loads some city names from the…
-
Run function every 5 mins ??
I have a function PostMessage() How can I run it every 5 mins ??
-
An odd assignment statement. Can someone explain this assignment to me?
What purpose is served by the bit of code between the two equal signs in the $installurl set? Is this some sneaky way of setting $baseurl? I remember…
-
Alternate messaging
I have 4 strings in MySQL db1 $string1 : Hello $string2 : Hi $string3 : Great $string4 : Thanks And I have 3 accounts MySQL db2 $User1 : $Pw1 $User2…
-
Automatic Webpage ??
I have a page www.mysite.com/test.php with a <form> <textarea name="data" cols="100" rows="20"></textarea> //to enter the page…
-
While Problem
i am having a problem with a while statement here is the code Code: [Select]<?php session_start(); if(!session_is_registered(username)){…
- Advertisement
-
Warning message
I've put a website that I was doing live and I'm getting this warning message when I try to add a new user when I'm not logged in. It should redirect…
-
array_combine() trouble w/csv file
I have a problem with a piece of code I wrote to import some records from a csv file into mysql. I have a .csv file with about 300 records in it. The…
-
phpMailer will not connect using SMTP
I am trying to use phpMailer with smtp: Code: [Select]$mailer = new PHPMailer(); $mailer->IsSMTP(); $mailer->Mailer = "smtp"…
-
Update Database
Hi All, I have a problem with this: Code: [Select]<?php session_start(); include('../common/dbconnect.php'); $stock_id = $_GET['stock_id']…
-
What am I missing here? Help!
Hello all!. I can't seem to get this working right. Well - it renders right, but something is going wrong. It's a set of filters for events. The…
-
natcasesort works on one server but not on another
Hi I have a problem that I was hoping that someone can help me with. I'm trying to use natcasesort() to sort an array. This works fine on my laptop…