Search
 
SCRIPT & CODE EXAMPLE
 

SQL

ring MySQL Save Image inside the database

See "Read file" + nl
cFile = read("testsmahmoud.jpg")
con = mysql_init()
See "Connect to database..." + nl
mysql_connect(con, "localhost", "root", "root","mahdb")
See "Escape string..." + nl
cFile = mysql_escape_string(con,cFile)
stmt = "INSERT INTO photo(id, data) VALUES(1, '" + cFile + "')"
See "Insert data..." + nl
mysql_query(con,stmt)
See "Close database..." + nl
mysql_close(con)
Comment

PREVIOUS NEXT
Code Example
Sql :: yesql 
Sql :: postgres grep entire database 
Sql :: create trigger in phpmyadmin 
Sql :: uninstall mysql centos 7 
Sql :: sql query to find difference between total no. of rows and distinct rows in sql server 
Sql :: what is the essence of SQL? 
Sql :: power bi connect to postgresql 
Sql :: reset increment sqk 
Sql :: get last row sqlite 
Sql :: Bigquery insert issue 
Sql :: AddEntityFrameworkSqlite 
Sql :: systemctl mssql-server details 
Sql :: graphql return x item 
Sql :: mysql on delete set null 
Sql :: Error Code: 1290. The MySQL server is running with the --secure-file-priv option so it cannot execute this statement 
Sql :: modificar tipo de dato sql server 
Sql :: import data from excel to sql server automatically 
Sql :: mysql view command 
Sql :: where sqlalchemy 
Sql :: check if two tables are identical sql 
Sql :: open mysql port bitnami tomact 
Csharp :: unity mouse lock 
Csharp :: c# app path 
Csharp :: unity how to refrsh scene 
Csharp :: c# replace crlf 
Csharp :: c# preprocessor if not 
Csharp :: degree to radians c# 
Csharp :: asp.net core .gitignore 
Csharp :: dotnet get directory of executable 
Csharp :: core Request.CreateResponse 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =