Some strangeness here. So I have build a custom theme for a client about a year ago and all has worked perfectly till about 3 days ago when I noticed that I could not login to the website. I kept and still keep getting the 'ERROR: Cookies are blocked
get data list from the database: foreach ($rowset as $key => $value) { $colorrange=str_split($value->id); $findend=end($colorrange); $response[$key]['color'] = $this->get_color($findend); } function to get color: public function get_color($finden
I am trying to do a "WHERE AND WHERE OR WHERE" query with laravel, basically what I want to do is get all the events where the user_id equals a certain something AND where type = 'something1' OR 'something2' but right now the event is now only s
I'm trying to get a user by username and return his profile page. The route is defined like this: Route::get('user/{slug}', 'UserController@getUserByName'); and in my UserController, I've defined getUserByName like this public function getUserByName(
because I'm pretty new to JS, I can't understand how to implement multiple data series into my code Here is my php page that I use as data grabber: getTrendData-TIMEREQUESTED-hms.php <?php //Define possible Argument request $format = $_GET['format'];
I have a user resource with is linked in the users table. My Route: Route::resource('user', 'UserController'); UserController.php public function edit($id) { $user = User::find($id); return view('user.edit')->with(array('user'=>$user)); } public fun
I am using http://www.maatwebsite.nl/laravel-excel/docs to export and import the database to excel file. Everything was running like a charm, but after several days, I found that something wrong with this library. It does not sudden happen, indeed, I
I have 2 tables TABLE USERS USER_ID------USERNAME------------REGISTERTIME 1-----------------admin----------1432985224 2-----------------test ----------1433985224 3-----------------test2----------1332985224 TABLE REFERRALS REFERRER_ID----------REFERRA
I am still learning SilverStripe, and right now, I have a list of 50-60 pages I have to create for a site. It was suggested that I find a way to auto-populate the SilverStripe site tree with some code in order to save time (as opposed to manually cre
I have a table in a database with a section called custom field type. If this matches as "textfield" i want to echo a textfield, if it matches "textarea" i want to echo a text area. Can somebody let me know what I'm doing wrong below p
I need help with some MySQL commands. My MySQL table look's like this mysql> DESCRIBE sensor_readout; +-----------+-----------+------+-----+---------------------+-------+ | Field | Type | Null | Key | Default | Extra | +-----------+-----------+------
I am trying to install Opencart here I have get a warning that is CURL extension needs to be loaded for OpenCart to work!I have already download php_curl. and also replace it bin\php\php5.3.13\ext in here. Here in php extensions php_curl already on.
i have problem with my site. i want to create a page in php. in this page i want user invite user. but i have a error. i dont know what to do. thx all . the error: SQL Error: You have an error in your SQL syntax; check the manual that corresponds to
The page I'm building interacts with the java api of another system to retrieve data via the command line. This is triggered from PHP, but needs a valid username and password sent with every call. I don't want to store the username and password in ei
I have a problem when I want to insert multiple fields into one table. Here's my form: <h1>Add user</h1> <form method="post" action="index.php"> <table> <thead> <th>Name</th> <th>Age</
I am trying to implement captcha functionality using codeigniter. But it is not displaying captcha images. Here is my code : //Controller file : captcha.php <?php class Captcha extends CI_Controller { var $controller = "captcha"; var $viewCon
I have a file that I am reading, and searching the entire file for a certain pattern. Here's sample line: DATA "1354236384craan18p.1354236392craan18p.1354668684AR_ESCALATORCase HD0347023 was automatically closed on 5/12/2012 1:51:24 p.m.." "
this the html markup for multiple upload..i want to perform validation to it.. 1)check if the file is 5 mb 2)check if it is jpg,gif only image file <form action="" method="POST" enctype="multipart/form-data"> <input
I have an application written in C that captures an image via webcam,does some processing on it,and then sends the resulting image through socket to a client application,also written in C,in another computer. I want to do something similar but using
I have been trying to get this to work correctly and I think I have finally come up with the correct solution because when I login on my iphone it seems to work fine. I am sort of new to php so I was wondering if I made any mistakes or if I could imp
I find myself in a situation that someone else must have got stuck in at some point. Our company runs an in house MSSQL based database, our website then sits on an external server and currently runs MySQL. The problem comes that both databases need t
I am looking for a flexible, easy customized, Userlevel access and secure Authentication library that I can quickly get started with. I was looking at Stackoverflow and read about a few Authentication libraries but these posts were posted in 2010. Wh
I can call SQL server 2008 from PHP with Microsoft Drivers for PHP for SQL Server ( http://www.microsoft.com/download/en/details.aspx?id=20098) But as Sqlsvr driver class is needed to use CakePHP with SQL server 2008, I got the driver file from follo
I have a string in php that is a date but is formatted: mddyy The strtotime() function does not understand this. I know I could split it into an array and move stuff around as needed to get where I need but is there something that would be better? Wh
is any way to post the image object to php file using javascript that can be alternative for the regular way of uploading image using (enctype="multipart/form-data") ? I had successfully post values of input text boxes using ajax, any way to pos
I have this html code: <marquee align="left" id="LatestNewsM" SCROLLAMOUNT="4" loop="infinite" direction="right"> <font dir="rtl" valign="top" class="StringTheme" sty
I have values in some array I want to re index the whole array such that the the first value key should be 1 instead of zero i.e. By default in PHP the array key starts from 0. i.e. 0 => a, 1=> b, I want to reindex the whole array to start from key
I really hope someone can help me with this. I'm struggling with it for nearly two days now... I have a DB-table "Device" and a table "Connection". I'm using it to visualize my company's network. To pass the data to the JS-framework I
I have four tables I want to join and get data from. The tables look something like... Employees (EmployeeID, GroupID[fk], EmployeeName, PhoneNum) Positions (PositionID, PositionName) EmployeePositions (EployeePositionID, EmployeeID[fk], PositionID[f
I have a problem sending plain text emails using PHPMailer. I have text that I read from a text file and mail it to mail recipient via PHPMailer When the recipient gets the actual email, the formatting of the mail is not like in the text file, everyt