Web Design

I know there are mysql results but nevery any in php

I have a query that never returns any results or errors. When I run the sql directly through phpmyadmin the results come back fine.

just trying to dump row right now to see whats coming back

<?php
$link
= mysql_connect('localhost', 'mysql_user', 'mysql_password');
if (!
$link) {
    die(
'Could not connect: ' . mysql_error());
}

$sql = "SELECT ProductID,Name FROM products WHERE ProductID > 5 ORDER BY ProductID DESC";
$query = mysql_query($sql);
while (
$row = mysql_fetch_object($query)){
var_dump($row);
}
?>

Warning: session_start() [function.session-start]: Cannot send session cookie

I'm just starting php and test page was working but now getting
Warning: session_start() [function.session-start]: Cannot send session cookie

I just made some minor edits and now its not working.

How do I stop double posts in php

I'm helping someone with an old someone else made admin program to add / edit / delete records

Some of the people working on it are always pressing the back and forward button and reposting the info multiple times. Is there a way keep this from happening?

not the real code but close enough

<form method="post" action="addrecord.php">
<input type="text" name="title" />
..
..
..
<input type="submit" value="Add Record" />
</form>

The addrecord.php page

<?
include_once('dataconnection.php');
$title=$_POST['title'];
more fields
.
.
.

Query results into an array only storing one result

I'm successfully connecting to a mssql database and getting results, but I'm trying to place them in an array for display on the page.

The following always gets 1 result and nothing more.
I thought arrays are supposed to store multiple results?

<?php

$conn=odbc_connect('*****','******','*****');
if (!$conn)
{exit("Connection Failed: " . $conn);}

$sql="select Name,Id,Group from members";
$rs=odbc_exec($conn,$sql);
if (!$rs)
{exit("Error in SQL");
echo '';

while (odbc_fetch_row($rs))
{
$id=odbc_result($rs,"Id");

How turn one variable into two in PHP

I have a form that only has one field for name and I want to get the two values submitted and store first and last as seperate values in the database. How would I do that?

<?php
$name
= $_POST['name'];
...
?>

Adding an editable area to drupal

I have a theme thats working great but I want to add a new block region so I can edit an area from within the admin / not having to open template files to alter.

How can I tell if page is SSL in coldfusion

In IE if any images or scripts are coming from https I get the warning

This page contains both secure and nonsecure items.

Do you want to display the nonsecure items?

How can tell if the page is in SSL and rewrite the image / script tags

Help with reCaptcha on coldfusion site

I've been asked to place a recaptcha on a site using coldfusion. I'm using http://recaptcha.riaforge.org/ - ColdFusion reCAPTCHA tag and a quick demo worked perfectly.

But when I place it in my form it appears but none of the info from the captcha seems to be coming through.

I var dumped the form and there were no extra fields at all.

Any pointers here?

How can I find out and fix this error in Drupal - Call to undefined function views_build_view()

Whenever I run cron.php it hangs with the error

Fatal error: Call to undefined function views_build_view() in path-to-my-install/includes/common.inc(1537) : eval()'d code on line 3

The site has been up for some time but has multiple admin / authors and no one knows what happened.

How can I narrow down what could be causing this I've looked through tons of files and even raw database fields but still nothing that I can see would be causing this.

How do I get sef friendly urls in a Joomla Feed

For months now I've been wondering why search engines keep getting raw (non opensef) links to my sites pages, finally realized it was coming from my RSS which isn't using the sef urls. Could I manually alter the rss output to fix this?
Joomla 1.0 opensef (which is no longer available site is gone)

Syndicate content