52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for UI

Experts, I do not understand this atall. Here: https://www.tutorialspoint.com/php/php_constants.htm It says: "PHP Magic constants PHP provides a large number of predefined constants to any script which it runs. There are five magical constants that change depending on where they are used. For example, the value of __LINE__ depends on the …

Web Development php
Member Avatar for diafol
0
323
Member Avatar for UI

Hiya, http://www.tizag.com/phpT/php-string-strpos.php On the above link, it is stated: PHP Code: $numberedString = "1234567890"; // 10 numbers from 1 to 0 $fivePos = strpos($numberedString, "5"); echo "The position of 5 in our string was $fivePos"; Display: The position of 5 in our string was 4 Notice that the position is …

Web Development php
Member Avatar for diafol
0
259
Member Avatar for _1_14

I work in MVC 5 c# in visual studio 2015 web applications I have table pictures in SQL server 2012 have two fields ID Image ID have number of image inserted like 1,2,3,4,5 Image field store picture added what i need actually browsing images found in table pictures in database …

Web Development asp.net sql visual-studio
Member Avatar for _1_14
0
175
Member Avatar for UI

Folks, What does it really mean by "escaping" in a string ? Eg. https://www.tutorialspoint.com/php/php_strings.htm The escape-sequence replacements are − \n is replaced by the newline character \r is replaced by the carriage-return character \t is replaced by the tab character \$ is replaced by the dollar sign itself ($) \" …

Web Development php
Member Avatar for UI
0
389
Member Avatar for UI

It is said on the following link: **Using the strpos() function** **The strpos() function is used to search for a string or character within a string.** **If a match is found in the string, this function will return the position of the first match. If no match is found, it …

Web Development php
Member Avatar for AssertNull
0
218
Member Avatar for Vishal_19

First Input is No. of Kids. How to create Age Group field for each kid. e.g. If 1 is selected create 1 age group field. If 2 is selected create 2 Age group fields. And so on. **First Input** <select name=""> <option selected>No. of Kids</option> <option value="">1</option> <option value="">2</option> <option …

Web Development javascript-jquery mysql php
Member Avatar for diafol
0
328
Member Avatar for KagaKuro

Hello. I'am using php codeigniter for my task here. i just have to use it. its all set up at the first. so i kinda not understand the path. I've read some of the explainatiion and try from scratch but when I try to apply it to my task its …

Web Development email php
Member Avatar for KagaKuro
0
3K
Member Avatar for Daron_1

I am having trouble with getting my textboxes and buttons aligned to look like the attached image. Can someone please also tell how I should make the radius border around my element smaller like the pic. Here is my code so far. Any suggestions would be much appreciated. @model FinalProject.Models.HomeViewModel …

Web Development html-css
Member Avatar for gentlemedia
0
288
Member Avatar for patk570

I have a code that is working to show images and description. But I am trying to get it to loop through 3 pictures wide, then loop again. and display them, I am going to add pagination to the script, but before i do that i need it to loop. …

Web Development mysql php
Member Avatar for patk570
0
459
Member Avatar for randyster

I am building a website using the Divi Builder in my local computer and when I try to make a section with a background video, it only works when Divi Visual Builder is enabled. But when I go ahead and disable it, to see my changes, the video does not …

Member Avatar for rproffitt
0
299
Member Avatar for phphp

