-
Began Watching replace word in string with matching key=>value in assoc array
Hi, I have a string that can look a little different from time to time. String Example 1: ((823584X80X998.NAOK == "1")) String Example 2: ((823584X80X1001.NAOK == "1" or 823584X80X1001.NAOK == … -
Replied To a Post in replace word in string with matching key=>value in assoc array
Just to clarify - the string can actualy be one of the values below: $stringExample = '((823584X80X998.NAOK == "1"))'; $stringExample = '((823584X80X1001.NAOK == "1" or 823584X80X1001.NAOK == "2" or 823584X80X1001.NAOK … -
Stopped Watching php - Search results not displaying
Hello, The particular code I have in place is based off of search, that will then grab items from my data base and render the results in a table formatted … -
Stopped Watching getting users OS info out of $_SERVER['HTTP_USER_AGENT']
Hi. With `$u_agent = $_SERVER['HTTP_USER_AGENT'];` i can get the users information but i just want to echo the OS that users use, something like: Linux,Ubuntu How can i get this … -
Began Watching getting users OS info out of $_SERVER['HTTP_USER_AGENT']
Hi. With `$u_agent = $_SERVER['HTTP_USER_AGENT'];` i can get the users information but i just want to echo the OS that users use, something like: Linux,Ubuntu How can i get this … -
Replied To a Post in getting users OS info out of $_SERVER['HTTP_USER_AGENT']
You can get some user agent strings [here](http://user-agents.my-addr.com/user_agent_request/user_agent_examples-and-user_agent_types.php). -
Stopped Watching Issue with CURL
I'm trying to make a curl through php below is the command line : curl -i -H "Accept: application/json" -d "{"username": "divmesselibrary", "password": "677Sure1@"}" https://openlibrary.org/account/login Please I need your help -
Stopped Watching PHP MySQL Connection
Hi all, I am trying to populate text on my website from data stored in a MySQL database. I have this script before the <head> of my HTML to establish … -
Stopped Watching Your Favourite IDE or Editor for PHP
Hi All, Been messing about as usual and managed to trash my long suffering laptop. Luckily all my data is backed up and it was a simple matter of SugarSyncing … -
Stopped Watching generate image
hello everyone, i want chage stone and metal of selected ring in php and that changes are requred to save . plz help me -
Gave Reputation to diafol in Insert Multiple Records with PDO Prepared Statement
I've been playing with PDO and got quite a shock, so I thought I'd run this past you all. I love PDO, and I thought that the "prepare once, execute … -
Stopped Watching error converting array to string
Hi every body, i am new in this forum that i find very interessting i have an error notice with one of my function, "Notice: Array to string conversion in … -
Stopped Watching Forum display checkbox or radiobutton from mysql value
Hello everyone, I'm creating a simpel survey tool'. When people insert the question, they can also what kind of question type (checkbox or radiobutton) Adding question and types in the … -
Replied To a Post in Forum display checkbox or radiobutton from mysql value
Noone noticed that little glitch :-). The checkbox value attribute is what gets carried over in request. The text that you want displayed next to the checkbox is just a … -
Stopped Watching Delete record
this code will display all courses user has <h1>YOUR COURSES</h1> <form action="delete.php" method="POST"><ol> <?php $con=mysqli_connect("localhost","FYP","123","FYP"); $sql= mysqli_query($con, "SELECT C_Code FROM F_COURSES WHERE F_ID=".$_SESSION['userid']); while($row = mysqli_fetch_array($sql)){ echo "<li name='course'>".$row['C_Code']."<input type='submit' … -
Began Watching Delete record
this code will display all courses user has <h1>YOUR COURSES</h1> <form action="delete.php" method="POST"><ol> <?php $con=mysqli_connect("localhost","FYP","123","FYP"); $sql= mysqli_query($con, "SELECT C_Code FROM F_COURSES WHERE F_ID=".$_SESSION['userid']); while($row = mysqli_fetch_array($sql)){ echo "<li name='course'>".$row['C_Code']."<input type='submit' … -
Replied To a Post in Delete record
Enclose each row (and ID and a delete button) within form tags and add a hidden input that holds the value. You will have as many forms as there rows. … -
Began Watching How to go back while click on image using fpdf in php
I am not getting while clicking on image my code $pdf->Image('logo.png',10,20,33,0,' ','http://www.fpdf.org/'); working but I want to display the local file. Mean click on image it will go the the … -
Replied To a Post in How to go back while click on image using fpdf in php
Have you tried a full path, like: $pdf->Image('a.jpg',20,65,20,0,'','http://yoursite.com/yourpath/searchstudentavailability.php'); -
Stopped Watching Error displaying multiple photos
I am trying to save 2 photos to my MySQL database. I can only see one of the 2 photos in the database (i.e. its name) but I see the … -
Gave Reputation to diafol in Sql to multidimensional array
Well [] is shorthand for array(). In the loop you access: $output['some_specific_timestamp'] when you write: $output[$row['timestamp']][] If this key doesn't exist, then it is created. As this is an array, … -
Began Watching Sql to multidimensional array
Hi, I have been searching and trying for days now but still cant get this to work. Id like to group my result from a SQL call into a multidimensional … -
Replied To a Post in Sql to multidimensional array
Sort result rows by timestamp. See comments in the code for the rest: // initialize current timestamp to 0; $currentTimestamp = 0; // initialize current array that will hold the … -
Stopped Watching How to get a loop count for each row in while loop
I have a gallery in grid. For eg: https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSegNVXMSnTRzHETnAjZXCd6siwHQysMXc_jp1OyiSDie2_9jhsIg Each row can cont max of 4 images. I have written while loop. i want to get the total count of … -
Stopped Watching Php Excell hyperlink
Hy, i'm having a problem with php excell, i have in my db a row that its have a full url, when i export it its not make it HYperlink, … -
Stopped Watching Question Please concerning php
is there any way to access the variables of this function outside ? public function selectData($table, $where = null, $wheree = null, $where1 = null, $wheree1 = null) { $QUERY … -
Replied To a Post in php - Search results not displaying
There is another error in the SQL statement that is actually preventing the script to execute: $query = "SELECT * FROM table WHERE state LIKE :search OR city LIKE :search"; … -
Stopped Watching how to create an application with different users
i am trying to develop a humain ressource management application with php, html 5 and jQuery the access to this application must be with a login and password, below the … -
Replied To a Post in php - Search results not displaying
> this would fail with no idex set $row['state'] @jstfsklh211 But there is an index 'state', see the query (was that a reason for downvote?). Anyway, the aim was to … -
Replied To a Post in php - Search results not displaying
Also there is a small error in my and consequentely (probably) also in *jstfsklh211's* post. It is `$stmt` not `$sth`. Cause: copying from php.net example :-) -
Replied To a Post in php - Search results not displaying
Is the generated HTML valid i.e without serious errors. Have you inspected the code (right click in the browser -> View page source). It maybe a dumb guess but the … -
Began Watching php - Search results not displaying
Hello, The particular code I have in place is based off of search, that will then grab items from my data base and render the results in a table formatted … -
Replied To a Post in php - Search results not displaying
Where do you initialize the `$HTML` variable so you can concatenate to it? // initialize $HTML $HTML = ''; foreach($records as $row) { $HTML.='<div>'; $HTML.= $row['State']; $HTML.='</div><br/>'; } Also the … -
Replied To a Post in Php Excell hyperlink
OK. Please mark s solved. -
Stopped Watching Php Excell img
Hy i'm using php excell to export some data from my db, one of the collum have full path of a image, instead of show me the path it is … -
Replied To a Post in Php Excell hyperlink
->setCellValue('B'.$rowNumber,'=HYPERLINK($row->prodoto)') I think you should use double quotes so $row->prodoto gets parsed (and also enclose the variable in curly braces to be on the safe side): ->setCellValue('B'.$rowNumber,"=HYPERLINK({$row->prodoto})") -
Replied To a Post in Forum display checkbox or radiobutton from mysql value
By looking at your query you want to display all the questions from the `questions` table. Am I correct? In this case you have to rearrange code a little bit. … -
Replied To a Post in Php Excell hyperlink
> Uncaught exception 'PHPExcel_Calculation_Exception' with message 'Worksheet!B12 -> Formula Error: Unexpected operator '>'' in /web/ì/admin/Classes/PHPExcel/Cell.php:300 It seems that PHPExcel tries to calculate the value in the cell and it can't … -
Began Watching Php Excell hyperlink
Hy, i'm having a problem with php excell, i have in my db a row that its have a full url, when i export it its not make it HYperlink, … -
Replied To a Post in Php Excell hyperlink
Did my answer from [your other thread](https://www.daniweb.com/web-development/php/threads/494085/php-excell-img) not help you? I have provided a tested working example there. -
Began Watching Forum display checkbox or radiobutton from mysql value
Hello everyone, I'm creating a simpel survey tool'. When people insert the question, they can also what kind of question type (checkbox or radiobutton) Adding question and types in the … -
Replied To a Post in Forum display checkbox or radiobutton from mysql value
The if statement has an error. Instead of assignment operator `=` you should use comparison operator `==`, like: if ($row['question_type'] == 1) In the form html code you are missing … -
Stopped Watching mysql_query() expects parameter 1 to be string, resource given
Hey Im making an online store and cant figure out the section on inserting data into a table (in this case its inserting customer details into a customer table). Its … -
Replied To a Post in how to create an application with different users
As I said I would use the approach I posted in my previous post. There are many things in your code that I think are redundant, like /*** check if … -
Stopped Watching files access access deneid
Hi have this code to manage my main page. Everything works fine on my local server at home,i'm using easyphp. But on my webhosting server i got this error: Warning: … -
Stopped Watching How can i remove the error from the top of the page?
Hi, as you know i'm creating my own CMS. This is a part of my code: if (!empty($_POST["Title"]) && !empty($_POST["Author"]) && !empty($_POST["Content"])) { $sql = "INSERT INTO Posts (Title, Author, … -
Replied To a Post in How can i remove the error from the top of the page?
There are still some errors that somehow sneaked into my code :-). This is what happens when there is no time to test. These are the errors: // wrong $conn->setAttribute(PDO::ATTlR_ERRMODE, … -
Replied To a Post in files access access deneid
Cool. Please mark the tread solved. Happy coding :-) -
Stopped Watching Transitioning to OOP in PHP
Hi all, I've been working with PHP, using procedural methods, for several years now, and have begun to explore the object-oriented side of it. While it didn't take me long … -
Replied To a Post in How can i remove the error from the top of the page?
OK, seems this error is since `empty` can not be used this way. You can use the `if` block that I posted in my previous post if you wish (recommended). …
The End.