Jump to content

Moez

New Members
  • Posts

    6
  • Joined

  • Last visited

Moez's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. the same query is running in other function function get_all_details() { global $connection ; $query = mysql_query("SELECT * FROM books LIMIT 5"); while( $detail= mysql_fetch_array($query)) { echo "$detail[isbn]<br> $detail[title]<br>$detail[price]<br>$detail[discription]" ; } }
  2. if i use define("DB_USERNAME", "root "); also same error username is root
  3. define("DB_HOST", "localhost"); define("DB_USERNAME", "locahhost'@'root "); define("DB_PASSWORD", NULL); define("DB_DATABASE", "poll"); if (!$db = @mysqli_connect(DB_HOST,DB_USERNAME,DB_PASSWORD,DB_DATABASE)) { echo 'Could not connect to db<br />'; exit;
  4. if (!$db_conn = new mysqli('localhost', 'poll', 'poll', 'poll')) { echo 'Could not connect to db<br />'; exit; } in new mysqli() what are parameter use , poll is db or password ??
  5. in imagettfbbox() function the 3rd parameter is giving error invalid font filename i think my path is ok tthen why will be mistake in $fontname ???
  6. putenv('GDFONTPATH=C:\Windows\Fonts') ; $fontname = arial; do{ $fontname-- ; $bbox = imagettfbbox($font_size,0,$fontname, $text);
×
×
  • 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.