Search found 12 matches

by VarwigDude
Sun Feb 20, 2011 10:10 am
Forum: PHP - Code
Topic: XML Help
Replies: 1
Views: 140

XML Help

Hello Everyone, I am trying to Use SimpleXML to Work, a Very simple Echo of a Root. I cannot for the life of me figure this out. Any Help would be appreciated. Nothing will print. <?php $file = "http://weather.aero/dataserver_current/httpparam?dataSource=metars&requestType=retrieve&form...
by VarwigDude
Wed Mar 03, 2010 1:04 pm
Forum: PHP - Code
Topic: PHP Smarty HTML columns
Replies: 2
Views: 89

PHP Smarty HTML columns

Hello all,

I cannot find a example to where if i have products in a mysql table and i want to use 3 columns to display the products. Then After the first 3 products are displayed then there is a new row. Anyone know a simple way to do this with smarty and PHP?

Thanks Everyone
by VarwigDude
Sun Feb 21, 2010 2:44 pm
Forum: PHP - Code
Topic: PHP Arrays and Smarty
Replies: 1
Views: 64

PHP Arrays and Smarty

Hello Everyone. I have this Issue. I am using Smarty with Arrays. I cannot get this array to form correctly from a database. the category_name array is not forming correctly. It lays it our on the HTML side as 1=>"Category Name". How can i make a key and a value from a MySQL Database and h...
by VarwigDude
Fri Jun 26, 2009 5:31 pm
Forum: PHP - Code
Topic: PHP and XML
Replies: 4
Views: 270

Re: PHP and XML

echo '<?xml version="1.0"?>';. Worked Thank You :D
by VarwigDude
Thu Jun 25, 2009 6:46 pm
Forum: PHP - Code
Topic: PHP and XML
Replies: 4
Views: 270

PHP and XML

I'm trying to Write a XML file with PHP The Code I have is   <?php   header("Content-type: text/xml");   $myServer = "MYSERVER\SQLEXPRESS"; $myUser = "sa"; $myPass = "MYPW"; $myDB = "cars";   //connection to the database $dbhandle = mssql_connect($my...
by VarwigDude
Sun May 31, 2009 10:44 pm
Forum: Databases
Topic: 500 Error when connecting to MSSQL
Replies: 0
Views: 2202

500 Error when connecting to MSSQL

Hey Everyone! Have an tring to test php with MSSQL Express on my windows 2008 server. I run the Following Code   <?php if (function_exists('mssql_connect')) echo "Okay, mssql_connect is there"; else echo "Hmmm .. mssql_connect is not even there"; ?>   And The Result is "Okay...
by VarwigDude
Sun May 10, 2009 11:20 am
Forum: PHP - Code
Topic: PHP Time Showing incorrect time
Replies: 1
Views: 130

PHP Time Showing incorrect time

Can anyone Tell me why when I run this code <?php // a START time value $end_time_and_date = time() + (7 * 24 * 60 * 60);   $current_time = time();   $diff = $end_time_and_date - $current_time;   $display_end_time_and_date = (date("F dS Y h:i:s A",$diff));   echo $display_end_time_and_date...
by VarwigDude
Sat May 09, 2009 11:30 pm
Forum: PHP - Code
Topic: php date
Replies: 2
Views: 134

php date

I can't seem to get this. I want to get a date from a mysql row. But i want to add 10 hours to it when I want to display the time.

example
$end_time_and_date = $row['end_time_and_date'] + 10h;
by VarwigDude
Wed Apr 08, 2009 12:58 am
Forum: PHP - Code
Topic: PHP Header Help
Replies: 2
Views: 239

Re: PHP Header Help

Worked Thank You Very Much :mrgreen:
by VarwigDude
Tue Apr 07, 2009 11:41 pm
Forum: PHP - Code
Topic: PHP Header Help
Replies: 2
Views: 239

PHP Header Help

I am trying to redirect a page for certain products. My Code Is   $getproductid = $_GET["product_id"]; .... header('Location: http://www.myswebsite.com/auction/?x=pr ... productid');   It does redirect but the url is http://www.mywebsite.com/auction/?x=product&product_id=$getproductid....
by VarwigDude
Tue Mar 31, 2009 8:30 pm
Forum: PHP - Code
Topic: PHP login Script help with sessions
Replies: 3
Views: 142

Re: PHP login Script help with sessions

i tried $query  = "SELECT firstname FROM $tbl_name WHERE username='$myusername' or email='$myusername' and password='$mypassword"; $result2 = mysql_query($query); while($row = mysql_fetch_row($result2)) { $firstname    = $row['firstname']; $row['firstname'] = $_SESSION['firstname']; }   Bu...
by VarwigDude
Tue Mar 31, 2009 8:12 pm
Forum: PHP - Code
Topic: PHP login Script help with sessions
Replies: 3
Views: 142

PHP login Script help with sessions

I have a login script in which it works fine. on my homepage i want it to display the first name of the user. I have it where i can show the username but nothing else. I have tried different sessions and mysql functions nothing works. Any Suggestions. My Login page is include ("functions.php&qu...