Maq
Administrators-
Posts
9,363 -
Joined
-
Last visited
-
Days Won
3
Everything posted by Maq
-
There is a good tutorial here on phpfreaks: http://www.phpfreaks.com/tutorial/basic-pagination
-
Activating xml rpc using a php.ini
Maq replied to SeeeD's topic in PHP Installation and Configuration
Don't forget to restart your web server after you make the change to the .ini file. -
[SOLVED] SQL query that doesn't print empty rows
Maq replied to freelancer's topic in PHP Coding Help
Don't worry, me either. -
[SOLVED] SQL query that doesn't print empty rows
Maq replied to freelancer's topic in PHP Coding Help
mrMarcus, if you're going to do that, which is not what the OP wants, than you mine as well use MySQL and use a WHERE clause to check for empty age values. I don't think you can accomplish this with MySQL, but if you can that would be better. Anyway, just check if the 'age' is blank. echo ($row['age']=="") ? "" : "Age: {$row['age']} "; -
Why? The greater than sign is supposed to be encoded. It's not safe otherwise. There's no reason you should need to see this in the URL.
-
Unless that is some alternate method I've never heard of I don't think you meant ampersand which is & and is used for signalling byRef variables. I'm sure Maq is aware of that, but thought I'd point it out for anybody else who reads the thread like me and becomes a little puzzled. Oops, yeah good catch. I meant '@' not '&'.
-
The ampersand suppresses error messages for that particular line. Your second question can be answered here: http://php.net/manual/en/language.operators.comparison.php (search for ternary operator).
-
In that case, you may want to check out http://www.salesforce.com/. They host everything on their cloud. Which has its pros and cons. Worth checking out IMO.
-
[SOLVED] Parse Error Unexpected '}' expecting ')'
Maq replied to phpnewbieca's topic in PHP Coding Help
In the future when posting code please use tags. Also, you don't need to post the entire code, just the surrounding lines from the error. -
Why don't you run the script and find out? You mean possible?
-
I would recommend OpenCRX(Java) or SugarCRM(PHP). I've dealt with OpenCRX a bit and I think it's very nice. Fully customizable and great support/documentation. The only thing is if you haven't used XSLT before than I suggest to stay away. The java pushes out XML which is transformed into HTML by the XSL sheets. Another plus is that it's under the BSD license. Haven't used SugarCRM but I heard decent things about it. Hmm sugar used to be free but apparently now it may cost money.
-
Oh my... and it's still not fixed? Nice QA.
-
[SOLVED] NOOB having trouble with INSERT, Query was empty.
Maq replied to bpburrow's topic in PHP Coding Help
Can I see your table structure? Seems like you have a primary key on username. -
[SOLVED] NOOB having trouble with INSERT, Query was empty.
Maq replied to bpburrow's topic in PHP Coding Help
That's interesting. I vaguely remember seeing code similar to this before too. It amazes me how such a fundamental error goes undetected. -
[SOLVED] NOOB having trouble with INSERT, Query was empty.
Maq replied to bpburrow's topic in PHP Coding Help
The error is correct. You pass an undeclared variables "$query" into mysql_query(). Where is "$query" defined? $results = mysql_query($query) or die ("Could not execute query : $query." . mysql_error()); Before that you have the code that is actually inserting something: mysql_query("INSERT INTO Client (username, passwd, email) VALUES ('$_POST[username]', '$_POST[passwd]', '$_POST[email]')"); This query should work if you take the other one out. It will never execute and code after the "or die()" because that's what die() is meant to do. -
[SOLVED] Splitted String Length ?? PLEASE HELP !!
Maq replied to salman_ahad@yahoo.com's topic in PHP Coding Help
No, but you can look at the substr function. It should do what you want. -
what on my site is not relevant to what i am selling? Maybe you should re-read Daniel's post. He was saying that if statistics say you only have 15 seconds to catch someone's attention than you just wasted about 3-4 seconds making the reader read that nonsense. Besides the content you have is the same shit every other freelance site promises. We did give you suggestions. One of them is a road block for more. A lot of us, including myself, suggested using more real estate. That means use your own brain to create something bigger and better. Why cram everything in a little tiny box? I've never worked for a company, or seen a website with that type of design and been successful. It just doesn't make sense to me. I urge you to expand your page and have links to other sections in your site. EDIT: Just saw that you changed the layout. Finally! More real estate. A few things: - I like the simple clean look but you should have some sort of container and maybe not such a black and white look. - Try to implement a consistent color scheme (There are resources on this site). - I'm not a fan of black arial (or w/e font that is) if you have a white background I would suggest dark gray and different font. - Create a footer. Looks more professional. - Have you thought of putting the portfolio in a different section. I understand it's the main point of your site but maybe have one "featured" site as a taste, and a link to the rest to reduce the scrolling and content on the main page. - Try to create a professionally looking graphic for your header. Again, keep it simple but make it look nice. I'm sure you can find good tutorials online for PS, GIMP, or w/e you're using. - Overall a bit more styling and separation, just don't go overboard with it, keep it simple. You should add a bit more style and rely less on tags to margin areas. Also, why don't you include your CSS instead of inline. I think you're the one who stirred that up. How about if someone doesn't have anything that you think is considered a suggestion, then you don't respond?
-
He tends to do that a lot. I gave up and decided to take the path of least resistance.
-
Where to post questions on finding PHP functions ?
Maq replied to FeralReason's topic in PHPFreaks.com Website Feedback
That, or Google. -
Maybe you should try an editor with syntax highlighting?
-
No, I was actually being serious. The "Sudoku killer", killing based on numbers... Now that's comedy. No shit, I'm joking around.
-
I was referring to actual audio quotes from the video.
-
Wow, I just read the posts here and thought you guys were making fun of the commercial, but no... these are actual quotes from actual people. They sound like Apple drones. Let's make people less efficient by making people scroll to the letter rather than directly typing it, brilliant. "Moving on, Police reports that the Sudoku killer will kill either 1, 4 or 9 next..." Makes it sound like that whole youtube video was a joke.
-
Wow, that's crazy. Doesn't Canada have national healthcare? Don't worry, Barack Obama is pushing for that, US tax should be up there in no time.