Category : sql-server

I’m trying to send data from my website straight to telegram using chat id and bot url using php but I can’t avoid the red screen (deceptive site), I read somewhere online that chrome automatically marks fwrite() and other related functions/commands as deceptive. I have 2 php formats, 1 that send txt data to data.txt ..

Read more

My code was supposed to display all the posts in my database, but it’s only displaying the most recent one !! Need Help !! {foreach item=post from=$posts} <div class="container border shadow-lg text-black"> <div class="container p-1 my-1" style="text-align:center;"> {if $post.user_id == $id_value} <div class="col-sm-12" style="text-align:right;"> <a href="blog.php?micropost_id={$post.post_id}" <button type="button" class="btn btn-sm">update blog</button> </a> </div> {/if} <h4 ..

Read more

The data is an example. ExampleData table column count : 30 (int, NVARCHAR(100), NVARCHAR(60), TINYINT …) row count : 4000 (index 1~4000) $sql = ‘SELECT * FROM ExampleData’; $query = sqlsrv_query($conn, $sql); if ( $query === false) return null; $i = 0; do { $j = 0; while ($row = sqlsrv_fetch_array($query, SQLSRV_FETCH_ASSOC) ) { $result[$i][$j] ..

Read more

I am trying to connect to sql server from my linux server with php. from my local system with os:windows my connection was successfull but from os:linux server I couldn’t connect. LOCAL I,ve been installed extension=php_sqlsrv_74_ts_x64.dll in XAMPP and installed ODBC Driver and my connection and queries was successfull SERVER in my linux Centos 7 ..

Read more

I’m facing an issue on how to use multi-language using PHP I want to display English and Arabic characters, I already have the columns on both the English and Arabic versions but when I want to display the Arabic characters its displays something like this ??? I don’t know how to use <meta=lang> kindly advise ..

Read more