Posts by Paulo Lima • 35 points
5 posts
-
0
votes1
answer1973
viewsQ: Use dropdown select in php mysql search autocomplete
I have this input=[text] with autocomplete that offers the title with a link (a href=) in the mysql database, but would like to create 'categories' to select the links that the autocomplete offers…
-
1
votes1
answer1034
viewsQ: Invalid Mysql PHP PDO Data Source
I’m having problems connecting PDO to mysql database. Database_connection.php: <?php class Database_connection { private $db_host = "local"; private $db_name = "root"; private $db_user = "user";…
-
0
votes0
answers65
viewsQ: SQL error in your SQL syntax
I am importing an sql with the following code: CREATE TABLE blog ( id INT PRIMARY KEY AUTO_INCREMENT, title VARCHAR(250) NOT NULL, body TEXT NOT NULL, url VARCHAR(250) NOT NULL); But is returning…
-
1
votes0
answers568
viewsQ: PHP - Insert database image in pdf generated via fpdf
I am using the fpdf system to generate pdf files through an html form. But I would like to insert in the pdf an image that is uploaded in the mysql database. The sintese to insert image in pdf is:…
-
1
votes1
answer6725
viewsQ: PHP - How to insert a variable link into a variable href?
I’m trying this way: <?php $link = "'index.php?id=echo ['post_id']; " ?> <?php while ($row = mysql_fetch_array($result)) { echo "<span class='survey-name'><a href='$link'>".…