trq
Staff Alumni-
Posts
30,999 -
Joined
-
Last visited
-
Days Won
26
Everything posted by trq
-
You are missing a ; on line 2
-
Have you tried any debugging? Some simple debugging would include printing type and $row['Memo'] to see what values they contain. Do you really need a condition? Looks like your trying to print the same thing regardless.
-
So which is it? Are they empty strings, or are set to the value already stored in your database? They cannot be both. Your code shows they originally display the data that was stored in the database. No it doesn't.
-
PHP / Dreamweaver and Creating User Restrictions
trq replied to mdemetri2's topic in PHP Coding Help
Dreamweaver is a code editor. You need to learn to write code to do what your asking. Have you searched for a tutorial on "PHP user access levels" or similar? I think you'll find this question has been answered on numerous occasions. -
You've already stated it's not working correctly so that disproves that theory. I don't see where $type is defined, nor do I see $result printed anywhere.
-
Please, don't like at CI for coding tips, it's not the best designed framework around. You might also want to post an actual example of the code you want to understand. What you have posted is not valid php. Are you referring to this part alone? $this->load->view("html") That is pretty straight forward. $this->load is an object, and the code calls the view() method on that object passing it the string 'html'. Keep in mind that view() may indeed not exist, and this code may actually trigger the load objects __call() method instead. What it actually does, I wouldn't know. I wouldn't touch CI with a barge pole. My guess, load is some form of class loader and view() is indeed calling __call() which probably returns a html based view object. When looking at code like this and trying to figure out what it does its a good idea to follow the code. You know that $this refers to the current object so start there. Can you find a property called $view. Where is it defined and what is assigned to it? Once you know that, you can look at the class that this object refers to and try and locate the view() method. If that method does not exist, look for the magic __call method instead. See here: http://www.php.net/manual/en/language.oop5.overloading.php#object.call to understand what __call does.
-
The code you have posted should create links. Does it not?
-
I would suggest turing IIS off then.
-
This kind of micro optimisation is not worth considering. If your code is clearer breaking in and out of php tags, do so.
-
The variables you are passing to mysql_connect(), wehere are they defined? And why the hell are they in quotes? ps: The mysql extension has been deprecated. All new code should be using mysqli or PDO.
-
What exactly is the issue?
-
Benchmark your app.
-
Your doing it wrong. You need to read up on and get a basic understanding of what http is and how it works before you start telling people with experience that they are wrong. There is no such thing as "going to a page" in http. You make a request, the server sends you a response. Until you understand some basics, your own your own.
-
Which again, is exactly what curl does.
-
Yeah because that is one tool that we can't live without.
-
The reason this isn't working is because powershell doesn't exist in the mac. The commands you are trying to execute need to exist on the machine you are actually trying to execute them on.
- 3 replies
-
- powershell
- macos & powershell
- (and 2 more)
-
Transfering online mySQL database to offline laptop
trq replied to babytarantula's topic in MySQL Help
Do you have access to the code of your "front end panel"? Again: If you want to run that application locally you will need a web server, a database server, the code for the web application, and the data from the database. -
Transfering online mySQL database to offline laptop
trq replied to babytarantula's topic in MySQL Help
A database is a completely separate thing to a web application. You sound like your confusing them as the same thing. You have a web application that interfaces to a database. If you want to run that application locally you will need a web server, a database server, the code for the web application, and the data from the database. xampp and the like provide a simple one click install and configure of the web server and database server components. Keep in mind though that once you are running this application locally users won't be able to access it. Nor will is be in any way integrated with the solution you already have online. It really sounds to me like your going to need a developer to handle this. While you may be able to find some basic instruction and guidance online, you really need someone to actually look at the actual problem and find the best solution. What you are trying to do definitely does not sound ideal. -
Transfering online mySQL database to offline laptop
trq replied to babytarantula's topic in MySQL Help
Updating your hosting sounds like the more logical approach. Sure, you can make a database back and then remove old records from your current database, but that really doesn't seem at all logical. -
I don't see whats funny. If you need help, ask a question / describe your problem. Simply stating what you want does little to describe where you are stuck.
- 4 replies
-
- fetch array tables help
- fetch
-
(and 3 more)
Tagged with:
-
bash script to create xml from mysql query - out of memory
trq replied to carlosp's topic in Other Programming Languages
As is clearly stated in the shebang, that code is Perl not Bash. -
Nooo..... singletons are almost always not needed and they make it very easy to make your code tightly coupled. Post what you have.
-
Awesome, I'm getting some replies. I should probably mention that I struggled to get my list of 10, but I should also mention there are a bunch of cli type utils that I left out. These are things I use every day and would be pretty lost without. bash, python (most of our infrastructure uses it), grep, composer, gitflow, wget, ssh, irssi, ttytter.