Jump to content

hiphoplsr

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

hiphoplsr's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. ok, so i realized part of my problem. my version of pdflib needs the pdf_begin_page_ext function; which includes another parameter... problem is, i get the same error! so... how do i call this outside of the object scope?
  2. yo rick, i think it might be as simple as this.... is your select_db tag wrong? heres what i use: [code]mysql_connect(localhost,$username,$password); @mysql_select_db($database) or die( "Unable to select database");[/code] [!--quoteo(post=380233:date=Jun 5 2006, 09:25 AM:name=Rick_Browne)--][div class=\'quotetop\']QUOTE(Rick_Browne @ Jun 5 2006, 09:25 AM) [snapback]380233[/snapback][/div][div class=\'quotemain\'][!--quotec--] [code]   $db = mysql_connect("*****", "*****", "*****");   mysql_select_db("contacts",$db); [/code] The table builds itself fine and enters in all the correct coordinates- but the name and type fields remain empty. As you can see I have tried a different method for both to try and find a solution but my php is a bit rusty these days :( Im sure its something simple ive missed..... [/quote]
  3. whats up kids? first post on these forums... i tried to search for an answer to this but apparently the search function here is down completely, so i didnt find anything. aaanyways, ive been programming in php for a while now, but never using the pdflib extension. so i picked up a tutorial from sitepoint.com (http://www.sitepoint.com/article/generate-pdfs-php) and it doesnt seem to work. i checked my phpinfo, and i have pdflib 6.0.1, so its not a compatibility issue i dont think, and according to the php manual the code snippet is right... heres my error: [b]Fatal error: pdf_begin_page(): [2100] PDF_begin_page: Function must not be called in 'object' scope in /usr/local/www/poindexters/public_html/fullcontrol/pdfgen.php on line 9[/b] and here's line 9: [b]pdf_begin_page($pdf, 595, 842);[/b] any help would be greatly appreciated.... oh, im also on apache with php version 4.4.2
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.