Sir, how to make these lines workable echo "<td align='center'><a href='register_edit.php?message=".base64_encode('date='.date('Y-m-d',strtotime($res['date'])).&".base64_encode('vou_no='.$res['vou_no']')> <img src='../images/time.ico' alt='Complet_History' title='Complete_History'></a></td>"; I want to pass two parameters. Please

Web Development php
Member Avatar for diafol
0
218
Member Avatar for kaleemullah360

I am implementing **Attribute Based Access Control** in angular typescript application with rails server. I've searched for different solutions like followings but could not manage to implement cause of unclear solutions. 1. [Custom Roles Based Access Control RBAC in ASP NET](https://www.codeproject.com/Articles/875547/Custom-Roles-Based-Access-Control-RBAC-in-ASP-NET) 2. [simple attribute based access control with spring](https://dzone.com/articles/simple-attribute-based-access-control-with-spring) The …

Web Development angularjs
Member Avatar for rproffitt
0
758
Member Avatar for davy_yg

Hello, Is anyone here are really good at laravel? I am willing to pay at $8.00 / hour if anyone here can teach me how to work on laravel while working on my project as a sample through skype. Thanks.

Web Development php
Member Avatar for diafol
0
250
Member Avatar for developer707

Hello, Recently I am starting to code my scripts in PDO method to manage the information in a mysql database. In this case I am having an issue how to use the best practice conditions when dealing with a POST **int** value. With the posted values I am making a …

Web Development mysql php
Member Avatar for cereal
0
363
Member Avatar for UI

Pros, Imagine you want to only provide your download link to those who tweet about you. Now, how would you code it ? Let's make it simple for you to understand. Let's say you want to write a php script that checks if a certain html element (eg. name=username) or …

Web Development html-css php
Member Avatar for diafol
0
359
Member Avatar for UI

Friends, Mates, Buddies & Pals, I don't want to google or youtube because there's a lot of bad tutorials rampaging the net. And so, how-about you recommending me some text & video tutorials on: CURL Hashing I really need to learn password hashing. Encrypting & decrypting. And web scraping. :thumbsup: …

Web Development php
Member Avatar for diafol
0
160
Member Avatar for davy_yg

Hello, I have this laravel file that is already works but when I try to set it offline it does not works I wonder why? I try to do this: framework_freshway\framework.env DB_HOST=localhost DB_DATABASE=wwwsoulf_revsoul DB_USERNAME=root DB_PASSWORD= http://localhost/framework_freshway/public_html/ Whoops, looks like something went wrong. 3/3 ErrorException in 1319c52207fd4f3069a97397543698e4 line 1275: Trying to …

Web Development php web-browser
Member Avatar for davy_yg
0
381
Member Avatar for davy_yg

Hello, I am having trouble with laravel video tutorial : https://laracasts.com/series/laravel-from-scratch-2017/episodes/1 Any clue what video player that is perfect to run that video. This is the error messages: The media could not be loaded, either because the server or network failed or because the format is not supported.

Web Development php video
Member Avatar for diafol
0
1K
Member Avatar for poornima_1

i am new to javascript just started learing from net here i have a code i am trying to add details from text box but my save button is not working and the values are adding before the header can any one help me out please?? <!DOCTYPE html> <html> <body> …

Web Development javascript-jquery
Member Avatar for kgweb
0
227
Member Avatar for SimonIoa

Hello i want to add some CSS3 filters on a background image but the effects take place on the text too not just the background image. Here is the css code <div style="color:whitesmoke; background-image:url(wall_icons/uploadMedia.png); background-size:contain;-webkit-filter:grayscale(1.7); filter: brightness(0.2); -webkit-filter: brightness(0.2); -moz-filter: brightness(0.2); -o-filter: brightness(0.2); -ms-filter: brightness(0.2); background-repeat:no-repeat"> <small style="font-size: 3vmin;">Text.Text.Text.Text.Text.Text.</small> </b> …

Web Development html-css image
Member Avatar for diafol
0
3K
Member Avatar for davy_yg

Hello, Please help me set this laravel framework file. I have two folders: framework_freshway: - public_html - framework I still receive this error message when trying to run this url: http://localhost/framework_freshway/public_html/ Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in C:\Program …

Web Development html-css php web-browser
Member Avatar for diafol
0
302
Member Avatar for Lord_2

I created an Php/Html form which will save to Database, the form is for Job application form, so i want it to preview the form details before final submission and also, on the final submission, there should be an area for the applicants to print the copy of their form …

Web Development php
Member Avatar for abubaker_2
0
282
Member Avatar for davy_yg

Hello, I am trying to install laravel for the first but unable to do so. I already install the composer and it has error since it request php7.dll is missing from my computer. Where to find that file? Okay, then where is a good tutorial to learn laravel? Thanks in …

Web Development php
Member Avatar for davy_yg
0
788
Member Avatar for patk570

Hey everyone, I have a MYSQLI statement that i would like to add pagination to. I would like to have it set to 5 per page, and not have a negative value if you are on page 1 (disables back link) Every tutorial i have been seeing allows for a …

Web Development mysql php
Member Avatar for patk570
0
661
Member Avatar for Goldfinch

There is some kind of rendering problem in my Javascript/HTML5 Canvas code that I haven't been able to spot. All the assetts are there, for some reason my sprite goes invisible and nothing loads when I enter the second room except the pizza slice that is deployed when I press …

Web Development audio javascript
Member Avatar for pty
0
302
Member Avatar for Jack_20

Output PDF is overwrite, please solve this. advanced thanks <?php require('mysql_table.php'); class PDF extends PDF_MySQL_Table { function Header() { //Title $this->SetFont('Arial','',18); $this->Cell(0,6,'World populations',0,1,'C'); $this->Ln(10); //Ensure table header is output parent::Header(); } } //Connect to database mysql_connect('localhost','root',''); mysql_select_db('pro'); $pdf=new PDF(); $pdf->AddPage(); //First table: put all columns automatically $pdf->Table('select * from products'); …

Web Development mysql pdf php
Member Avatar for Kevin_28
0
4K
Member Avatar for phphp

Sir I have these codes $last_date=""; $last_vno=""; $queryx = "SELECT MAX(t1.date)as mxdate,MAX(t1.vou_no)as mxvno,max(d1)as d1 FROM vouchers t1 WHERE t1.date = (SELECT MAX(t2.date)as date FROM vouchers t2 where vou_type='CP' and dr_amount>0)"; $resultx=sqlsrv_query($con,$queryx)or die("Error". sqlsrv_errors($con)) ; if ($resultx){ while ($rowx = sqlsrv_fetch_array ($resultx)){ $last_date=$rowx['mxdate']; $last_vno=$rowx['mxvno']; $myparty=$rowx['d1']; } }else{ echo "no data found"; …

Web Development php
Member Avatar for diafol
0
205
Member Avatar for moh_2

hello brothers, I have this VBScript program: Set WSHShell = Wscript.CreateObject("WScript.Shell") Set FSO = Wscript.CreateObject("Scripting.FileSystemObject") Set EnvVar = wshShell.Environment("Process") tBestand= EnvVar("USERPROFILE") & "\Desktop\Items Numbers.txt" Set Bestand = fso.createtextfile(tBestand,2) For x = 1048639472 To 1048640474 Bestand.WriteLine("Item Number is=" & (x)) Next Bestand.close WScript.quit The Output is: (about 1002 lines). Item Number …

Web Development php shell-scripting vbscript
Member Avatar for rproffitt
0
321
Member Avatar for Tko_1

js file : function countdown(endT,callback) { var days,hours,minutes,sec,timer; end = new Date(endT); end = end.getTime(); //Get initial Date in Milliseconds, if (isNaN(end)) { alert('@ countdown.js @ "Invalid Date", valid format- mm/dd/yyyy hh:mm:ss TT '); return; } timer = setInterval(calculate,1000);//Timer to calculate remaining time function calculate(){ var current = new Date(); …

Web Development image javascript
Member Avatar for AleMonteiro
0
559
Member Avatar for UI

Programmer Folks! I first started learning php in September 2015. In 2 wks I read the whole tizag tutorial after understanding it. http://www.tizag.com/phpT/syntax.php (Browse the chapters list on the leftside of the page). I was still "raw" in experience when I suddenly read that php 7 was out and when …

Web Development php
Member Avatar for cereal
0
1K
Member Avatar for SimonIoa

Hello i have a problem. It seems that the value of this this input `<input type="hidden" id="uploadUid" value="<?php echo $sessionUid;?>" name="update_uid">` in here `formData.append('uploadUid', uploadUid.value);` When i put an alert `alert(uploadUid.value);` on Firefox it returns just fine but on Chrome returns undefined Any guess why?

Web Development javascript
Member Avatar for SimonIoa
0
354
Member Avatar for UI

Ladies & Gentlemen, My Fellow Buddy programmers and would be buddy programmers! Watching the following youtube tutorial I built a basic php proxy but for some reason it is not working. Can you guess why ? The clip uses the deprecated ereg_replace and so I replaced it with preg but …

Web Development php
Member Avatar for rproffitt
0
318
Member Avatar for UI

Ladies & Gentleman, Or should I say 'Gentle Ladies' and 'Hard Men' (tough guys)! :winky: Here is my very latest (New Code) reg.php. I have modified it by: * Removing outdated strip tags, mysqli_escape_string. * Bound input parameters on the user reg form. * Added htmlspecialcharacters code on output to …

Web Development mysql oop php session
Member Avatar for UI
0
388
Member Avatar for Lord_2

Actually the form below is a registration form, and i only have ' username, email, password and confirm password field' so i want to add another field name job, but keeps getting error. see the code below; if (!preg_match("/^[a-zA-Z ]+$/",$name)) { $error = true; $name_error = "Name must contain only …

Web Development mysql php sql
Member Avatar for diafol
0
333
Member Avatar for UI

New Friends! :) The following is my member registration code as of latest. ISSUE 1: I get this error: Parse error: syntax error, unexpected '_' (T_STRING), expecting ',' or ')' in C:\xampp\htdocs\e_id\register_edited.php on line 10 What is wrong ? I copied the "'images/'_$FILES['avatar']['name']);" from a youtube tutorial on how to …

Web Development mysql php sql
Member Avatar for UI
0
345
Member Avatar for davy_yg

Hello, How to create circle with css? Any idea how to create circle with css? I create html file with numbers 1 - 5. And I would like to draw green circle around each number with css. How to do so? Thanks in advance.

Web Development html-css
Member Avatar for pty
0
126
Member Avatar for davy_yg

Hello, This is the error message on laravel public_html: Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\framework_freshway\public_html\index.php on line 50 I wonder why it appears? This is only on public_html the framework is on seperate files: <?php …

Web Development html-css php web-browser
Member Avatar for diafol
0
978
Member Avatar for Siberian

For clairifying you can add a string to a variable then add other variables as such; var one = "test", super,apple,pear,cardboard The string "test" will be assigned to the variable one as well; super, apple, pear, cardboard will also be created variables ?

Web Development apple javascript
Member Avatar for Siberian
0
177
Member Avatar for Teri_1

I passed two parameters in the URL. Now I need to retrieve the parameters log_id and dogID onto the next page to process a form. But I can retrieve the first parameter but i cannot retrieve the second parameter. Im using $log_id= $_SESSION["userid"]; $dogID = $_SESSION["dogID"]; Is there another way …

Web Development php
Member Avatar for abubaker_2
0
22K
Member Avatar for kaleemullah360

I am trying to add custom button in CKEditor. I am using this CKEditor [ng2-ckeditor](https://github.com/chymz/ng2-ckeditor). It is working fine. but I want to add a button. on cliking this button will add a rails template tag Example: I can add the button like example below, but I dont know how …

Web Development angularjs github
Member Avatar for rproffitt
0
872
Member Avatar for shashigowda

Hi, i am beginer to codeignitor,i know how to write basic active queries in CI. i want to know how to write a query(having multiple conditions,double parentheses) in which supports CI. query is: $query="SELECT * FROM `apply_special_leave` WHERE ((`from_date` <= '$dt1' AND '$dt1' <= `to_date`) OR (`from_date` between '$dt1' AND …

Web Development mysql php php-codeigniter
Member Avatar for diafol
0
357
Member Avatar for Teri_1

Im going through a tutorial online that would allow users to post status to their wall and to their friends but im getting the error : Warning: mysqli_query(): Couldn't fetch mysqli in /storage/h7/475/1137475/public_html/template_status.php on line 15 It is storing to the db but its not displaying on the user profile. …

Web Development mysql php storage
Member Avatar for diafol
0
1K
Member Avatar for Prince_9

I would to know how I could do a barcode detecting using a phone IMEI to know its phone type and specifications in php Many Thanks

Web Development php
Member Avatar for diafol
0
225
Member Avatar for hani_1

Hello everybody I'm looking for someone to help me about my problem, im trying to display user details after login with allow user to edit some fields . the user can edit these fields password repassword description address telephone email and these two fields not allow to edit only display …

Member Avatar for rproffitt
0
1K
Member Avatar for solomon_13000

Employee.php <div class="col-xs-12"> <h2>Listing Employee</h2> <hr> <div class="employeeGrid"> <table> <tr> <th><a href="" ng-click="orderByField='name'; reverseSort = !reverseSort">Name</a></th> <th><a href="" ng-click="orderByField='age'; reverseSort = !reverseSort">Age</a></th> <th><a href="" ng-click="orderByField='gender'; reverseSort = !reverseSort">Gender</a></th> <th><a href="" ng-click="orderByField='company'; reverseSort = !reverseSort">Company</a></th> <th>Action</th> </tr> <tr ng-repeat="person in employee | orderBy:orderByField:reverseSort""> <td>{{person.name}}</td> <td>{{person.age}}</td> <td>{{person.gender}}</td> <td>{{person.company}}</td> <td> <button class="btn" ng-click="viewEmployee(person.id)"><span …

Web Development angularjs javascript php
Member Avatar for solomon_13000
0
352
Member Avatar for UI

Guys & My Ladies, This LOGIN.php was working lastnight and so I don't know why not now. The ELSE at 53 gets triggered even though I have typed the right password! What do you think of line 16 ? ... if($numrows >1) I tried the following but no luck: if($numrows) if($numrows …

Web Development mysql php
Member Avatar for diafol
0
353
Member Avatar for rouse

I wanted to pass two values to a click function and use the values to load a file in to a specific DIV. The file to load is called ‘displayTwo.txt' from the 'partialContent' directory and the DIV that the contents of the file will be place in has the ID …

Web Development javascript javascript-jquery
Member Avatar for rouse
0
986
Member Avatar for phphp

Sir I have these codes <html> <head> <style type="text/css"> table { font-size: 12px; font-weight: bold; font-family: Verdana, Geneva, sans-serif; } #mytable td { border: 1px solid #CCC; font-size: 14px; } #mytable thead { border: 1px solid #6C3; background-color: #CCC; color: black; line-height: 30px; height: 30px; font-size: 14px; } #mytable input[type="text"] …

Web Development html-css php
Member Avatar for rproffitt
0
7K
Member Avatar for gahhon

<customers> <customer> <ID>C1</ID> <FirstName>Jack</FirstName> <SurName>Wong</SurName> <Email>jack@hotmail.com</Email> <Password>081292</Password> </customer> <customer> <ID>C2</ID> <FirstName>Ashley</FirstName> <SurName>Rachael</SurName> <Email>ashley@hotmail.com</Email> <Password>081292</Password> </customer> <customer> <ID>C3</ID> <FirstName>Vongola</FirstName> <SurName>Steve</SurName> <Email>vongola@hotmail.com</Email> <Password>081292</Password> </customer> </customers> I have a existing xml showing like that. I did some research through net, but they all were talking about one element. For example `<Email>xxx@hotmail.com</Email>` But what …

Web Development php xml
Member Avatar for cereal
0
412
Member Avatar for UI

I'm trying to build a script that adds multi entries into same single cell or mysql row. The script tries monitoring what you are browsing via the: <pre><input type="text" name="browse_url" size="120"></pre> and then record your viewed urls into the same row (position: 0), column: browsings like so: 1.com,2.com and so …

Web Development mysql php session
Member Avatar for UI
0
360

The End.