-
Posts
15,286 -
Joined
-
Last visited
-
Days Won
435
Everything posted by requinix
-
This is the error. Access denied for user 'avjopazg_com'@'localhost' to database 'avjopazg_com' Do you know what that means?
-
When you say helper "functions", do you mean actual functions or do you mean classes and class methods? How about a sample of what we're talking about?
-
You've received an error. What have you tried to do about it? Do you understand what the error means?
-
There is no "$data" being used in "if (curl_exec($curl))". Take another look. Are you trying to edit someone's WP plugin? Have you checked for a more recent version of it?
-
Calling a MSSQL Stored Procedure with multiple inputs and outputs
requinix replied to Thomas_Bode's topic in PHP Coding Help
Have you tried adding more? -
What code have you written so far, what did it do, and what did you expect it to do?
-
PHP script to export for Facebook data feed CSV
requinix replied to ludwig's topic in PHP Coding Help
Don't write CSV lines yourself. Use fputcsv. -
Also, the warning is during compilation, which makes it a E_COMPILE_WARNING and not a regular runtime E_WARNING.
-
error_reporting() won't help you if there is an error detected while parsing the file that the code is in. In this case, since there is no other file where you could put the function call, set the error reporting you want with a CLI option. You know what's even better though? Fixing the problem the warning is telling you about.
-
Ratings in database ala Amazon. How many of each?
requinix replied to tunnelboy's topic in MySQL Help
Does it have to be in your results? It would be really easy to just write a tiny bit of code that uses 0 if there aren't any ratings of a particular star count. -
Notice: Trying to access array offset on value of type null in
requinix replied to Flatronez's topic in PHP Coding Help
Those two lines assume that something exists in $cellt when it, apparently, does not. Hard to tell why or what's going on from just this code... Is everything behaving the way you expect it to, besides the notices? -
If they're separate from each other then why are you altering the line-height? And is this visible somewhere we can see for ourselves?
-
Not sure what markup you have, but the simplest solution seems to be putting the two lines into their own elements and positioning those as you want.
-
How about a screenshot/image of what "close in" means?
-
Smarty template & PHP 8.1, TEXT: Function strftime() is deprecated
requinix replied to ohno's topic in PHP Coding Help
Huh, it's actually doing the thing I thought it wasn't... Only thing left I can think of would be skipping E_DEPRECATED messages. set_error_handler("error_handler", E_ALL & ~E_DEPRECATED); -
Smarty template & PHP 8.1, TEXT: Function strftime() is deprecated
requinix replied to ohno's topic in PHP Coding Help
Given how dumb Smarty wants to be about this, suppressing the error looks like the only option. And since they're already doing that, I suspect you have a custom error handler? What's the code for that? -
I'll give this one more try: 1. I've already mentioned that include() will return a boolean. Specifically, true if it was able to include the file and false if it was not. 2. You are using <?= tags instead of regular <?php. Remind yourself of what the special <?= form does. Do you know what happens when you combine those two together?
-
Post a sample of one of the times you did an include() that did not have this "1" problem.
-
Look closer at what you have here <?=include '../subscribe/sub_countdown.php'?> and compare it to the other times you've done something similar.