Jump to content

Getting Domain Name


Recommended Posts

Hi Guys & Gals,

 

Need some help with the PDF Invoice, I am not an SQL Fundi :oops:, but would like to achieve to get the only domain name onto the invoice, I have tried almost all day today.

 

Possible can someone please point me in the right direction.

 

SQL Statement

$serv = "localhost";
$user = "username";
$pass = "password";
$db   = "mydb";

$con = mysql_connect($serv,$user,$pass);
if (!$con){die('Could not connect: ' . mysql_error());}
mysql_select_db($db, $con);
$result = mysql_query( "SELECT tblinvoices.id, tbldomains.userid, tbldomains.domain, tblorders.ordernum FROM tblorders LEFT JOIN tbldomains ON tbldomains.orderid = ".tblorders.id."LEFT JOIN tblinvoices ON tbldomains.userid = ".tblinvoices.userid." WHERE tblinvoices.userid = ".$userid." AND tblinvoices.id = ".$invoicenum.")
while($row = mysql_fetch_array($result))
 { $row['ordernum'];}
mysql_close($con);

 

All help is welcome

 

Thanks

 

Computers Wheneva

http://www.wheneva.co.za

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated