Skip to content

Tag: php

Cut an arabic string

I have a string in the arabic language like: Now I need to cut this string and output it like: I tried this function: The problem is that sometimes it displays a symbol like this at the end of the string: Why does this happen? Answer The symbol displayed after the cut is the result of substr() cutting in the

DataTables warning: Non-table node initialisation (TBODY). PHP

I’m trying to use DataTables second time in other PHP Page but I’m stock in this error, DataTables warning: Non-table node initialisation (TBODY). What did i do wrong? i tried this code with my first PHP Page and its working fine. Here is my Code for Table And I’m using this for JQUERY Answe…

Search tags in mysql table with PHP

I have a table with some submissions, this table has a tags field, and I need to search in it. The data is saved in JSON format in the table, like this: [“basic”,”example”,”html”,”chart”] I’m trying …

Reformatting a datetime field into a more readable format

I am pulling a datetime field out of a database with PHP in the form of this: 2015-09-22T13:00:00 When I populate my html with this value it returns this (note: without the ‘T’): 2015-09-22 13:00:00 No biggie. What I’d like for the output format to look like is this: September 22nd, 2015 &#8…

is not refreshing

I had a (very) simple login script which was working beautifully, and somehow, without much, if any, changes on the script page I have the following error: The Problem <meta http-equiv="refresh" …