Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Problem with "VDFormat"
Old 11-18-2008, 10:18 AM Problem with "VDFormat"
Junior Talker

Posts: 2
Trades: 0
Hi all,

I am getting the following error:
HTML Code:
Fatal error:  Call to undefined function VDFormat()
I am not an IT god, infact nowhere near it. I can remember the basics etc. however I can't troubleshoot.

I do know that I need to define VDFormat, however I have no idea where to start with the coding on that.

Can anyone help?

Regards,
travel_user is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-18-2008, 11:25 AM Re: Problem with "VDFormat"
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
line 36
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-18-2008, 11:37 AM Re: Problem with "VDFormat"
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
No, that's wrong, it is line 38.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is online now
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 11-18-2008, 12:24 PM Re: Problem with "VDFormat"
Junior Talker

Posts: 2
Trades: 0
Yeh okay... sorry... I forgot to add in the code that I am using...

HTML Code:
<?php
$sDatabase = 'client_quotes';
$sHostname = 'localhost';
$sPort     = 3306;
$sUsername = '';
$sPassword = '';
$sTable    = 'client_quotes';

$rConn = mysql_connect("$sHostname:$sPort", $sUsername, $sPassword) or die(mysql_error());
mysql_select_db($sDatabase);

$sName = VDFormat($_POST['Name'], true);
$sQuery = "INSERT INTO $sTable SET Name = '$sName'";

$sOtherNames = VDFormat($_POST['OtherNames'], true);
$sQuery = "INSERT INTO $sTable SET OtherNames = '$sOtherNames'";

$sCountry = VDFormat($_POST['Country'], true);
$sQuery = "INSERT INTO $sTable SET Country = '$sCountry'";

$sArrAirport2 = VDFormat($_POST['ArrAirport1'], true);
$sQuery = "INSERT INTO $sTable SET ArrAirport1 = '$sArrAirport1'";

$sArrAirport2 = VDFormat($_POST['ArrAirport2'], true);
$sQuery = "INSERT INTO $sTable SET ArrAirport2 = '$sArrAirport2'";

$sArrAirport3 = VDFormat($_POST['ArrAirport3'], true);
$sQuery = "INSERT INTO $sTable SET ArrAirport3 = '$sArrAirport3'";

$sResort = VDFormat($_POST['Resort'], true);
$sQuery = "INSERT INTO $sTable SET Resort = '$sResort'";

$sHotel = VDFormat($_POST['Hotel'], true);
$sQuery = "INSERT INTO $sTable SET Hotel = '$sHotel'";

$sDepAirport = VDFormat($_POST['DepAirport'], true);
$sQuery = "INSERT INTO $sTable SET DepAirport = '$sDepAirport'";

$stransfers = VDFormat($_POST['transfers'], true);
$sQuery = "INSERT INTO $sTable SET transfers = '$stransfers'";

$sstage = VDFormat($_POST['stage'], true);
$sQuery = "INSERT INTO $sTable SET stage = '$sstage'";

$sRef1 = VDFormat($_POST['Ref1'], true);
$sQuery = "INSERT INTO $sTable SET Ref1 = '$sRef1'";

$sRef2 = VDFormat($_POST['Ref2'], true);
$sQuery = "INSERT INTO $sTable SET Ref2 = '$sRef2'";

$sRef3 = VDFormat($_POST['Ref3'], true);
$sQuery = "INSERT INTO $sTable SET Ref3 = '$sRef3'";

$sRef4 = VDFormat($_POST['Ref4'], true);
$sQuery = "INSERT INTO $sTable SET Ref4 = '$sRef4'";

$sTotalTripCost = VDFormat($_POST['TotalTripCost'], true);
$sQuery = "INSERT INTO $sTable SET TotalTripCost = '$sTotalTripCost'";

$sCommission = VDFormat($_POST['Commission'], true);
$sQuery = "INSERT INTO $sTable SET Commission = '$sCommission'";

mysql_query($sQuery);
?>
travel_user is offline
Reply With Quote
View Public Profile
 
Old 11-18-2008, 01:04 PM Re: Problem with "VDFormat"
gmcalp's Avatar
Novice Talker

Posts: 8
Name: Geoff
Trades: 0
It looks like you're using VDaemon, you should go there to get the help you need:

http://www.x-code.com/vdaemon_web_form_validation.php

(also check out there sample section)

Last edited by gmcalp; 11-18-2008 at 01:07 PM..
gmcalp is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Problem with "VDFormat"
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.60642 seconds with 12 queries